{"type": "func", "start": 6443274528, "end": 6443274830, "name": "sub_1800C9120", "pseudocode": "// \n// sub_1800C9120 from 0x1800c9120 to 0x1800c924e (302 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016c578\n// > <???> @ 0x1801fe304\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:06 +0000\n// \n\n__int64 __fastcall sub_1800C9120(_QWORD *a1, int a2, float a3)\n{\n  __int64 v3; // rbp\n  __int64 v5; // rcx\n  __int64 v6; // r9\n  __int64 v7; // r14\n  __int64 v8; // rsi\n  __int64 result; // rax\n  __int64 v10; // r8\n  __int64 v11; // [rsp+40h] [rbp+8h] BYREF\n\n  v3 = a2;\n  v5 = a1[1];\n  v6 = a1[3];\n  v7 = 3LL * a2;\n  if ( !*(_QWORD *)(v5 + 24LL * a2 + 73784) )\n  {\n    *(_QWORD *)(v6 + 8LL * a2 + 336) = 0;\n    return 0;\n  }\n  v8 = *(_QWORD *)(v6 + 8LL * a2 + 336);\n  if ( a3 == 0.0 )\n  {\n    if ( v8 )\n    {\n      LOBYTE(v6) = 1;\n      result = sub_1800FCF40(v5, &v11, 16, v6);\n      if ( (_DWORD)result )\n        return result;\n      LOBYTE(v10) = 1;\n      *(_BYTE *)v11 = 3;\n      *(_QWORD *)(v11 + 8) = v8;\n      result = sub_1800FD370(a1[1], v11, v10);\n      if ( (_DWORD)result )\n        return result;\n      *(_QWORD *)(a1[3] + 8 * v3 + 336) = 0;\n      a1[96] = 0;\n    }\n    return 0;\n  }\n  if ( v8\n    || (a1[96]\n     || (result = (*(__int64 (__fastcall **)(_QWORD, __int64, _QWORD *))(*(_QWORD *)v6 + 288LL))(\n                    a1[3],\n                    4294967293LL,\n                    a1 + 96),\n         !(_DWORD)result))\n    && (result = sub_1800C7E70((__int64)a1, a1[96], v3), !(_DWORD)result) )\n  {\n    result = sub_1800C9830(a1, a1[1] + 73776LL + 8 * v7);\n    if ( !(_DWORD)result )\n      return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800C9120 from 0x1800c9120 to 0x1800c924e (302 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016c578\n; > <???> @ 0x1801fe304\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:06 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800c9120\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800c9125\npush    rsi                                                            ; +0xa, 0x1800c912a\npush    rdi                                                            ; +0xb, 0x1800c912b\npush    r14                                                            ; +0xc, 0x1800c912c\nsub     rsp, 20h                                                       ; +0xe, 0x1800c912e\nmovsxd  rbp, edx                                                       ; +0x12, 0x1800c9132\nmov     rbx, rcx                                                       ; +0x15, 0x1800c9135\nmov     rcx, [rcx+8]                                                   ; +0x18, 0x1800c9138\nmov     r9, [rbx+18h]                                                  ; +0x1c, 0x1800c913c\nlea     r14, ds:0[rbp*2]                                               ; +0x20, 0x1800c9140\nadd     r14, rbp                                                       ; +0x28, 0x1800c9148\ncmp     qword ptr [rcx+r14*8+12038h], 0                                ; +0x2b, 0x1800c914b\njz      loc_1800C922F                                                  ; +0x34, 0x1800c9154\nmov     rsi, [r9+rbp*8+150h]                                           ; +0x3a, 0x1800c915a\nxorps   xmm0, xmm0                                                     ; +0x42, 0x1800c9162\nucomiss xmm2, xmm0                                                     ; +0x45, 0x1800c9165\njz      short loc_1800C91D6                                            ; +0x48, 0x1800c9168\ntest    rsi, rsi                                                       ; +0x4a, 0x1800c916a\njnz     short loc_1800C91B0                                            ; +0x4d, 0x1800c916d\ncmp     [rbx+300h], rsi                                                ; +0x4f, 0x1800c916f\njnz     short loc_1800C9196                                            ; +0x56, 0x1800c9176\nmov     rax, [r9]                                                      ; +0x58, 0x1800c9178\nlea     r8, [rbx+300h]                                                 ; +0x5b, 0x1800c917b\nlea     edx, [rsi-3]                                                   ; +0x62, 0x1800c9182\nmov     rcx, r9                                                        ; +0x65, 0x1800c9185\ncall    qword ptr [rax+120h]                                           ; +0x68, 0x1800c9188\ntest    eax, eax                                                       ; +0x6e, 0x1800c918e\njnz     loc_1800C923B                                                  ; +0x70, 0x1800c9190\nmov     rdx, [rbx+300h]                                                ; +0x76, 0x1800c9196\nmov     r8d, ebp                                                       ; +0x7d, 0x1800c919d\nmov     rcx, rbx                                                       ; +0x80, 0x1800c91a0\ncall    sub_1800C7E70                                                  ; +0x83, 0x1800c91a3\ntest    eax, eax                                                       ; +0x88, 0x1800c91a8\njnz     loc_1800C923B                                                  ; +0x8a, 0x1800c91aa\nmov     rcx, [rbx+18h]                                                 ; +0x90, 0x1800c91b0\nmov     rdx, [rbx+8]                                                   ; +0x94, 0x1800c91b4\nadd     rdx, 12030h                                                    ; +0x98, 0x1800c91b8\nmovss   xmm2, dword ptr [rcx+30h]                                      ; +0x9f, 0x1800c91bf\nmov     rcx, rbx                                                       ; +0xa4, 0x1800c91c4\nlea     rdx, [rdx+r14*8]                                               ; +0xa7, 0x1800c91c7\ncall    sub_1800C9830                                                  ; +0xab, 0x1800c91cb\ntest    eax, eax                                                       ; +0xb0, 0x1800c91d0\njz      short loc_1800C9239                                            ; +0xb2, 0x1800c91d2\njmp     short loc_1800C923B                                            ; +0xb4, 0x1800c91d4\ntest    rsi, rsi                                                       ; +0xb6, 0x1800c91d6\njz      short loc_1800C9239                                            ; +0xb9, 0x1800c91d9\nmov     r9b, 1                                                         ; +0xbb, 0x1800c91db\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xbe, 0x1800c91de\nmov     r8d, 10h                                                       ; +0xc3, 0x1800c91e3\ncall    sub_1800FCF40                                                  ; +0xc9, 0x1800c91e9\ntest    eax, eax                                                       ; +0xce, 0x1800c91ee\njnz     short loc_1800C923B                                            ; +0xd0, 0x1800c91f0\nmov     rax, [rsp+38h+arg_0]                                           ; +0xd2, 0x1800c91f2\nmov     r8b, 1                                                         ; +0xd7, 0x1800c91f7\nmov     byte ptr [rax], 3                                              ; +0xda, 0x1800c91fa\nmov     rax, [rsp+38h+arg_0]                                           ; +0xdd, 0x1800c91fd\nmov     [rax+8], rsi                                                   ; +0xe2, 0x1800c9202\nmov     rdx, [rsp+38h+arg_0]                                           ; +0xe6, 0x1800c9206\nmov     rcx, [rbx+8]                                                   ; +0xeb, 0x1800c920b\ncall    sub_1800FD370                                                  ; +0xef, 0x1800c920f\ntest    eax, eax                                                       ; +0xf4, 0x1800c9214\njnz     short loc_1800C923B                                            ; +0xf6, 0x1800c9216\nmov     rax, [rbx+18h]                                                 ; +0xf8, 0x1800c9218\nxor     ecx, ecx                                                       ; +0xfc, 0x1800c921c\nmov     [rax+rbp*8+150h], rcx                                          ; +0xfe, 0x1800c921e\nmov     [rbx+300h], rcx                                                ; +0x106, 0x1800c9226\njmp     short loc_1800C9239                                            ; +0x10d, 0x1800c922d\nxor     ecx, ecx                                                       ; +0x10f, 0x1800c922f\nmov     [r9+rbp*8+150h], rcx                                           ; +0x111, 0x1800c9231\nxor     eax, eax                                                       ; +0x119, 0x1800c9239\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x11b, 0x1800c923b\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x120, 0x1800c9240\nadd     rsp, 20h                                                       ; +0x125, 0x1800c9245\npop     r14                                                            ; +0x129, 0x1800c9249\npop     rdi                                                            ; +0x12b, 0x1800c924b\npop     rsi                                                            ; +0x12c, 0x1800c924c\nretn                                                                   ; +0x12d, 0x1800c924d", "xrefs": ["<???> @ 0x18016c578", "<???> @ 0x1801fe304"], "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"}