Jump to content

1 post in this topic

Recommended Posts

Posted (edited)

Hello there,

I've found a great string named "MoveSpeed" in IDA. I'd really like to increase it with a certain amount of %. But I cant quite figure out, how I would be able to do this. It has two functions connected to it "MoveSpeed" and "MoveSpeedMul" where mul is a multiply? So if I can multiply it with a certain amount of %?

"MoveSpeed" function

Spoiler

; ---------------------------------------------------------------------------
__text:0114A536
__text:0114A536 loc_114A536                             ; CODE XREF: sub_1148B60+19BEj
__text:0114A536                 LDR.W           R0, [R10,#4]
__text:0114A53A                 MOVS            R2, #0x4D
__text:0114A53C                 LDR.W           R6, [R10]
__text:0114A540                 MOVW            R1, #(:lower16:(aMovespeed - 0x114A552)) ; "MoveSpeed"
__text:0114A544                 CMP             R0, #0
__text:0114A546                 MOVT.W          R1, #(:upper16:(aMovespeed - 0x114A552)) ; "MoveSpeed"
__text:0114A54A                 IT EQ
__text:0114A54C                 MOVEQ           R6, R8
__text:0114A54E                 ADD             R1, PC  ; "MoveSpeed"
__text:0114A550                 LDR.W           R0, [R6],#4
__text:0114A554                 ADDS            R4, R1, #1
__text:0114A556
__text:0114A556 loc_114A556                             ; CODE XREF: sub_1148B60+1A1Aj
__text:0114A556                                         ; sub_1148B60+1A20j
__text:0114A556                 SXTB            R1, R2
__text:0114A558                 CMP             R0, R1
__text:0114A55A                 BEQ             loc_114A570
__text:0114A55C                 BLX.W           j____tolower
__text:0114A560                 MOV             R5, R0
__text:0114A562                 LDRSB.W         R0, [R4,#(aMovespeed - 0x34E5BBF)] ; "MoveSpeed"
__text:0114A566                 BLX.W           j____tolower
__text:0114A56A                 SXTB            R0, R0
__text:0114A56C                 CMP             R5, R0
__text:0114A56E                 BNE             loc_114A586
__text:0114A570
__text:0114A570 loc_114A570                             ; CODE XREF: sub_1148B60+19FAj
__text:0114A570                 LDRB.W          R2, [R4],#1
__text:0114A574                 LDR.W           R0, [R6],#4
__text:0114A578                 CMP             R0, #0
__text:0114A57A                 BNE             loc_114A556
__text:0114A57C                 MOVS            R1, #0x33
__text:0114A57E                 CMP             R2, #0
__text:0114A580                 BNE             loc_114A556
__text:0114A582                 B.W             loc_1148C5C
__text:0114A586 ; ---------------------------------------------------------------------------

 

"MoveSpeedMul" function

Spoiler

; ---------------------------------------------------------------------------
__text:0114A586
__text:0114A586 loc_114A586                             ; CODE XREF: sub_1148B60+1A0Ej
__text:0114A586                 LDR.W           R0, [R10,#4]
__text:0114A58A                 MOVS            R2, #0x4D
__text:0114A58C                 LDR.W           R6, [R10]
__text:0114A590                 MOVW            R1, #(:lower16:(aMovespeedmul - 0x114A5A2)) ; "MoveSpeedMul"
__text:0114A594                 CMP             R0, #0
__text:0114A596                 MOVT.W          R1, #(:upper16:(aMovespeedmul - 0x114A5A2)) ; "MoveSpeedMul"
__text:0114A59A                 IT EQ
__text:0114A59C                 MOVEQ           R6, R8
__text:0114A59E                 ADD             R1, PC  ; "MoveSpeedMul"
__text:0114A5A0                 LDR.W           R0, [R6],#4
__text:0114A5A4                 ADDS            R4, R1, #1
__text:0114A5A6
__text:0114A5A6 loc_114A5A6                             ; CODE XREF: sub_1148B60+1A6Aj
__text:0114A5A6                                         ; sub_1148B60+1A70j
__text:0114A5A6                 SXTB            R1, R2
__text:0114A5A8                 CMP             R0, R1
__text:0114A5AA                 BEQ             loc_114A5C0
__text:0114A5AC                 BLX.W           j____tolower
__text:0114A5B0                 MOV             R5, R0
__text:0114A5B2                 LDRSB.W         R0, [R4,#(aMovespeedmul - 0x34F92CC)] ; "MoveSpeedMul"
__text:0114A5B6                 BLX.W           j____tolower
__text:0114A5BA                 SXTB            R0, R0
__text:0114A5BC                 CMP             R5, R0
__text:0114A5BE                 BNE             loc_114A5D6
__text:0114A5C0
__text:0114A5C0 loc_114A5C0                             ; CODE XREF: sub_1148B60+1A4Aj
__text:0114A5C0                 LDRB.W          R2, [R4],#1
__text:0114A5C4                 LDR.W           R0, [R6],#4
__text:0114A5C8                 CMP             R0, #0
__text:0114A5CA                 BNE             loc_114A5A6
__text:0114A5CC                 MOVS            R1, #0x34
__text:0114A5CE                 CMP             R2, #0
__text:0114A5D0                 BNE             loc_114A5A6
__text:0114A5D2                 B.W             loc_1148C5C
__text:0114A5D6 ; ---------------------------------------------------------------------------

 

 

Updated by Nidalee

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines