{"type": "func", "start": 333788, "end": 333826, "name": "sub_517DC", "pseudocode": "// \n// sub_517DC from 0x517dc to 0x51802 (38 bytes)\n// \n// 1 xrefs:\n// > sub_50F6C @ 0x5124c\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_517DC(int a1)\n{\n  int v2; // r1\n\n  if ( !**(_DWORD **)(a1 + 4) )\n  {\n    v2 = *(_DWORD *)(a1 + 8);\n    if ( v2 )\n    {\n      sub_50EB0(*(_DWORD *)a1, v2, 0);\n    }\n    else if ( *(_DWORD *)(a1 + 12) )\n    {\n      sub_C06BE();\n    }\n  }\n  return a1;\n}", "assembly": "; \n; sub_517DC from 0x517dc to 0x51802 (38 bytes)\n; \n; 1 xrefs:\n; > sub_50F6C @ 0x5124c\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, 0x517dc\nADD             R7, SP, #8                                             ; +0x2, 0x517de\nMOV             R4, R0                                                 ; +0x4, 0x517e0\nLDR             R0, [R0,#4]                                            ; +0x6, 0x517e2\nLDR             R0, [R0]                                               ; +0x8, 0x517e4\nCBNZ            R0, loc_517FE                                          ; +0xa, 0x517e6\nLDR             R1, [R4,#8]                                            ; +0xc, 0x517e8\nCBZ             R1, loc_517F6                                          ; +0xe, 0x517ea\nLDR             R0, [R4]                                               ; +0x10, 0x517ec\nMOVS            R2, #0                                                 ; +0x12, 0x517ee\nBL              sub_50EB0                                              ; +0x14, 0x517f0\nB               loc_517FE                                              ; +0x18, 0x517f4\nLDR             R0, [R4,#0xC]                                          ; +0x1a, 0x517f6\nCBZ             R0, loc_517FE                                          ; +0x1c, 0x517f8\nBL              sub_C06BE                                              ; +0x1e, 0x517fa\nMOV             R0, R4                                                 ; +0x22, 0x517fe\nPOP             {R4,R6,R7,PC}                                          ; +0x24, 0x51800", "xrefs": ["sub_50F6C @ 0x5124c"], "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"}