{"type": "func", "start": 6442962512, "end": 6442962697, "name": "sub_18007CE50", "pseudocode": "// \n// sub_18007CE50 from 0x18007ce50 to 0x18007cf09 (185 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1801671a8\n// > <???> @ 0x180168ec0\n// > <???> @ 0x18018410c\n// > <???> @ 0x180184120\n// > <???> @ 0x180184134\n// > <???> @ 0x1801f9f30\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:35 +0000\n// \n\n__int64 __fastcall sub_18007CE50(__int64 a1, char a2, char a3)\n{\n  __int64 v5; // rdi\n\n  if ( !a2 )\n  {\n    *(_DWORD *)(a1 + 724) = -1;\n    return 0;\n  }\n  if ( a3 )\n  {\n    v5 = *(_QWORD *)(a1 + 168);\n    if ( v5 )\n    {\n      sub_1801021C0(*(_QWORD *)(a1 + 168), 3);\n      *(_DWORD *)(a1 + 724) = 0;\n      sub_180102300(v5, 3);\n      return 0;\n    }\n    goto LABEL_8;\n  }\n  if ( ((*(_DWORD *)(a1 + 724) + 1) & 0xFFFFFFFE) == 0 )\n  {\n    if ( (*(_DWORD *)(a1 + 100) & 0x100) != 0 )\n    {\nLABEL_8:\n      *(_DWORD *)(a1 + 724) = 0;\n      return 0;\n    }\n    *(_DWORD *)(a1 + 724) = *(_DWORD *)(*(_QWORD *)(a1 + 168) + 69856LL) + 1;\n  }\n  return 0;\n}", "assembly": "; \n; sub_18007CE50 from 0x18007ce50 to 0x18007cf09 (185 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1801671a8\n; > <???> @ 0x180168ec0\n; > <???> @ 0x18018410c\n; > <???> @ 0x180184120\n; > <???> @ 0x180184134\n; > <???> @ 0x1801f9f30\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:35 +0000\n; \npush    rbx                                                            ; +0x0, 0x18007ce50\nsub     rsp, 20h                                                       ; +0x2, 0x18007ce52\nmov     rbx, rcx                                                       ; +0x6, 0x18007ce56\ntest    dl, dl                                                         ; +0x9, 0x18007ce59\njnz     short loc_18007CE6F                                            ; +0xb, 0x18007ce5b\nmov     dword ptr [rcx+2D4h], 0FFFFFFFFh                               ; +0xd, 0x18007ce5d\nxor     eax, eax                                                       ; +0x17, 0x18007ce67\nadd     rsp, 20h                                                       ; +0x19, 0x18007ce69\npop     rbx                                                            ; +0x1d, 0x18007ce6d\nretn                                                                   ; +0x1e, 0x18007ce6e\nmov     [rsp+28h+arg_0], rdi                                           ; +0x1f, 0x18007ce6f\ntest    r8b, r8b                                                       ; +0x24, 0x18007ce74\njz      short loc_18007CEB6                                            ; +0x27, 0x18007ce77\nmov     rdi, [rcx+0A8h]                                                ; +0x29, 0x18007ce79\ntest    rdi, rdi                                                       ; +0x30, 0x18007ce80\njz      short loc_18007CED0                                            ; +0x33, 0x18007ce83\nmov     edx, 3                                                         ; +0x35, 0x18007ce85\nmov     rcx, rdi                                                       ; +0x3a, 0x18007ce8a\ncall    sub_1801021C0                                                  ; +0x3d, 0x18007ce8d\nmov     edx, 3                                                         ; +0x42, 0x18007ce92\nmov     dword ptr [rbx+2D4h], 0                                        ; +0x47, 0x18007ce97\nmov     rcx, rdi                                                       ; +0x51, 0x18007cea1\ncall    sub_180102300                                                  ; +0x54, 0x18007cea4\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x59, 0x18007cea9\nxor     eax, eax                                                       ; +0x5e, 0x18007ceae\nadd     rsp, 20h                                                       ; +0x60, 0x18007ceb0\npop     rbx                                                            ; +0x64, 0x18007ceb4\nretn                                                                   ; +0x65, 0x18007ceb5\nmov     eax, [rcx+2D4h]                                                ; +0x66, 0x18007ceb6\ninc     eax                                                            ; +0x6c, 0x18007cebc\ntest    eax, 0FFFFFFFEh                                                ; +0x6e, 0x18007cebe\njnz     short loc_18007CEFC                                            ; +0x73, 0x18007cec3\nmov     eax, [rcx+64h]                                                 ; +0x75, 0x18007cec5\nnop                                                                    ; +0x78, 0x18007cec8\nshr     eax, 8                                                         ; +0x79, 0x18007cec9\ntest    al, 1                                                          ; +0x7c, 0x18007cecc\njz      short loc_18007CEE7                                            ; +0x7e, 0x18007cece\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x80, 0x18007ced0\nxor     eax, eax                                                       ; +0x85, 0x18007ced5\nmov     dword ptr [rcx+2D4h], 0                                        ; +0x87, 0x18007ced7\nadd     rsp, 20h                                                       ; +0x91, 0x18007cee1\npop     rbx                                                            ; +0x95, 0x18007cee5\nretn                                                                   ; +0x96, 0x18007cee6\nmov     rax, [rcx+0A8h]                                                ; +0x97, 0x18007cee7\nmov     ecx, [rax+110E0h]                                              ; +0x9e, 0x18007ceee\ninc     ecx                                                            ; +0xa4, 0x18007cef4\nmov     [rbx+2D4h], ecx                                                ; +0xa6, 0x18007cef6\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xac, 0x18007cefc\nxor     eax, eax                                                       ; +0xb1, 0x18007cf01\nadd     rsp, 20h                                                       ; +0xb3, 0x18007cf03\npop     rbx                                                            ; +0xb7, 0x18007cf07\nretn                                                                   ; +0xb8, 0x18007cf08", "xrefs": ["<???> @ 0x1801671a8", "<???> @ 0x180168ec0", "<???> @ 0x18018410c", "<???> @ 0x180184120", "<???> @ 0x180184134", "<???> @ 0x1801f9f30"], "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"}