text:004CF252 loc_4CF252 ; CODE XREF: sub_4CEE7C+3CCj
__text:004CF252 ADD.W R0, R4, R11,LSL#2 ; Rd = Op1 + Op2
__text:004CF256 LDR R1, [SP,#0x34+var_2C] ; Load from Memory
__text:004CF258 STR R1, [R0,#0x10] ; Store to Memory
__text:004CF25A LDR.W R0, [R8,#0x30] ; Load from Memory
__text:004CF25E ADDS R0, #1 ; Rd = Op1 + Op2
__text:004CF260 STR.W R0, [R8,#0x30] ; Store to Memory
__text:004CF264 ADD SP, SP, #0x1C ; Rd = Op1 + Op2
__text:004CF266 POP.W {R8,R10,R11} ; Pop registers
__text:004CF26A POP {R4-R7,PC} ; Pop registers
to
text:004CF252 loc_4CF252 ; CODE XREF: sub_4CEE7C+3CCj
__text:004CF252 ADD.W R0, R4, R11,LSL#2 ; Rd = Op1 + Op2
__text:004CF256 LDR R1, [SP,#0x34+var_2C] ; Load from Memory
__text:004CF258 STR R7, [R0,#0x10] ; Store to Memory <------->
__text:004CF25A LDR.W R0, [R8,#0x30] ; Load from Memory
__text:004CF25E ADDS R0, #1 ; Rd = Op1 + Op2
__text:004CF260 STR.W R0, [R8,#0x30] ; Store to Memory
__text:004CF264 ADD SP, SP, #0x1C ; Rd = Op1 + Op2
__text:004CF266 POP.W {R8,R10,R11} ; Pop registers
__text:004CF26A POP {R4-R7,PC} ; Pop registers
What this does is stores R7 instead of normal coin vlaue