{"type": "func", "start": 286472, "end": 286592, "name": "sub_45F08", "pseudocode": "// \n// sub_45F08 from 0x45f08 to 0x45f80 (120 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_45F08(_DWORD *a1, _BYTE *a2)\n{\n  int v3; // r1\n  unsigned int v5; // r0\n  unsigned int v6; // r2\n  int v8; // r0\n  int v9; // r0\n\n  if ( !a2 )\n    return 31;\n  v3 = a1[8];\n  if ( (v3 & 0x10) != 0 )\n    goto LABEL_6;\n  v5 = a1[135];\n  v6 = v5 + 1;\n  if ( v5 != -1 )\n  {\n    if ( (v3 & 0x10000) == 0 && *(_DWORD *)(a1[1] + 68872) < v5 )\n      goto LABEL_6;\n    goto LABEL_16;\n  }\n  v8 = a1[131];\n  if ( v8 || (v8 = a1[130]) != 0 )\n  {\n    (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 24))(v8, a2);\n    goto LABEL_11;\n  }\n  if ( a1[115] )\n  {\n    if ( !a1[5] )\n    {\nLABEL_16:\n      *a2 = 0;\n      goto LABEL_17;\n    }\n    sub_A6EF0(a1 + 20, a2, v6);\nLABEL_11:\n    v9 = (unsigned __int8)*a2;\n    *a2 = v9 ^ 1;\n    if ( !v9 )\n      return 0;\n    v3 = a1[8];\nLABEL_17:\n    a1[8] = v3 & 0xFFFFFFAF;\n    return 0;\n  }\nLABEL_6:\n  *a2 = 1;\n  return 0;\n}", "assembly": "; \n; sub_45F08 from 0x45f08 to 0x45f80 (120 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            {R4,R5,R7,LR}                                          ; +0x0, 0x45f08\nADD             R7, SP, #8                                             ; +0x2, 0x45f0a\nCBZ             R1, loc_45F34                                          ; +0x4, 0x45f0c\nMOV             R5, R1                                                 ; +0x6, 0x45f0e\nLDR             R1, [R0,#0x20]                                         ; +0x8, 0x45f10\nMOV             R4, R0                                                 ; +0xa, 0x45f12\nLSLS            R0, R1, #0x1B                                          ; +0xc, 0x45f14\nBMI             loc_45F2E                                              ; +0xe, 0x45f16\nLDR.W           R0, [R4,#0x21C]                                        ; +0x10, 0x45f18\nADDS            R2, R0, #1                                             ; +0x14, 0x45f1c\nBEQ             loc_45F38                                              ; +0x16, 0x45f1e\nLSLS            R2, R1, #0xF                                           ; +0x18, 0x45f20\nBMI             loc_45F72                                              ; +0x1a, 0x45f22\nLDR             R2, [R4,#4]                                            ; +0x1c, 0x45f24\nLDR             R3, =0x10D08                                           ; +0x1e, 0x45f26\nLDR             R2, [R2,R3]                                            ; +0x20, 0x45f28\nCMP             R2, R0                                                 ; +0x22, 0x45f2a\nBCS             loc_45F72                                              ; +0x24, 0x45f2c\nMOVS            R0, #1                                                 ; +0x26, 0x45f2e\nSTRB            R0, [R5]                                               ; +0x28, 0x45f30\nB               loc_45F7C                                              ; +0x2a, 0x45f32\nMOVS            R0, #0x1F                                              ; +0x2c, 0x45f34\nPOP             {R4,R5,R7,PC}                                          ; +0x2e, 0x45f36\nLDR.W           R0, [R4,#0x20C]                                        ; +0x30, 0x45f38\nCBNZ            R0, loc_45F44                                          ; +0x34, 0x45f3c\nLDR.W           R0, [R4,#0x208]                                        ; +0x36, 0x45f3e\nCBZ             R0, loc_45F5A                                          ; +0x3a, 0x45f42\nLDR             R1, [R0]                                               ; +0x3c, 0x45f44\nLDR             R2, [R1,#0x18]                                         ; +0x3e, 0x45f46\nMOV             R1, R5                                                 ; +0x40, 0x45f48\nBLX             R2                                                     ; +0x42, 0x45f4a\nLDRB            R0, [R5]                                               ; +0x44, 0x45f4c\nEOR.W           R1, R0, #1                                             ; +0x46, 0x45f4e\nSTRB            R1, [R5]                                               ; +0x4a, 0x45f52\nCBZ             R0, loc_45F7C                                          ; +0x4c, 0x45f54\nLDR             R1, [R4,#0x20]                                         ; +0x4e, 0x45f56\nB               loc_45F76                                              ; +0x50, 0x45f58\nLDR.W           R0, [R4,#0x1CC]                                        ; +0x52, 0x45f5a\nCMP             R0, #0                                                 ; +0x56, 0x45f5e\nBEQ             loc_45F2E                                              ; +0x58, 0x45f60\nLDR             R0, [R4,#0x14]                                         ; +0x5a, 0x45f62\nCBZ             R0, loc_45F72                                          ; +0x5c, 0x45f64\nADD.W           R0, R4, #0x50 ; 'P'                                    ; +0x5e, 0x45f66\nMOV             R1, R5                                                 ; +0x62, 0x45f6a\nBL              sub_A6EF0                                              ; +0x64, 0x45f6c\nB               loc_45F4C                                              ; +0x68, 0x45f70\nMOVS            R0, #0                                                 ; +0x6a, 0x45f72\nSTRB            R0, [R5]                                               ; +0x6c, 0x45f74\nBIC.W           R0, R1, #0x50 ; 'P'                                    ; +0x6e, 0x45f76\nSTR             R0, [R4,#0x20]                                         ; +0x72, 0x45f7a\nMOVS            R0, #0                                                 ; +0x74, 0x45f7c\nPOP             {R4,R5,R7,PC}                                          ; +0x76, 0x45f7e", "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"}