{"type": "func", "start": 6443370464, "end": 6443370612, "name": "sub_1800E07E0", "pseudocode": "// \n// sub_1800E07E0 from 0x1800e07e0 to 0x1800e0874 (148 bytes)\n// \n// 2 xrefs:\n// > sub_1800DD230 @ 0x1800dd4ef\n// > <???> @ 0x1801ff8a0\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:54:15 +0000\n// \n\n__int64 __fastcall sub_1800E07E0(__int64 a1, unsigned int a2, unsigned int a3)\n{\n  __int64 v5; // rcx\n  __int64 result; // rax\n  void (__fastcall *v7)(_QWORD, _QWORD, _QWORD, __int64); // rax\n  int v8; // [rsp+30h] [rbp+8h] BYREF\n\n  v5 = *(_QWORD *)(a1 + 96);\n  if ( !*(_QWORD *)(v5 + 368) && (*(_DWORD *)(v5 + 44) & 0x400) == 0 )\n    return 14;\n  *(_DWORD *)(a1 + 64) = a3;\n  result = sub_180012B90(v5, a2, a3, 2u);\n  if ( !(_DWORD)result )\n  {\n    if ( !(unsigned int)sub_180012510(*(_QWORD *)(a1 + 96), &v8, 2) )\n      *(_DWORD *)(a1 + 64) = v8;\n    v7 = *(void (__fastcall **)(_QWORD, _QWORD, _QWORD, __int64))(a1 + 336);\n    if ( v7 )\n      v7(*(_QWORD *)(a1 + 344), a2, *(unsigned int *)(a1 + 64), 2);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800E07E0 from 0x1800e07e0 to 0x1800e0874 (148 bytes)\n; \n; 2 xrefs:\n; > sub_1800DD230 @ 0x1800dd4ef\n; > <???> @ 0x1801ff8a0\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:54:15 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800e07e0\npush    rdi                                                            ; +0x5, 0x1800e07e5\nsub     rsp, 20h                                                       ; +0x6, 0x1800e07e6\nmov     rbx, rcx                                                       ; +0xa, 0x1800e07ea\nmov     edi, edx                                                       ; +0xd, 0x1800e07ed\nmov     rcx, [rcx+60h]                                                 ; +0xf, 0x1800e07ef\ncmp     qword ptr [rcx+170h], 0                                        ; +0x13, 0x1800e07f3\njnz     short loc_1800E0816                                            ; +0x1b, 0x1800e07fb\ntest    dword ptr [rcx+2Ch], 400h                                      ; +0x1d, 0x1800e07fd\njnz     short loc_1800E0816                                            ; +0x24, 0x1800e0804\nmov     eax, 0Eh                                                       ; +0x26, 0x1800e0806\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x2b, 0x1800e080b\nadd     rsp, 20h                                                       ; +0x30, 0x1800e0810\npop     rdi                                                            ; +0x34, 0x1800e0814\nretn                                                                   ; +0x35, 0x1800e0815\nmov     r9d, 2                                                         ; +0x36, 0x1800e0816\nmov     [rbx+40h], r8d                                                 ; +0x3c, 0x1800e081c\ncall    sub_180012B90                                                  ; +0x40, 0x1800e0820\ntest    eax, eax                                                       ; +0x45, 0x1800e0825\njnz     short loc_1800E0869                                            ; +0x47, 0x1800e0827\nmov     rcx, [rbx+60h]                                                 ; +0x49, 0x1800e0829\nlea     r8d, [rax+2]                                                   ; +0x4d, 0x1800e082d\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x51, 0x1800e0831\ncall    sub_180012510                                                  ; +0x56, 0x1800e0836\ntest    eax, eax                                                       ; +0x5b, 0x1800e083b\njnz     short loc_1800E0846                                            ; +0x5d, 0x1800e083d\nmov     eax, [rsp+28h+arg_0]                                           ; +0x5f, 0x1800e083f\nmov     [rbx+40h], eax                                                 ; +0x63, 0x1800e0843\nmov     rax, [rbx+150h]                                                ; +0x66, 0x1800e0846\ntest    rax, rax                                                       ; +0x6d, 0x1800e084d\njz      short loc_1800E0867                                            ; +0x70, 0x1800e0850\nmov     r8d, [rbx+40h]                                                 ; +0x72, 0x1800e0852\nmov     r9d, 2                                                         ; +0x76, 0x1800e0856\nmov     rcx, [rbx+158h]                                                ; +0x7c, 0x1800e085c\nmov     edx, edi                                                       ; +0x83, 0x1800e0863\ncall    rax                                                            ; +0x85, 0x1800e0865\nxor     eax, eax                                                       ; +0x87, 0x1800e0867\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x89, 0x1800e0869\nadd     rsp, 20h                                                       ; +0x8e, 0x1800e086e\npop     rdi                                                            ; +0x92, 0x1800e0872\nretn                                                                   ; +0x93, 0x1800e0873", "xrefs": ["sub_1800DD230 @ 0x1800dd4ef", "<???> @ 0x1801ff8a0"], "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"}