{"type": "func", "start": 6443288464, "end": 6443288758, "name": "sub_1800CC790", "pseudocode": "// \n// sub_1800CC790 from 0x1800cc790 to 0x1800cc8b6 (294 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18016c878\n// > <???> @ 0x18018b33c\n// > <???> @ 0x18018b34c\n// > <???> @ 0x1801fe670\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:07 +0000\n// \n\n__int64 __fastcall sub_1800CC790(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v4; // rbx\n  __int64 v5; // r14\n  __int64 v7; // r12\n  __int64 result; // rax\n  __int64 v10; // rdi\n  __int64 v11; // r9\n  __int64 v12; // r9\n  _BYTE v13[8]; // [rsp+20h] [rbp-48h] BYREF\n  unsigned __int64 v14; // [rsp+28h] [rbp-40h] BYREF\n  unsigned __int64 v15[7]; // [rsp+30h] [rbp-38h] BYREF\n  unsigned __int8 v16; // [rsp+88h] [rbp+20h] BYREF\n\n  v4 = *(_QWORD *)(a1 + 96);\n  v5 = *(_QWORD *)(a1 + 104);\n  v7 = *(_QWORD *)(a1 + 112);\n  result = (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)a1 + 24LL))(a1, v13);\n  if ( !(_DWORD)result )\n  {\n    v10 = v4;\n    *(_QWORD *)(a1 + 112) = v7;\n    if ( a2 )\n      v10 = a2;\n    *(_QWORD *)(a1 + 96) = v10;\n    if ( a3 )\n      v5 = a3;\n    *(_QWORD *)(a1 + 104) = v5;\n    if ( !a2 )\n      return 0;\n    result = sub_180096F50(v4, v15, &v14, &v16);\n    if ( !(_DWORD)result )\n    {\n      result = sub_18009B890(v10, v15[0], v14, v16);\n      if ( !(_DWORD)result )\n      {\n        result = sub_18009C1B0(v10, *(float *)(a1 + 52), 1, v11);\n        if ( !(_DWORD)result )\n        {\n          result = sub_18009B890(v4, 0, 0, 0);\n          if ( !(_DWORD)result )\n          {\n            result = sub_18009C1B0(v4, 1.0, 1, v12);\n            if ( !(_DWORD)result )\n            {\n              result = sub_18009B6A0(v10, v13[0] == 0, 1u);\n              if ( !(_DWORD)result )\n              {\n                result = sub_18009B6A0(v4, 1, 1u);\n                if ( !(_DWORD)result )\n                  return 0;\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800CC790 from 0x1800cc790 to 0x1800cc8b6 (294 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18016c878\n; > <???> @ 0x18018b33c\n; > <???> @ 0x18018b34c\n; > <???> @ 0x1801fe670\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:07 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800cc790\npush    rbp                                                            ; +0x5, 0x1800cc795\npush    rsi                                                            ; +0x6, 0x1800cc796\npush    r12                                                            ; +0x7, 0x1800cc797\npush    r14                                                            ; +0x9, 0x1800cc799\npush    r15                                                            ; +0xb, 0x1800cc79b\nsub     rsp, 40h                                                       ; +0xd, 0x1800cc79d\nmov     rax, [rcx]                                                     ; +0x11, 0x1800cc7a1\nmov     rbp, rdx                                                       ; +0x14, 0x1800cc7a4\nmov     rbx, [rcx+60h]                                                 ; +0x17, 0x1800cc7a7\nlea     rdx, [rsp+68h+var_48]                                          ; +0x1b, 0x1800cc7ab\nmov     r14, [rcx+68h]                                                 ; +0x20, 0x1800cc7b0\nmov     r15, r8                                                        ; +0x24, 0x1800cc7b4\nmov     r12, [rcx+70h]                                                 ; +0x27, 0x1800cc7b7\nmov     rsi, rcx                                                       ; +0x2b, 0x1800cc7bb\ncall    qword ptr [rax+18h]                                            ; +0x2e, 0x1800cc7be\ntest    eax, eax                                                       ; +0x31, 0x1800cc7c1\njnz     loc_1800CC8A4                                                  ; +0x33, 0x1800cc7c3\ntest    rbp, rbp                                                       ; +0x39, 0x1800cc7c9\nmov     [rsp+68h+arg_0], rdi                                           ; +0x3c, 0x1800cc7cc\nmov     rdi, rbx                                                       ; +0x41, 0x1800cc7d1\nmov     [rsi+70h], r12                                                 ; +0x44, 0x1800cc7d4\ncmovnz  rdi, rbp                                                       ; +0x48, 0x1800cc7d8\ntest    r15, r15                                                       ; +0x4c, 0x1800cc7dc\nmov     [rsi+60h], rdi                                                 ; +0x4f, 0x1800cc7df\ncmovnz  r14, r15                                                       ; +0x53, 0x1800cc7e3\nmov     [rsi+68h], r14                                                 ; +0x57, 0x1800cc7e7\ntest    rbp, rbp                                                       ; +0x5b, 0x1800cc7eb\njz      loc_1800CC89D                                                  ; +0x5e, 0x1800cc7ee\nlea     r9, [rsp+68h+arg_18]                                           ; +0x64, 0x1800cc7f4\nmov     rcx, rbx                                                       ; +0x6c, 0x1800cc7fc\nlea     r8, [rsp+68h+var_40]                                           ; +0x6f, 0x1800cc7ff\nlea     rdx, [rsp+68h+var_38]                                          ; +0x74, 0x1800cc804\ncall    sub_180096F50                                                  ; +0x79, 0x1800cc809\ntest    eax, eax                                                       ; +0x7e, 0x1800cc80e\njnz     loc_1800CC89F                                                  ; +0x80, 0x1800cc810\nmovzx   r9d, [rsp+68h+arg_18]                                          ; +0x86, 0x1800cc816\nmov     rcx, rdi                                                       ; +0x8f, 0x1800cc81f\nmov     r8, [rsp+68h+var_40]                                           ; +0x92, 0x1800cc822\nmov     rdx, [rsp+68h+var_38]                                          ; +0x97, 0x1800cc827\ncall    sub_18009B890                                                  ; +0x9c, 0x1800cc82c\ntest    eax, eax                                                       ; +0xa1, 0x1800cc831\njnz     short loc_1800CC89F                                            ; +0xa3, 0x1800cc833\nmovss   xmm1, dword ptr [rsi+34h]                                      ; +0xa5, 0x1800cc835\nmov     r8b, 1                                                         ; +0xaa, 0x1800cc83a\nmov     rcx, rdi                                                       ; +0xad, 0x1800cc83d\ncall    sub_18009C1B0                                                  ; +0xb0, 0x1800cc840\ntest    eax, eax                                                       ; +0xb5, 0x1800cc845\njnz     short loc_1800CC89F                                            ; +0xb7, 0x1800cc847\nxor     r9d, r9d                                                       ; +0xb9, 0x1800cc849\nxor     r8d, r8d                                                       ; +0xbc, 0x1800cc84c\nxor     edx, edx                                                       ; +0xbf, 0x1800cc84f\nmov     rcx, rbx                                                       ; +0xc1, 0x1800cc851\ncall    sub_18009B890                                                  ; +0xc4, 0x1800cc854\ntest    eax, eax                                                       ; +0xc9, 0x1800cc859\njnz     short loc_1800CC89F                                            ; +0xcb, 0x1800cc85b\nmovss   xmm1, cs:dword_180145744                                       ; +0xcd, 0x1800cc85d\nmov     r8b, 1                                                         ; +0xd5, 0x1800cc865\nmov     rcx, rbx                                                       ; +0xd8, 0x1800cc868\ncall    sub_18009C1B0                                                  ; +0xdb, 0x1800cc86b\ntest    eax, eax                                                       ; +0xe0, 0x1800cc870\njnz     short loc_1800CC89F                                            ; +0xe2, 0x1800cc872\ncmp     [rsp+68h+var_48], al                                           ; +0xe4, 0x1800cc874\nmov     r8b, 1                                                         ; +0xe8, 0x1800cc878\nmov     rcx, rdi                                                       ; +0xeb, 0x1800cc87b\nsetz    dl                                                             ; +0xee, 0x1800cc87e\ncall    sub_18009B6A0                                                  ; +0xf1, 0x1800cc881\ntest    eax, eax                                                       ; +0xf6, 0x1800cc886\njnz     short loc_1800CC89F                                            ; +0xf8, 0x1800cc888\nmov     r8b, 1                                                         ; +0xfa, 0x1800cc88a\nmov     rcx, rbx                                                       ; +0xfd, 0x1800cc88d\nmovzx   edx, r8b                                                       ; +0x100, 0x1800cc890\ncall    sub_18009B6A0                                                  ; +0x104, 0x1800cc894\ntest    eax, eax                                                       ; +0x109, 0x1800cc899\njnz     short loc_1800CC89F                                            ; +0x10b, 0x1800cc89b\nxor     eax, eax                                                       ; +0x10d, 0x1800cc89d\nmov     rdi, [rsp+68h+arg_0]                                           ; +0x10f, 0x1800cc89f\nmov     rbx, [rsp+68h+arg_8]                                           ; +0x114, 0x1800cc8a4\nadd     rsp, 40h                                                       ; +0x119, 0x1800cc8a9\npop     r15                                                            ; +0x11d, 0x1800cc8ad\npop     r14                                                            ; +0x11f, 0x1800cc8af\npop     r12                                                            ; +0x121, 0x1800cc8b1\npop     rsi                                                            ; +0x123, 0x1800cc8b3\npop     rbp                                                            ; +0x124, 0x1800cc8b4\nretn                                                                   ; +0x125, 0x1800cc8b5", "xrefs": ["<???> @ 0x18016c878", "<???> @ 0x18018b33c", "<???> @ 0x18018b34c", "<???> @ 0x1801fe670"], "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"}