{"type": "func", "start": 6443300576, "end": 6443300930, "name": "sub_1800CF6E0", "pseudocode": "// \n// sub_1800CF6E0 from 0x1800cf6e0 to 0x1800cf842 (354 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18016c998\n// > <???> @ 0x18018ba48\n// > <???> @ 0x18018ba58\n// > <???> @ 0x1801fe958\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:08 +0000\n// \n\n__int64 __fastcall sub_1800CF6E0(__int64 *a1, int a2)\n{\n  _DWORD *v4; // rcx\n  int v5; // esi\n  __int64 result; // rax\n  __int64 v7; // rdx\n  __int64 v8; // r8\n  __int64 v9; // r9\n  int v10; // eax\n  float v11; // xmm0_4\n  __int64 v12; // rax\n  int v13; // edi\n  __int64 v14; // [rsp+30h] [rbp-28h] BYREF\n  int v15; // [rsp+38h] [rbp-20h]\n\n  v4 = (_DWORD *)a1[59];\n  if ( !v4 || !a1[4] )\n    return 30;\n  v5 = v4[14];\n  result = (*(__int64 (**)(void))(*(_QWORD *)v4 + 192LL))();\n  if ( !(_DWORD)result )\n  {\n    if ( (v5 & 8) == 0 && (a2 & 8) != 0 )\n    {\n      result = (*(__int64 (__fastcall **)(__int64 *, __int64, _QWORD))(*a1 + 32))(a1, v7, 0);\n      if ( (_DWORD)result )\n        return result;\n      (*(void (__fastcall **)(__int64 *, __int64, _QWORD, _QWORD, _DWORD, _BYTE))(*a1 + 200))(\n        a1,\n        a1[8],\n        (unsigned int)*((__int16 *)a1 + 29),\n        (unsigned int)*((__int16 *)a1 + 28),\n        0,\n        0);\n      goto LABEL_12;\n    }\n    if ( ((v5 & 0x10) != 0 || (a2 & 0x10) == 0) && ((v5 ^ a2) & 0x4F00000) == 0\n      || (v10 = *((_DWORD *)a1 + 34),\n          v14 = a1[16],\n          v11 = *((float *)a1 + 32) + 1.0,\n          v15 = v10,\n          v12 = *a1,\n          *((float *)a1 + 32) = v11,\n          result = (*(__int64 (__fastcall **)(__int64 *, __int64 *, __int64))(v12 + 320))(a1, &v14, (__int64)a1 + 140),\n          !(_DWORD)result) )\n    {\nLABEL_12:\n      v13 = a2 & 0x40000000;\n      if ( v13 != (v5 & 0x40000000) )\n      {\n        if ( v13 )\n        {\n          LOBYTE(v9) = 1;\n          (*(void (__fastcall **)(__int64 *, __int64, __int64, __int64))(*a1 + 408))(a1, v7, v8, v9);\n        }\n        else\n        {\n          *((_DWORD *)a1 + 18) |= 4u;\n        }\n      }\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800CF6E0 from 0x1800cf6e0 to 0x1800cf842 (354 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18016c998\n; > <???> @ 0x18018ba48\n; > <???> @ 0x18018ba58\n; > <???> @ 0x1801fe958\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:08 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x1800cf6e0\npush    rdi                                                            ; +0x5, 0x1800cf6e5\nsub     rsp, 50h                                                       ; +0x6, 0x1800cf6e6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1800cf6ea\nxor     rax, rsp                                                       ; +0x11, 0x1800cf6f1\nmov     [rsp+58h+var_18], rax                                          ; +0x14, 0x1800cf6f4\nmov     rbx, rcx                                                       ; +0x19, 0x1800cf6f9\nmov     edi, edx                                                       ; +0x1c, 0x1800cf6fc\nmov     rcx, [rcx+1D8h]                                                ; +0x1e, 0x1800cf6fe\ntest    rcx, rcx                                                       ; +0x25, 0x1800cf705\njz      loc_1800CF83B                                                  ; +0x28, 0x1800cf708\ncmp     qword ptr [rbx+20h], 0                                         ; +0x2e, 0x1800cf70e\njz      loc_1800CF83B                                                  ; +0x33, 0x1800cf713\nmov     rax, [rcx]                                                     ; +0x39, 0x1800cf719\nmov     [rsp+58h+arg_10], rsi                                          ; +0x3c, 0x1800cf71c\nmov     esi, [rcx+38h]                                                 ; +0x41, 0x1800cf721\ncall    qword ptr [rax+0C0h]                                           ; +0x44, 0x1800cf724\ntest    eax, eax                                                       ; +0x4a, 0x1800cf72a\njnz     loc_1800CF81E                                                  ; +0x4c, 0x1800cf72c\ntest    sil, 8                                                         ; +0x52, 0x1800cf732\njnz     short loc_1800CF780                                            ; +0x56, 0x1800cf736\ntest    dil, 8                                                         ; +0x58, 0x1800cf738\njz      short loc_1800CF780                                            ; +0x5c, 0x1800cf73c\nmov     rax, [rbx]                                                     ; +0x5e, 0x1800cf73e\nxor     r8d, r8d                                                       ; +0x61, 0x1800cf741\nmovss   xmm1, dword ptr [rbx+30h]                                      ; +0x64, 0x1800cf744\nmov     rcx, rbx                                                       ; +0x69, 0x1800cf749\ncall    qword ptr [rax+20h]                                            ; +0x6c, 0x1800cf74c\ntest    eax, eax                                                       ; +0x6f, 0x1800cf74f\njnz     loc_1800CF81E                                                  ; +0x71, 0x1800cf751\nmov     rax, [rbx]                                                     ; +0x77, 0x1800cf757\nmov     rcx, rbx                                                       ; +0x7a, 0x1800cf75a\nmovsx   r9d, word ptr [rbx+38h]                                        ; +0x7d, 0x1800cf75d\nmovsx   r8d, word ptr [rbx+3Ah]                                        ; +0x82, 0x1800cf762\nmov     rdx, [rbx+40h]                                                 ; +0x87, 0x1800cf767\nmov     [rsp+58h+var_30], 0                                            ; +0x8b, 0x1800cf76b\nmov     [rsp+58h+var_38], 0                                            ; +0x90, 0x1800cf770\ncall    qword ptr [rax+0C8h]                                           ; +0x98, 0x1800cf778\njmp     short loc_1800CF7E3                                            ; +0x9e, 0x1800cf77e\ntest    sil, 10h                                                       ; +0xa0, 0x1800cf780\njnz     short loc_1800CF78C                                            ; +0xa4, 0x1800cf784\ntest    dil, 10h                                                       ; +0xa6, 0x1800cf786\njnz     short loc_1800CF797                                            ; +0xaa, 0x1800cf78a\nmov     eax, edi                                                       ; +0xac, 0x1800cf78c\nxor     eax, esi                                                       ; +0xae, 0x1800cf78e\ntest    eax, 4F00000h                                                  ; +0xb0, 0x1800cf790\njz      short loc_1800CF7E3                                            ; +0xb5, 0x1800cf795\nmovsd   xmm0, qword ptr [rbx+80h]                                      ; +0xb7, 0x1800cf797\nlea     r8, [rbx+8Ch]                                                  ; +0xbf, 0x1800cf79f\nmov     eax, [rbx+88h]                                                 ; +0xc6, 0x1800cf7a6\nlea     rdx, [rsp+58h+var_28]                                          ; +0xcc, 0x1800cf7ac\nmovsd   [rsp+58h+var_28], xmm0                                         ; +0xd1, 0x1800cf7b1\nmov     rcx, rbx                                                       ; +0xd7, 0x1800cf7b7\nmovss   xmm0, dword ptr [rbx+80h]                                      ; +0xda, 0x1800cf7ba\naddss   xmm0, cs:dword_180145744                                       ; +0xe2, 0x1800cf7c2\nmov     [rsp+58h+var_20], eax                                          ; +0xea, 0x1800cf7ca\nmov     rax, [rbx]                                                     ; +0xee, 0x1800cf7ce\nmovss   dword ptr [rbx+80h], xmm0                                      ; +0xf1, 0x1800cf7d1\ncall    qword ptr [rax+140h]                                           ; +0xf9, 0x1800cf7d9\ntest    eax, eax                                                       ; +0xff, 0x1800cf7df\njnz     short loc_1800CF81E                                            ; +0x101, 0x1800cf7e1\nand     edi, 40000000h                                                 ; +0x103, 0x1800cf7e3\nand     esi, 40000000h                                                 ; +0x109, 0x1800cf7e9\ncmp     edi, esi                                                       ; +0x10f, 0x1800cf7ef\njz      short loc_1800CF81C                                            ; +0x111, 0x1800cf7f1\ntest    edi, edi                                                       ; +0x113, 0x1800cf7f3\njz      short loc_1800CF818                                            ; +0x115, 0x1800cf7f5\nmov     rax, [rbx]                                                     ; +0x117, 0x1800cf7f7\nmov     r9b, 1                                                         ; +0x11a, 0x1800cf7fa\nmovss   xmm2, dword ptr [rbx+0D4h]                                     ; +0x11d, 0x1800cf7fd\nmov     rcx, rbx                                                       ; +0x125, 0x1800cf805\nmovss   xmm1, dword ptr [rbx+0D0h]                                     ; +0x128, 0x1800cf808\ncall    qword ptr [rax+198h]                                           ; +0x130, 0x1800cf810\njmp     short loc_1800CF81C                                            ; +0x136, 0x1800cf816\nor      dword ptr [rbx+48h], 4                                         ; +0x138, 0x1800cf818\nxor     eax, eax                                                       ; +0x13c, 0x1800cf81c\nmov     rsi, [rsp+58h+arg_10]                                          ; +0x13e, 0x1800cf81e\nmov     rcx, [rsp+58h+var_18]                                          ; +0x143, 0x1800cf823\nxor     rcx, rsp; StackCookie                                          ; +0x148, 0x1800cf828\ncall    __security_check_cookie                                        ; +0x14b, 0x1800cf82b\nmov     rbx, [rsp+58h+arg_18]                                          ; +0x150, 0x1800cf830\nadd     rsp, 50h                                                       ; +0x155, 0x1800cf835\npop     rdi                                                            ; +0x159, 0x1800cf839\nretn                                                                   ; +0x15a, 0x1800cf83a\nmov     eax, 1Eh                                                       ; +0x15b, 0x1800cf83b\njmp     short loc_1800CF823                                            ; +0x160, 0x1800cf840", "xrefs": ["<???> @ 0x18016c998", "<???> @ 0x18018ba48", "<???> @ 0x18018ba58", "<???> @ 0x1801fe958"], "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"}