{"type": "func", "start": 6443273024, "end": 6443273272, "name": "sub_1800C8B40", "pseudocode": "// \n// sub_1800C8B40 from 0x1800c8b40 to 0x1800c8c38 (248 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18016c4e0\n// > <???> @ 0x18018ae2c\n// > <???> @ 0x18018ae3c\n// > <???> @ 0x1801fe274\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall sub_1800C8B40(__int64 a1, int a2, __int64 a3, __int64 a4)\n{\n  __int64 result; // rax\n  __int64 v6; // rcx\n  __int64 v7; // rcx\n  unsigned int v8; // eax\n  __int64 v9; // r8\n  __int64 v10; // rdi\n  __int64 v11; // [rsp+30h] [rbp-18h] BYREF\n\n  result = sub_1800C7A90(a1, a2, a3, a4);\n  if ( !(_DWORD)result )\n  {\n    v6 = *(_QWORD *)(a1 + 8);\n    if ( (*(_DWORD *)(v6 + 120) & 0x300) == 0 || (result = sub_1800E2EA0(v6, 20, a1 + 752), !(_DWORD)result) )\n    {\n      v7 = *(_QWORD *)(a1 + 8);\n      if ( (*(_DWORD *)(v7 + 120) & 0x200) == 0 || (result = sub_1800E2EA0(v7, 26, a1 + 760), !(_DWORD)result) )\n      {\n        v11 = a1 + 112;\n        v8 = (unsigned int)sub_180091880();\n        result = sub_1800FC620(*(_QWORD *)(a1 + 8), v8, 0, (unsigned int)&v11, 0);\n        if ( !(_DWORD)result )\n        {\n          LOBYTE(v9) = 1;\n          v10 = v11;\n          result = (*(__int64 (__fastcall **)(__int64, __int64, __int64, _QWORD))(*(_QWORD *)v11 + 40LL))(v11, 1, v9, 0);\n          if ( !(_DWORD)result )\n          {\n            result = sub_18009C420(v10, a1);\n            if ( !(_DWORD)result )\n            {\n              *(float *)(v10 + 568) = (float)*(int *)(*(_QWORD *)(a1 + 8) + 1744LL);\n              _InterlockedOr((volatile signed __int32 *)(v10 + 100), 0x200u);\n              *(float *)(a1 + 104) = -*(float *)(a1 + 100);\n              return 0;\n            }\n          }\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800C8B40 from 0x1800c8b40 to 0x1800c8c38 (248 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18016c4e0\n; > <???> @ 0x18018ae2c\n; > <???> @ 0x18018ae3c\n; > <???> @ 0x1801fe274\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x1800c8b40\nsub     rsp, 40h                                                       ; +0x2, 0x1800c8b42\nmov     rbx, rcx                                                       ; +0x6, 0x1800c8b46\ncall    sub_1800C7A90                                                  ; +0x9, 0x1800c8b49\ntest    eax, eax                                                       ; +0xe, 0x1800c8b4e\njnz     loc_1800C8C32                                                  ; +0x10, 0x1800c8b50\nmov     rcx, [rbx+8]                                                   ; +0x16, 0x1800c8b56\ntest    dword ptr [rcx+78h], 300h                                      ; +0x1a, 0x1800c8b5a\njz      short loc_1800C8B7A                                            ; +0x21, 0x1800c8b61\nlea     r8, [rbx+2F0h]                                                 ; +0x23, 0x1800c8b63\nlea     edx, [rax+14h]                                                 ; +0x2a, 0x1800c8b6a\ncall    sub_1800E2EA0                                                  ; +0x2d, 0x1800c8b6d\ntest    eax, eax                                                       ; +0x32, 0x1800c8b72\njnz     loc_1800C8C32                                                  ; +0x34, 0x1800c8b74\nmov     rcx, [rbx+8]                                                   ; +0x3a, 0x1800c8b7a\ntest    dword ptr [rcx+78h], 200h                                      ; +0x3e, 0x1800c8b7e\njz      short loc_1800C8BA0                                            ; +0x45, 0x1800c8b85\nlea     r8, [rbx+2F8h]                                                 ; +0x47, 0x1800c8b87\nmov     edx, 1Ah                                                       ; +0x4e, 0x1800c8b8e\ncall    sub_1800E2EA0                                                  ; +0x53, 0x1800c8b93\ntest    eax, eax                                                       ; +0x58, 0x1800c8b98\njnz     loc_1800C8C32                                                  ; +0x5a, 0x1800c8b9a\nlea     rax, [rbx+70h]                                                 ; +0x60, 0x1800c8ba0\nmov     [rsp+48h+var_18], rax                                          ; +0x64, 0x1800c8ba4\ncall    sub_180091880                                                  ; +0x69, 0x1800c8ba9\nmov     rcx, [rbx+8]                                                   ; +0x6e, 0x1800c8bae\nlea     r9, [rsp+48h+var_18]                                           ; +0x72, 0x1800c8bb2\nmov     rdx, rax                                                       ; +0x77, 0x1800c8bb7\nmov     [rsp+48h+var_28], 0                                            ; +0x7a, 0x1800c8bba\nxor     r8d, r8d                                                       ; +0x7f, 0x1800c8bbf\ncall    sub_1800FC620                                                  ; +0x82, 0x1800c8bc2\ntest    eax, eax                                                       ; +0x87, 0x1800c8bc7\njnz     short loc_1800C8C32                                            ; +0x89, 0x1800c8bc9\nmov     r8b, 1                                                         ; +0x8b, 0x1800c8bcb\nmov     [rsp+48h+arg_0], rdi                                           ; +0x8e, 0x1800c8bce\nmov     rdi, [rsp+48h+var_18]                                          ; +0x93, 0x1800c8bd3\nxor     r9d, r9d                                                       ; +0x98, 0x1800c8bd8\nmovzx   edx, r8b                                                       ; +0x9b, 0x1800c8bdb\nmov     rcx, rdi                                                       ; +0x9f, 0x1800c8bdf\nmov     rax, [rdi]                                                     ; +0xa2, 0x1800c8be2\ncall    qword ptr [rax+28h]                                            ; +0xa5, 0x1800c8be5\ntest    eax, eax                                                       ; +0xa8, 0x1800c8be8\njnz     short loc_1800C8C2D                                            ; +0xaa, 0x1800c8bea\nmov     rdx, rbx                                                       ; +0xac, 0x1800c8bec\nmov     rcx, rdi                                                       ; +0xaf, 0x1800c8bef\ncall    sub_18009C420                                                  ; +0xb2, 0x1800c8bf2\ntest    eax, eax                                                       ; +0xb7, 0x1800c8bf7\njnz     short loc_1800C8C2D                                            ; +0xb9, 0x1800c8bf9\nmov     rax, [rbx+8]                                                   ; +0xbb, 0x1800c8bfb\nmovd    xmm0, dword ptr [rax+6D0h]                                     ; +0xbf, 0x1800c8bff\ncvtdq2ps xmm0, xmm0                                                    ; +0xc7, 0x1800c8c07\nmovss   dword ptr [rdi+238h], xmm0                                     ; +0xca, 0x1800c8c0a\nlock or dword ptr [rdi+64h], 200h                                      ; +0xd2, 0x1800c8c12\nmovss   xmm0, dword ptr [rbx+64h]                                      ; +0xda, 0x1800c8c1a\nxor     eax, eax                                                       ; +0xdf, 0x1800c8c1f\nxorps   xmm0, cs:xmmword_180144610                                     ; +0xe1, 0x1800c8c21\nmovss   dword ptr [rbx+68h], xmm0                                      ; +0xe8, 0x1800c8c28\nmov     rdi, [rsp+48h+arg_0]                                           ; +0xed, 0x1800c8c2d\nadd     rsp, 40h                                                       ; +0xf2, 0x1800c8c32\npop     rbx                                                            ; +0xf6, 0x1800c8c36\nretn                                                                   ; +0xf7, 0x1800c8c37", "xrefs": ["<???> @ 0x18016c4e0", "<???> @ 0x18018ae2c", "<???> @ 0x18018ae3c", "<???> @ 0x1801fe274"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}