{"type": "func", "start": 286190, "end": 286246, "name": "sub_45DEE", "pseudocode": "// \n// sub_45DEE from 0x45dee to 0x45e26 (56 bytes)\n// \n// 0 xrefs:\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_45DEE(_DWORD *a1, int a2)\n{\n  _DWORD *v2; // r0\n  int result; // r0\n\n  if ( !a2 )\n    return 31;\n  if ( a1[131] )\n  {\n    v2 = (_DWORD *)a1[131];\n  }\n  else if ( a1[5] && a1[115] )\n  {\n    v2 = a1 + 20;\n  }\n  else\n  {\n    v2 = (_DWORD *)a1[130];\n    if ( !v2 )\n      return 30;\n  }\n  result = sub_A8D54(v2);\n  if ( !result )\n    return 0;\n  return result;\n}", "assembly": "; \n; sub_45DEE from 0x45dee to 0x45e26 (56 bytes)\n; \n; 0 xrefs:\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            {R7,LR}                                                ; +0x0, 0x45dee\nMOV             R7, SP                                                 ; +0x2, 0x45df0\nCBZ             R1, loc_45E04                                          ; +0x4, 0x45df2\nLDR.W           R2, [R0,#0x20C]                                        ; +0x6, 0x45df4\nCBZ             R2, loc_45E08                                          ; +0xa, 0x45df8\nMOV             R0, R2                                                 ; +0xc, 0x45dfa\nBL              sub_A8D54                                              ; +0xe, 0x45dfc\nCBZ             R0, loc_45E16                                          ; +0x12, 0x45e00\nPOP             {R7,PC}                                                ; +0x14, 0x45e02\nMOVS            R0, #0x1F                                              ; +0x16, 0x45e04\nPOP             {R7,PC}                                                ; +0x18, 0x45e06\nLDR             R2, [R0,#0x14]                                         ; +0x1a, 0x45e08\nCBZ             R2, loc_45E1A                                          ; +0x1c, 0x45e0a\nLDR.W           R2, [R0,#0x1CC]                                        ; +0x1e, 0x45e0c\nCBZ             R2, loc_45E1A                                          ; +0x22, 0x45e10\nADDS            R0, #0x50 ; 'P'                                        ; +0x24, 0x45e12\nB               loc_45DFC                                              ; +0x26, 0x45e14\nMOVS            R0, #0                                                 ; +0x28, 0x45e16\nPOP             {R7,PC}                                                ; +0x2a, 0x45e18\nLDR.W           R0, [R0,#0x208]                                        ; +0x2c, 0x45e1a\nCMP             R0, #0                                                 ; +0x30, 0x45e1e\nBNE             loc_45DFC                                              ; +0x32, 0x45e20\nMOVS            R0, #0x1E                                              ; +0x34, 0x45e22\nPOP             {R7,PC}                                                ; +0x36, 0x45e24", "xrefs": [], "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"}