{"type": "func", "start": 6443016336, "end": 6443016929, "name": "sub_18008A090", "pseudocode": "// \n// sub_18008A090 from 0x18008a090 to 0x18008a2e1 (593 bytes)\n// \n// 2 xrefs:\n// > sub_180089080 @ 0x180089083\n// > <???> @ 0x1801fa500\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:53:41 +0000\n// \n\n__int64 __fastcall sub_18008A090(__int64 a1)\n{\n  _DWORD *v2; // rcx\n  unsigned int v3; // edi\n  __int64 v4; // rax\n  __int64 v5; // r8\n  __int64 v6; // rsi\n  __int64 result; // rax\n  __int128 v8; // xmm1\n  __int128 v9; // xmm0\n  int v10; // r8d\n  int v11; // r9d\n  float v12; // xmm1_4\n  int v13; // xmm0_4\n  float v14; // xmm1_4\n  int v15; // xmm0_4\n  int v16; // r8d\n  int v17; // r9d\n  float v18; // xmm1_4\n  int v19; // xmm0_4\n  float v20; // xmm1_4\n  int v21; // xmm0_4\n\n  v2 = (_DWORD *)(a1 + 2080);\n  if ( v2 )\n    *v2 = *(_DWORD *)(*(_QWORD *)(a1 + 168) + 1744LL);\n  v3 = 0;\n  *(_DWORD *)(a1 + 2084) = 0;\n  if ( (unsigned int)sub_18009F300(a1 + 544) )\n    return 38;\n  v4 = *(_QWORD *)(a1 + 168);\n  *(_QWORD *)(a1 + 568) = v4;\n  if ( (unsigned int)sub_18009F160(a1 + 544, *(unsigned int *)(v4 + 1752)) )\n    return 38;\n  *(_DWORD *)(a1 + 1292) = 8;\n  *(_DWORD *)(a1 + 2028) = 3;\n  sub_18009D9B0(a1 + 544);\n  if ( *(int *)(*(_QWORD *)(a1 + 232) + 96LL) <= 0 )\n  {\nLABEL_9:\n    v8 = *(_OWORD *)(a1 + 2104);\n    *(_OWORD *)(a1 + 2032) = *(_OWORD *)(a1 + 2088);\n    v9 = *(_OWORD *)(a1 + 2120);\n    *(_OWORD *)(a1 + 2048) = v8;\n    *(_OWORD *)(a1 + 2064) = v9;\n    sub_1800896E0((_DWORD *)a1, a1 + 2032);\n    sub_180089A50(a1, a1 + 2032);\n    sub_180089CD0(a1, a1 + 2032, v10, v11);\n    v12 = *(float *)(a1 + 2044);\n    v13 = dword_1801EE450;\n    if ( v12 < *(float *)&dword_1801EE450 || (v13 = xmmword_1801EE454, v12 > *(float *)&xmmword_1801EE454) )\n      *(_DWORD *)(a1 + 2044) = v13;\n    sub_1800896E0((_DWORD *)a1, a1 + 2032);\n    v14 = *(float *)(a1 + 2048);\n    v15 = dword_1801EE4B0;\n    if ( v14 < *(float *)&dword_1801EE4B0 || (v15 = xmmword_1801EE4B4, v14 > *(float *)&xmmword_1801EE4B4) )\n      *(_DWORD *)(a1 + 2048) = v15;\n    *(_DWORD *)(a1 + 2048) = *(_DWORD *)(a1 + 2048);\n    sub_1800896E0((_DWORD *)a1, a1 + 2032);\n    sub_1800899C0(a1, a1 + 2032);\n    sub_1800898F0((_DWORD *)a1, a1 + 2032, v16, v17);\n    v18 = *(float *)(a1 + 2060);\n    v19 = dword_1801EE5D0;\n    if ( v18 < *(float *)&dword_1801EE5D0 || (v19 = xmmword_1801EE5D4, v18 > *(float *)&xmmword_1801EE5D4) )\n      *(_DWORD *)(a1 + 2060) = v19;\n    *(_DWORD *)(a1 + 2060) = *(_DWORD *)(a1 + 2060);\n    sub_180089D50(a1, a1 + 2032);\n    sub_180089C50(a1, a1 + 2032);\n    v20 = *(float *)(a1 + 2076);\n    v21 = dword_1801EE750;\n    if ( v20 < *(float *)&dword_1801EE750 || (v21 = xmmword_1801EE754, v20 > *(float *)&xmmword_1801EE754) )\n      *(_DWORD *)(a1 + 2076) = v21;\n    *(_DWORD *)(a1 + 2076) = *(_DWORD *)(a1 + 2076);\n    sub_180089AE0(a1, a1 + 2032);\n    return 0;\n  }\n  else\n  {\n    v6 = 0;\n    while ( 1 )\n    {\n      result = sub_18008AB50(a1, v3, v5, 0);\n      if ( (_DWORD)result )\n        break;\n      ++v3;\n      v6 += 8;\n      if ( (signed int)v3 >= *(_DWORD *)(*(_QWORD *)(a1 + 232) + 96LL) )\n        goto LABEL_9;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_18008A090 from 0x18008a090 to 0x18008a2e1 (593 bytes)\n; \n; 2 xrefs:\n; > sub_180089080 @ 0x180089083\n; > <???> @ 0x1801fa500\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:53:41 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18008a090\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18008a095\npush    rdi                                                            ; +0xa, 0x18008a09a\nsub     rsp, 20h                                                       ; +0xb, 0x18008a09b\nmov     rbx, rcx                                                       ; +0xf, 0x18008a09f\nadd     rcx, 820h                                                      ; +0x12, 0x18008a0a2\njz      short loc_18008A0BC                                            ; +0x19, 0x18008a0a9\nmov     rax, [rbx+0A8h]                                                ; +0x1b, 0x18008a0ab\nmov     edx, [rax+6D0h]                                                ; +0x22, 0x18008a0b2\nmov     [rcx], edx                                                     ; +0x28, 0x18008a0b8\njmp     short loc_18008A0BE                                            ; +0x2a, 0x18008a0ba\nmov     edx, [rcx]                                                     ; +0x2c, 0x18008a0bc\nmovd    xmm1, edx                                                      ; +0x2e, 0x18008a0be\nlea     rcx, [rbx+220h]                                                ; +0x32, 0x18008a0c2\ncvtdq2ps xmm1, xmm1                                                    ; +0x39, 0x18008a0c9\nxor     edi, edi                                                       ; +0x3c, 0x18008a0cc\nmov     [rbx+824h], edi                                                ; +0x3e, 0x18008a0ce\ncall    sub_18009F300                                                  ; +0x44, 0x18008a0d4\ntest    eax, eax                                                       ; +0x49, 0x18008a0d9\njnz     loc_18008A2CC                                                  ; +0x4b, 0x18008a0db\nmov     rax, [rbx+0A8h]                                                ; +0x51, 0x18008a0e1\nlea     rcx, [rbx+220h]                                                ; +0x58, 0x18008a0e8\nmov     [rbx+238h], rax                                                ; +0x5f, 0x18008a0ef\nmov     edx, [rax+6D8h]                                                ; +0x66, 0x18008a0f6\ncall    sub_18009F160                                                  ; +0x6c, 0x18008a0fc\ntest    eax, eax                                                       ; +0x71, 0x18008a101\njnz     loc_18008A2CC                                                  ; +0x73, 0x18008a103\nlea     rcx, [rbx+220h]                                                ; +0x79, 0x18008a109\nmov     dword ptr [rbx+50Ch], 8                                        ; +0x80, 0x18008a110\nmov     dword ptr [rbx+7ECh], 3                                        ; +0x8a, 0x18008a11a\ncall    sub_18009D9B0                                                  ; +0x94, 0x18008a124\nmov     rax, [rbx+0E8h]                                                ; +0x99, 0x18008a129\ncmp     [rax+60h], edi                                                 ; +0xa0, 0x18008a130\njle     short loc_18008A174                                            ; +0xa3, 0x18008a133\nmov     esi, edi                                                       ; +0xa5, 0x18008a135\nnop     word ptr [rax+rax+00000000h]                                   ; +0xa7, 0x18008a137\nmov     rax, [rax+68h]                                                 ; +0xb0, 0x18008a140\nxor     r9d, r9d                                                       ; +0xb4, 0x18008a144\nmov     edx, edi                                                       ; +0xb7, 0x18008a147\nmov     rcx, [rax+rsi]                                                 ; +0xb9, 0x18008a149\nmovss   xmm2, dword ptr [rcx+38h]                                      ; +0xbd, 0x18008a14d\nmov     rcx, rbx                                                       ; +0xc2, 0x18008a152\ncall    sub_18008AB50                                                  ; +0xc5, 0x18008a155\ntest    eax, eax                                                       ; +0xca, 0x18008a15a\njnz     loc_18008A2D1                                                  ; +0xcc, 0x18008a15c\nmov     rax, [rbx+0E8h]                                                ; +0xd2, 0x18008a162\ninc     edi                                                            ; +0xd9, 0x18008a169\nadd     rsi, 8                                                         ; +0xdb, 0x18008a16b\ncmp     edi, [rax+60h]                                                 ; +0xdf, 0x18008a16f\njl      short loc_18008A140                                            ; +0xe2, 0x18008a172\nmovups  xmm0, xmmword ptr [rbx+828h]                                   ; +0xe4, 0x18008a174\nlea     rdi, [rbx+7F0h]                                                ; +0xeb, 0x18008a17b\nmov     rcx, rbx                                                       ; +0xf2, 0x18008a182\nmovups  xmm1, xmmword ptr [rbx+838h]                                   ; +0xf5, 0x18008a185\nmov     rdx, rdi                                                       ; +0xfc, 0x18008a18c\nmovups  xmmword ptr [rdi], xmm0                                        ; +0xff, 0x18008a18f\nmovups  xmm0, xmmword ptr [rbx+848h]                                   ; +0x102, 0x18008a192\nmovups  xmmword ptr [rdi+10h], xmm1                                    ; +0x109, 0x18008a199\nmovups  xmmword ptr [rdi+20h], xmm0                                    ; +0x10d, 0x18008a19d\ncall    sub_1800896E0                                                  ; +0x111, 0x18008a1a1\nmov     rdx, rdi                                                       ; +0x116, 0x18008a1a6\nmov     rcx, rbx                                                       ; +0x119, 0x18008a1a9\ncall    sub_180089A50                                                  ; +0x11c, 0x18008a1ac\nmov     rdx, rdi                                                       ; +0x121, 0x18008a1b1\nmov     rcx, rbx                                                       ; +0x124, 0x18008a1b4\ncall    sub_180089CD0                                                  ; +0x127, 0x18008a1b7\nmovss   xmm1, dword ptr [rbx+7FCh]                                     ; +0x12c, 0x18008a1bc\nmovss   xmm0, cs:dword_1801EE450                                       ; +0x134, 0x18008a1c4\ncomiss  xmm1, xmm0                                                     ; +0x13c, 0x18008a1cc\njb      short loc_18008A1DE                                            ; +0x13f, 0x18008a1cf\nmovss   xmm0, dword ptr cs:xmmword_1801EE454                           ; +0x141, 0x18008a1d1\ncomiss  xmm1, xmm0                                                     ; +0x149, 0x18008a1d9\njbe     short loc_18008A1E6                                            ; +0x14c, 0x18008a1dc\nmovss   dword ptr [rbx+7FCh], xmm0                                     ; +0x14e, 0x18008a1de\nmov     rdx, rdi                                                       ; +0x156, 0x18008a1e6\nmov     rcx, rbx                                                       ; +0x159, 0x18008a1e9\ncall    sub_1800896E0                                                  ; +0x15c, 0x18008a1ec\nmovss   xmm1, dword ptr [rdi+10h]                                      ; +0x161, 0x18008a1f1\nmovss   xmm0, cs:dword_1801EE4B0                                       ; +0x166, 0x18008a1f6\ncomiss  xmm1, xmm0                                                     ; +0x16e, 0x18008a1fe\njb      short loc_18008A210                                            ; +0x171, 0x18008a201\nmovss   xmm0, dword ptr cs:xmmword_1801EE4B4                           ; +0x173, 0x18008a203\ncomiss  xmm1, xmm0                                                     ; +0x17b, 0x18008a20b\njbe     short loc_18008A215                                            ; +0x17e, 0x18008a20e\nmovss   dword ptr [rdi+10h], xmm0                                      ; +0x180, 0x18008a210\nmov     eax, [rdi+10h]                                                 ; +0x185, 0x18008a215\nmov     rdx, rdi                                                       ; +0x188, 0x18008a218\nmov     rcx, rbx                                                       ; +0x18b, 0x18008a21b\nmov     [rbx+800h], eax                                                ; +0x18e, 0x18008a21e\ncall    sub_1800896E0                                                  ; +0x194, 0x18008a224\nmov     rdx, rdi                                                       ; +0x199, 0x18008a229\nmov     rcx, rbx                                                       ; +0x19c, 0x18008a22c\ncall    sub_1800899C0                                                  ; +0x19f, 0x18008a22f\nmov     rdx, rdi                                                       ; +0x1a4, 0x18008a234\nmov     rcx, rbx                                                       ; +0x1a7, 0x18008a237\ncall    sub_1800898F0                                                  ; +0x1aa, 0x18008a23a\nmovss   xmm1, dword ptr [rdi+1Ch]                                      ; +0x1af, 0x18008a23f\nmovss   xmm0, cs:dword_1801EE5D0                                       ; +0x1b4, 0x18008a244\ncomiss  xmm1, xmm0                                                     ; +0x1bc, 0x18008a24c\njb      short loc_18008A25E                                            ; +0x1bf, 0x18008a24f\nmovss   xmm0, dword ptr cs:xmmword_1801EE5D4                           ; +0x1c1, 0x18008a251\ncomiss  xmm1, xmm0                                                     ; +0x1c9, 0x18008a259\njbe     short loc_18008A263                                            ; +0x1cc, 0x18008a25c\nmovss   dword ptr [rdi+1Ch], xmm0                                      ; +0x1ce, 0x18008a25e\nmov     eax, [rdi+1Ch]                                                 ; +0x1d3, 0x18008a263\nmov     rdx, rdi                                                       ; +0x1d6, 0x18008a266\nmov     rcx, rbx                                                       ; +0x1d9, 0x18008a269\nmov     [rbx+80Ch], eax                                                ; +0x1dc, 0x18008a26c\ncall    sub_180089D50                                                  ; +0x1e2, 0x18008a272\nmov     rdx, rdi                                                       ; +0x1e7, 0x18008a277\nmov     rcx, rbx                                                       ; +0x1ea, 0x18008a27a\ncall    sub_180089C50                                                  ; +0x1ed, 0x18008a27d\nmovss   xmm1, dword ptr [rdi+2Ch]                                      ; +0x1f2, 0x18008a282\nmovss   xmm0, cs:dword_1801EE750                                       ; +0x1f7, 0x18008a287\ncomiss  xmm1, xmm0                                                     ; +0x1ff, 0x18008a28f\njb      short loc_18008A2A1                                            ; +0x202, 0x18008a292\nmovss   xmm0, dword ptr cs:xmmword_1801EE754                           ; +0x204, 0x18008a294\ncomiss  xmm1, xmm0                                                     ; +0x20c, 0x18008a29c\njbe     short loc_18008A2A6                                            ; +0x20f, 0x18008a29f\nmovss   dword ptr [rdi+2Ch], xmm0                                      ; +0x211, 0x18008a2a1\nmov     eax, [rdi+2Ch]                                                 ; +0x216, 0x18008a2a6\nmov     rdx, rdi                                                       ; +0x219, 0x18008a2a9\nmov     rcx, rbx                                                       ; +0x21c, 0x18008a2ac\nmov     [rbx+81Ch], eax                                                ; +0x21f, 0x18008a2af\ncall    sub_180089AE0                                                  ; +0x225, 0x18008a2b5\nxor     eax, eax                                                       ; +0x22a, 0x18008a2ba\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x22c, 0x18008a2bc\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x231, 0x18008a2c1\nadd     rsp, 20h                                                       ; +0x236, 0x18008a2c6\npop     rdi                                                            ; +0x23a, 0x18008a2ca\nretn                                                                   ; +0x23b, 0x18008a2cb\nmov     eax, 26h ; '&'                                                 ; +0x23c, 0x18008a2cc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x241, 0x18008a2d1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x246, 0x18008a2d6\nadd     rsp, 20h                                                       ; +0x24b, 0x18008a2db\npop     rdi                                                            ; +0x24f, 0x18008a2df\nretn                                                                   ; +0x250, 0x18008a2e0", "xrefs": ["sub_180089080 @ 0x180089083", "<???> @ 0x1801fa500"], "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"}