{"type": "func", "start": 6443048944, "end": 6443049126, "name": "sub_180091FF0", "pseudocode": "// \n// sub_180091FF0 from 0x180091ff0 to 0x1800920a6 (182 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x180167200\n// > <???> @ 0x1801850f0\n// > <???> @ 0x180185104\n// > <???> @ 0x180185118\n// > <???> @ 0x1801fa800\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:53:45 +0000\n// \n\n__int64 __fastcall sub_180091FF0(__int64 a1, char a2, char a3, char a4)\n{\n  __int64 v6; // rdi\n\n  if ( !a2 )\n  {\n    *(_DWORD *)(a1 + 564) = -1;\n    return 0;\n  }\n  if ( a3 )\n  {\n    v6 = *(_QWORD *)(a1 + 168);\n    if ( !a4 && v6 )\n    {\n      sub_1801021C0(*(_QWORD *)(a1 + 168), 3);\n      *(_DWORD *)(a1 + 564) = 0;\n      sub_180102300(v6, 3);\n      return 0;\n    }\n    goto LABEL_9;\n  }\n  if ( ((*(_DWORD *)(a1 + 564) + 1) & 0xFFFFFFFE) == 0 )\n  {\n    if ( (*(_DWORD *)(a1 + 100) & 0x100) != 0 )\n    {\nLABEL_9:\n      *(_DWORD *)(a1 + 564) = 0;\n      return 0;\n    }\n    *(_DWORD *)(a1 + 564) = *(_DWORD *)(*(_QWORD *)(a1 + 168) + 69856LL) + 1;\n  }\n  return 0;\n}", "assembly": "; \n; sub_180091FF0 from 0x180091ff0 to 0x1800920a6 (182 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x180167200\n; > <???> @ 0x1801850f0\n; > <???> @ 0x180185104\n; > <???> @ 0x180185118\n; > <???> @ 0x1801fa800\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:53:45 +0000\n; \npush    rbx                                                            ; +0x0, 0x180091ff0\nsub     rsp, 20h                                                       ; +0x2, 0x180091ff2\nmov     rbx, rcx                                                       ; +0x6, 0x180091ff6\ntest    dl, dl                                                         ; +0x9, 0x180091ff9\njnz     short loc_18009200F                                            ; +0xb, 0x180091ffb\nmov     dword ptr [rcx+234h], 0FFFFFFFFh                               ; +0xd, 0x180091ffd\nxor     eax, eax                                                       ; +0x17, 0x180092007\nadd     rsp, 20h                                                       ; +0x19, 0x180092009\npop     rbx                                                            ; +0x1d, 0x18009200d\nretn                                                                   ; +0x1e, 0x18009200e\nmov     [rsp+28h+arg_0], rdi                                           ; +0x1f, 0x18009200f\ntest    r8b, r8b                                                       ; +0x24, 0x180092014\njz      short loc_180092057                                            ; +0x27, 0x180092017\nmov     rdi, [rcx+0A8h]                                                ; +0x29, 0x180092019\ntest    r9b, r9b                                                       ; +0x30, 0x180092020\njnz     short loc_180092071                                            ; +0x33, 0x180092023\ntest    rdi, rdi                                                       ; +0x35, 0x180092025\njz      short loc_180092071                                            ; +0x38, 0x180092028\nmov     edx, 3                                                         ; +0x3a, 0x18009202a\nmov     rcx, rdi                                                       ; +0x3f, 0x18009202f\ncall    sub_1801021C0                                                  ; +0x42, 0x180092032\nxor     eax, eax                                                       ; +0x47, 0x180092037\nmov     rcx, rdi                                                       ; +0x49, 0x180092039\nmov     [rbx+234h], eax                                                ; +0x4c, 0x18009203c\nlea     edx, [rax+3]                                                   ; +0x52, 0x180092042\ncall    sub_180102300                                                  ; +0x55, 0x180092045\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x5a, 0x18009204a\nxor     eax, eax                                                       ; +0x5f, 0x18009204f\nadd     rsp, 20h                                                       ; +0x61, 0x180092051\npop     rbx                                                            ; +0x65, 0x180092055\nretn                                                                   ; +0x66, 0x180092056\nmov     eax, [rcx+234h]                                                ; +0x67, 0x180092057\ninc     eax                                                            ; +0x6d, 0x18009205d\ntest    eax, 0FFFFFFFEh                                                ; +0x6f, 0x18009205f\njnz     short loc_180092099                                            ; +0x74, 0x180092064\nmov     eax, [rcx+64h]                                                 ; +0x76, 0x180092066\nnop                                                                    ; +0x79, 0x180092069\nshr     eax, 8                                                         ; +0x7a, 0x18009206a\ntest    al, 1                                                          ; +0x7d, 0x18009206d\njz      short loc_180092084                                            ; +0x7f, 0x18009206f\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x81, 0x180092071\nxor     eax, eax                                                       ; +0x86, 0x180092076\nmov     [rcx+234h], eax                                                ; +0x88, 0x180092078\nadd     rsp, 20h                                                       ; +0x8e, 0x18009207e\npop     rbx                                                            ; +0x92, 0x180092082\nretn                                                                   ; +0x93, 0x180092083\nmov     rax, [rcx+0A8h]                                                ; +0x94, 0x180092084\nmov     eax, [rax+110E0h]                                              ; +0x9b, 0x18009208b\ninc     eax                                                            ; +0xa1, 0x180092091\nmov     [rcx+234h], eax                                                ; +0xa3, 0x180092093\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xa9, 0x180092099\nxor     eax, eax                                                       ; +0xae, 0x18009209e\nadd     rsp, 20h                                                       ; +0xb0, 0x1800920a0\npop     rbx                                                            ; +0xb4, 0x1800920a4\nretn                                                                   ; +0xb5, 0x1800920a5", "xrefs": ["<???> @ 0x180167200", "<???> @ 0x1801850f0", "<???> @ 0x180185104", "<???> @ 0x180185118", "<???> @ 0x1801fa800"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}