{"type": "func", "start": 6443407584, "end": 6443408010, "name": "sub_1800E98E0", "pseudocode": "// \n// sub_1800E98E0 from 0x1800e98e0 to 0x1800e9a8a (426 bytes)\n// \n// 4 xrefs:\n// > sub_1800E8A40 @ 0x1800e8a43\n// > <???> @ 0x18018dc84\n// > <???> @ 0x18018dc94\n// > <???> @ 0x180200098\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:19 +0000\n// \n\n__int64 __fastcall sub_1800E98E0(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 result; // rax\n  unsigned int v5; // edi\n  __int64 v6; // rax\n  __int64 v7; // rsi\n  float *v8; // rdx\n  float v9[120]; // [rsp+20h] [rbp-1F8h] BYREF\n\n  LOBYTE(a3) = 1;\n  result = sub_1800F2990(*(_QWORD *)(a1 + 168) + 1824LL, a1 + 544, a3);\n  if ( !(_DWORD)result )\n  {\n    sub_18005A240(*(__int64 **)(a1 + 544), 1, 1);\n    result = sub_180100F40(*(_QWORD *)(a1 + 168), *(unsigned int *)(*(_QWORD *)(a1 + 168) + 70452LL), a1 + 608);\n    if ( !(_DWORD)result )\n    {\n      _InterlockedOr((volatile signed __int32 *)(a1 + 100), 0x10u);\n      v5 = 0;\n      *(_QWORD *)(a1 + 904) = 0;\n      *(_QWORD *)(a1 + 896) = a1 + 888;\n      *(_QWORD *)(a1 + 888) = a1 + 888;\n      v6 = *(_QWORD *)(a1 + 232);\n      *(_QWORD *)(a1 + 904) = a1;\n      if ( *(int *)(v6 + 96) > 0 )\n      {\n        v7 = 0;\n        while ( 1 )\n        {\n          v8 = *(float **)(v7 + *(_QWORD *)(v6 + 104));\n          if ( !*(_DWORD *)v8 )\n            break;\n          if ( *(_DWORD *)v8 == 1 )\n          {\n            result = sub_18009C140(a1, v5, *((_DWORD *)v8 + 14));\n            goto LABEL_11;\n          }\n          if ( *(_DWORD *)v8 == 2 )\n          {\n            result = sub_18009BC60(a1, v5, *((_DWORD *)v8 + 12) != 0);\n            goto LABEL_11;\n          }\nLABEL_12:\n          v6 = *(_QWORD *)(a1 + 232);\n          ++v5;\n          v7 += 8;\n          if ( (signed int)v5 >= *(_DWORD *)(v6 + 96) )\n            goto LABEL_13;\n        }\n        result = sub_18009C0C0(a1, v5, v8[14]);\nLABEL_11:\n        if ( (_DWORD)result )\n          return result;\n        goto LABEL_12;\n      }\nLABEL_13:\n      memset(&v9[1], 0, 0x1D0u);\n      LODWORD(v9[0]) = 1;\n      *(_DWORD *)(a1 + 992) = 1;\n      result = sub_1800E9310(a1, v9, (float *)(a1 + 996));\n      if ( !(_DWORD)result )\n      {\n        *(_DWORD *)(a1 + 600) = *(_DWORD *)(*(_QWORD *)(a1 + 168) + 70452LL);\n        *(_BYTE *)(a1 + 552) = 0;\n        return sub_1800EB320(a1, a1 + 912, 0);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800E98E0 from 0x1800e98e0 to 0x1800e9a8a (426 bytes)\n; \n; 4 xrefs:\n; > sub_1800E8A40 @ 0x1800e8a43\n; > <???> @ 0x18018dc84\n; > <???> @ 0x18018dc94\n; > <???> @ 0x180200098\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:19 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1800e98e0\npush    rdi                                                            ; +0x5, 0x1800e98e5\nsub     rsp, 210h                                                      ; +0x6, 0x1800e98e6\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1800e98ed\nxor     rax, rsp                                                       ; +0x14, 0x1800e98f4\nmov     [rsp+218h+var_18], rax                                         ; +0x17, 0x1800e98f7\nmov     rbx, rcx                                                       ; +0x1f, 0x1800e98ff\nmov     r8b, 1                                                         ; +0x22, 0x1800e9902\nmov     rcx, [rcx+0A8h]                                                ; +0x25, 0x1800e9905\nadd     rcx, 720h                                                      ; +0x2c, 0x1800e990c\nlea     rdx, [rbx+220h]                                                ; +0x33, 0x1800e9913\ncall    sub_1800F2990                                                  ; +0x3a, 0x1800e991a\ntest    eax, eax                                                       ; +0x3f, 0x1800e991f\njnz     loc_1800E9A69                                                  ; +0x41, 0x1800e9921\nmov     rcx, [rbx+220h]                                                ; +0x47, 0x1800e9927\nmov     r8b, 1                                                         ; +0x4e, 0x1800e992e\nmovzx   edx, r8b                                                       ; +0x51, 0x1800e9931\ncall    sub_18005A240                                                  ; +0x55, 0x1800e9935\nmov     rcx, [rbx+0A8h]                                                ; +0x5a, 0x1800e993a\nlea     r8, [rbx+260h]                                                 ; +0x61, 0x1800e9941\nmov     edx, [rcx+11334h]                                              ; +0x68, 0x1800e9948\ncall    sub_180100F40                                                  ; +0x6e, 0x1800e994e\ntest    eax, eax                                                       ; +0x73, 0x1800e9953\njnz     loc_1800E9A69                                                  ; +0x75, 0x1800e9955\nmov     [rsp+218h+arg_8], rsi                                          ; +0x7b, 0x1800e995b\nlock or dword ptr [rbx+64h], 10h                                       ; +0x83, 0x1800e9963\nlea     rax, [rbx+378h]                                                ; +0x88, 0x1800e9968\nxor     edi, edi                                                       ; +0x8f, 0x1800e996f\nmov     [rax+10h], rdi                                                 ; +0x91, 0x1800e9971\nmov     [rax+8], rax                                                   ; +0x95, 0x1800e9975\nmov     [rax], rax                                                     ; +0x99, 0x1800e9979\nmov     rax, [rbx+0E8h]                                                ; +0x9c, 0x1800e997c\nmov     [rbx+388h], rbx                                                ; +0xa3, 0x1800e9983\ncmp     [rax+60h], edi                                                 ; +0xaa, 0x1800e998a\njle     short loc_1800E99F6                                            ; +0xad, 0x1800e998d\nmov     esi, edi                                                       ; +0xaf, 0x1800e998f\nmov     rax, [rax+68h]                                                 ; +0xb1, 0x1800e9991\nmov     rdx, [rsi+rax]                                                 ; +0xb5, 0x1800e9995\nmov     ecx, [rdx]                                                     ; +0xb9, 0x1800e9999\ntest    ecx, ecx                                                       ; +0xbb, 0x1800e999b\njz      short loc_1800E99CD                                            ; +0xbd, 0x1800e999d\nsub     ecx, 1                                                         ; +0xbf, 0x1800e999f\njz      short loc_1800E99BD                                            ; +0xc2, 0x1800e99a2\ncmp     ecx, 1                                                         ; +0xc4, 0x1800e99a4\njnz     short loc_1800E99E4                                            ; +0xc7, 0x1800e99a7\ncmp     dword ptr [rdx+30h], 0                                         ; +0xc9, 0x1800e99a9\nmov     rcx, rbx                                                       ; +0xcd, 0x1800e99ad\nmov     edx, edi                                                       ; +0xd0, 0x1800e99b0\nsetnz   r8b                                                            ; +0xd2, 0x1800e99b2\ncall    sub_18009BC60                                                  ; +0xd6, 0x1800e99b6\njmp     short loc_1800E99DC                                            ; +0xdb, 0x1800e99bb\nmov     r8d, [rdx+38h]                                                 ; +0xdd, 0x1800e99bd\nmov     rcx, rbx                                                       ; +0xe1, 0x1800e99c1\nmov     edx, edi                                                       ; +0xe4, 0x1800e99c4\ncall    sub_18009C140                                                  ; +0xe6, 0x1800e99c6\njmp     short loc_1800E99DC                                            ; +0xeb, 0x1800e99cb\nmovss   xmm2, dword ptr [rdx+38h]                                      ; +0xed, 0x1800e99cd\nmov     rcx, rbx                                                       ; +0xf2, 0x1800e99d2\nmov     edx, edi                                                       ; +0xf5, 0x1800e99d5\ncall    sub_18009C0C0                                                  ; +0xf7, 0x1800e99d7\ntest    eax, eax                                                       ; +0xfc, 0x1800e99dc\njnz     loc_1800E9A61                                                  ; +0xfe, 0x1800e99de\nmov     rax, [rbx+0E8h]                                                ; +0x104, 0x1800e99e4\ninc     edi                                                            ; +0x10b, 0x1800e99eb\nadd     rsi, 8                                                         ; +0x10d, 0x1800e99ed\ncmp     edi, [rax+60h]                                                 ; +0x111, 0x1800e99f1\njl      short loc_1800E9991                                            ; +0x114, 0x1800e99f4\nxor     edx, edx; Val                                                  ; +0x116, 0x1800e99f6\nlea     rcx, [rsp+218h+var_1F4]; void *                                ; +0x118, 0x1800e99f8\nmov     r8d, 1D0h; Size                                                ; +0x11d, 0x1800e99fd\ncall    memset                                                         ; +0x123, 0x1800e9a03\nlea     r8, [rbx+3E4h]                                                 ; +0x128, 0x1800e9a08\nmov     [rsp+218h+var_1F8], 1                                          ; +0x12f, 0x1800e9a0f\nlea     rdx, [rsp+218h+var_1F8]                                        ; +0x137, 0x1800e9a17\nmov     dword ptr [rbx+3E0h], 1                                        ; +0x13c, 0x1800e9a1c\nmov     rcx, rbx                                                       ; +0x146, 0x1800e9a26\ncall    sub_1800E9310                                                  ; +0x149, 0x1800e9a29\ntest    eax, eax                                                       ; +0x14e, 0x1800e9a2e\njnz     short loc_1800E9A61                                            ; +0x150, 0x1800e9a30\nmov     rax, [rbx+0A8h]                                                ; +0x152, 0x1800e9a32\nxor     r9d, r9d                                                       ; +0x159, 0x1800e9a39\nxor     r8d, r8d                                                       ; +0x15c, 0x1800e9a3c\nmov     rcx, rbx                                                       ; +0x15f, 0x1800e9a3f\nmov     edx, [rax+11334h]                                              ; +0x162, 0x1800e9a42\nmov     [rbx+258h], edx                                                ; +0x168, 0x1800e9a48\nlea     rdx, [rbx+390h]                                                ; +0x16e, 0x1800e9a4e\nmov     byte ptr [rbx+228h], 0                                         ; +0x175, 0x1800e9a55\ncall    sub_1800EB320                                                  ; +0x17c, 0x1800e9a5c\nmov     rsi, [rsp+218h+arg_8]                                          ; +0x181, 0x1800e9a61\nmov     rcx, [rsp+218h+var_18]                                         ; +0x189, 0x1800e9a69\nxor     rcx, rsp; StackCookie                                          ; +0x191, 0x1800e9a71\ncall    __security_check_cookie                                        ; +0x194, 0x1800e9a74\nmov     rbx, [rsp+218h+arg_10]                                         ; +0x199, 0x1800e9a79\nadd     rsp, 210h                                                      ; +0x1a1, 0x1800e9a81\npop     rdi                                                            ; +0x1a8, 0x1800e9a88\nretn                                                                   ; +0x1a9, 0x1800e9a89", "xrefs": ["sub_1800E8A40 @ 0x1800e8a43", "<???> @ 0x18018dc84", "<???> @ 0x18018dc94", "<???> @ 0x180200098"], "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"}