Jump to content

2 posts in this topic

Recommended Posts

Posted

hey

 

can anyone plzz help me by explaining the following function 

==> public static int get_StarsTotalCollected();

 

=========================FUNCTION============================================== 

sub_85014C                              ; CODE XREF: .text:00578D00p
.text:0085014C                                         ; DATA XREF: .data.rel.ro:011A8F84o
.text:0085014C                 STMFD           SP!, {R4,R5,R11,LR}
.text:00850150                 ADD             R11, SP, #8
.text:00850154                 LDR             R0, =(_GLOBAL_OFFSET_TABLE_ - 0x850164)
.text:00850158                 LDR             R4, =(unk_121B7A0 - 0x11C2764)
.text:0085015C                 ADD             R0, PC, R0 ; _GLOBAL_OFFSET_TABLE_
.text:00850160                 ADD             R0, R4, R0 ; unk_121B7A0
.text:00850164                 LDRB            R0, [R0,#(byte_121B937 - 0x121B7A0)]
.text:00850168                 CMP             R0, #0
.text:0085016C                 BNE             loc_850194
.text:00850170                 LDR             R0, =(_GLOBAL_OFFSET_TABLE_ - 0x850180)
.text:00850174                 LDR             R1, =(off_11C9ED0 - 0x11C2764)
.text:00850178                 ADD             R5, PC, R0 ; _GLOBAL_OFFSET_TABLE_
.text:0085017C                 LDR             R0, [R1,R5] ; unk_F5EA2C
.text:00850180                 LDR             R0, [R0]
.text:00850184                 BL              sub_EA0F60
.text:00850188                 ADD             R0, R4, R5 ; unk_121B7A0
.text:0085018C                 MOV             R1, #1
.text:00850190                 STRB            R1, [R0,#(byte_121B937 - 0x121B7A0)]
==============================================================================
visit this link for graph view
 
would be thankful
 
also tell me how do i return a high value

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