{"type": "func", "start": 334674, "end": 334704, "name": "sub_51B52", "pseudocode": "// \n// sub_51B52 from 0x51b52 to 0x51b70 (30 bytes)\n// \n// 3 xrefs:\n// > sub_58910 @ 0x58926\n// > sub_62360 @ 0x62390\n// > sub_62B54 @ 0x62dfc\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_51B52(int a1, int a2, _DWORD *a3)\n{\n  _DWORD *v4; // r0\n\n  if ( !a3 )\n    return 31;\n  v4 = sub_4F0A0((_DWORD **)(a1 + 328), a2);\n  if ( !v4 )\n    return 31;\n  *a3 = v4[20];\n  return 0;\n}", "assembly": "; \n; sub_51B52 from 0x51b52 to 0x51b70 (30 bytes)\n; \n; 3 xrefs:\n; > sub_58910 @ 0x58926\n; > sub_62360 @ 0x62390\n; > sub_62B54 @ 0x62dfc\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, 0x51b52\nADD             R7, SP, #8                                             ; +0x2, 0x51b54\nCBZ             R2, loc_51B6C                                          ; +0x4, 0x51b56\nADD.W           R0, R0, #0x148                                         ; +0x6, 0x51b58\nMOV             R4, R2                                                 ; +0xa, 0x51b5c\nBL              sub_4F0A0                                              ; +0xc, 0x51b5e\nCBZ             R0, loc_51B6C                                          ; +0x10, 0x51b62\nLDR             R0, [R0,#0x50]                                         ; +0x12, 0x51b64\nSTR             R0, [R4]                                               ; +0x14, 0x51b66\nMOVS            R0, #0                                                 ; +0x16, 0x51b68\nPOP             {R4,R6,R7,PC}                                          ; +0x18, 0x51b6a\nMOVS            R0, #0x1F                                              ; +0x1a, 0x51b6c\nPOP             {R4,R6,R7,PC}                                          ; +0x1c, 0x51b6e", "xrefs": ["sub_58910 @ 0x58926", "sub_62360 @ 0x62390", "sub_62B54 @ 0x62dfc"], "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"}