{"type": "func", "start": 550190, "end": 550248, "name": "sub_8652E", "pseudocode": "// \n// sub_8652E from 0x8652e to 0x86568 (58 bytes)\n// \n// 1 xrefs:\n// > sub_87B50 @ 0x888c6\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall sub_8652E(int a1)\n{\n  *(_DWORD *)(*(_DWORD *)(a1 + 4) + 20) = 0;\n  sub_4F22C(a1, 0);\n  while ( !*(_BYTE *)(a1 + 2421) )\n  {\n    sub_86568(a1, 0);\n    *(_DWORD *)(*(_DWORD *)(a1 + 4) + 20) += *(_DWORD *)(a1 + 1512);\n  }\n  sub_4F378(a1);\n  return 0;\n}", "assembly": "; \n; sub_8652E from 0x8652e to 0x86568 (58 bytes)\n; \n; 1 xrefs:\n; > sub_87B50 @ 0x888c6\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4,R6,R7,LR}                                          ; +0x0, 0x8652e\nADD             R7, SP, #8                                             ; +0x2, 0x86530\nMOV             R4, R0                                                 ; +0x4, 0x86532\nLDR             R0, [R0,#4]                                            ; +0x6, 0x86534\nMOVS            R1, #0                                                 ; +0x8, 0x86536\nSTR             R1, [R0,#0x14]                                         ; +0xa, 0x86538\nMOV             R0, R4                                                 ; +0xc, 0x8653a\nMOVS            R1, #0                                                 ; +0xe, 0x8653c\nBL              sub_4F22C                                              ; +0x10, 0x8653e\nLDRB.W          R0, [R4,#0x975]                                        ; +0x14, 0x86542\nCBNZ            R0, loc_8655E                                          ; +0x18, 0x86546\nMOV             R0, R4                                                 ; +0x1a, 0x86548\nMOVS            R1, #0                                                 ; +0x1c, 0x8654a\nBL              sub_86568                                              ; +0x1e, 0x8654c\nLDR             R1, [R4,#4]                                            ; +0x22, 0x86550\nLDR.W           R0, [R4,#0x5E8]                                        ; +0x24, 0x86552\nLDR             R2, [R1,#0x14]                                         ; +0x28, 0x86556\nADD             R0, R2                                                 ; +0x2a, 0x86558\nSTR             R0, [R1,#0x14]                                         ; +0x2c, 0x8655a\nB               loc_86542                                              ; +0x2e, 0x8655c\nMOV             R0, R4                                                 ; +0x30, 0x8655e\nBL              sub_4F378                                              ; +0x32, 0x86560\nMOVS            R0, #0                                                 ; +0x36, 0x86564\nPOP             {R4,R6,R7,PC}                                          ; +0x38, 0x86566", "xrefs": ["sub_87B50 @ 0x888c6"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}