{"type": "func", "start": 6442872704, "end": 6442873172, "name": "sub_180066F80", "pseudocode": "// \n// sub_180066F80 from 0x180066f80 to 0x180067154 (468 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180182f18\n// > <???> @ 0x180182f28\n// > <???> @ 0x1801ac8c8\n// > <???> @ 0x1801f9390\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:26 +0000\n// \n\n__int64 __fastcall sub_180066F80(__int64 *a1, __int64 a2, __int64 a3, int a4, int a5)\n{\n  __int64 v5; // rbx\n  int v7; // edx\n  int v8; // esi\n  __int64 v9; // rbp\n  int v10; // edi\n  __int64 result; // rax\n  __int64 v12; // [rsp+A0h] [rbp+8h] BYREF\n  __int64 v13; // [rsp+A8h] [rbp+10h] BYREF\n  int v14; // [rsp+B8h] [rbp+20h] BYREF\n\n  v5 = *a1;\n  v7 = a5;\n  v8 = a4;\n  v9 = a3;\n  a5 = a4;\n  v12 = a3;\n  v10 = *(_DWORD *)(v5 + 616);\n  v14 = v10;\n  v13 = a2;\n  if ( v7 == *(_DWORD *)(v5 + 628)\n    || ((*(_DWORD *)(v5 + 628) = v7, v7 <= *(_DWORD *)(v5 + 448))\n     || (result = sub_180068270(v5, *(unsigned int *)(v5 + 600)), !(_DWORD)result))\n    && (result = sub_1800683A0(v5), !(_DWORD)result) )\n  {\n    if ( v10 )\n    {\n      result = sub_180067CD0(\n                 v5,\n                 (unsigned int)&v12,\n                 (unsigned int)&v13,\n                 *(_QWORD *)(v5 + 576),\n                 v5 + 608,\n                 v5 + 604,\n                 *(_DWORD *)(v5 + 596),\n                 *(_DWORD *)(v5 + 568),\n                 *(_DWORD *)(v5 + 560),\n                 *(_DWORD *)(v5 + 552),\n                 (__int64)&a5,\n                 *(_DWORD *)(v5 + 628),\n                 (__int64)&v14,\n                 v5 + 612);\n      if ( (_DWORD)result )\n        return result;\n      v8 = a5;\n      v9 = v12;\n      a2 = v13;\n      v10 = v14;\n    }\n    if ( v8 )\n      (*(void (__fastcall **)(__int64, __int64, _QWORD, _QWORD, _DWORD, __int64, __int64, _DWORD, _DWORD, _DWORD, _DWORD, int, _DWORD))qword_1801D2E30)(\n        v9,\n        a2,\n        *(_QWORD *)(v5 + 576),\n        *(unsigned int *)(v5 + 608),\n        *(_DWORD *)(v5 + 604),\n        v5 + 608,\n        v5 + 604,\n        *(_DWORD *)(v5 + 596),\n        *(_DWORD *)(v5 + 568),\n        *(_DWORD *)(v5 + 560),\n        *(_DWORD *)(v5 + 552),\n        v8,\n        *(_DWORD *)(v5 + 628));\n    *(_DWORD *)(v5 + 616) = v10;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_180066F80 from 0x180066f80 to 0x180067154 (468 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180182f18\n; > <???> @ 0x180182f28\n; > <???> @ 0x1801ac8c8\n; > <???> @ 0x1801f9390\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:26 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x180066f80\npush    rbx                                                            ; +0x3, 0x180066f83\npush    rbp                                                            ; +0x4, 0x180066f84\npush    rsi                                                            ; +0x5, 0x180066f85\npush    rdi                                                            ; +0x6, 0x180066f86\npush    r15                                                            ; +0x7, 0x180066f87\nsub     rsp, 70h                                                       ; +0x9, 0x180066f89\nmov     rbx, [rcx]                                                     ; +0xd, 0x180066f8d\nmov     r15, rdx                                                       ; +0x10, 0x180066f90\nmov     edx, [rsp+98h+arg_20]                                          ; +0x13, 0x180066f93\nmov     esi, r9d                                                       ; +0x1a, 0x180066f9a\nmov     rbp, r8                                                        ; +0x1d, 0x180066f9d\nmov     [rax+28h], r9d                                                 ; +0x20, 0x180066fa0\nmov     [rax+8], r8                                                    ; +0x24, 0x180066fa4\nmov     edi, [rbx+268h]                                                ; +0x28, 0x180066fa8\nmov     [rax+20h], edi                                                 ; +0x2e, 0x180066fae\nmov     [rax+10h], r15                                                 ; +0x31, 0x180066fb1\ncmp     edx, [rbx+274h]                                                ; +0x35, 0x180066fb5\njz      short loc_180066FF1                                            ; +0x3b, 0x180066fbb\nmov     [rbx+274h], edx                                                ; +0x3d, 0x180066fbd\ncmp     edx, [rbx+1C0h]                                                ; +0x43, 0x180066fc3\njle     short loc_180066FE1                                            ; +0x49, 0x180066fc9\nmov     edx, [rbx+258h]                                                ; +0x4b, 0x180066fcb\nmov     rcx, rbx                                                       ; +0x51, 0x180066fd1\ncall    sub_180068270                                                  ; +0x54, 0x180066fd4\ntest    eax, eax                                                       ; +0x59, 0x180066fd9\njnz     loc_180067149                                                  ; +0x5b, 0x180066fdb\nmov     rcx, rbx                                                       ; +0x61, 0x180066fe1\ncall    sub_1800683A0                                                  ; +0x64, 0x180066fe4\ntest    eax, eax                                                       ; +0x69, 0x180066fe9\njnz     loc_180067149                                                  ; +0x6b, 0x180066feb\nmov     [rsp+98h+arg_10], r14                                          ; +0x71, 0x180066ff1\nlea     r14, [rbx+25Ch]                                                ; +0x79, 0x180066ff9\ntest    edi, edi                                                       ; +0x80, 0x180067000\njz      loc_1800670C2                                                  ; +0x82, 0x180067002\nmovss   xmm0, dword ptr [rbx+228h]                                     ; +0x88, 0x180067008\nlea     rax, [rbx+264h]                                                ; +0x90, 0x180067010\nmovss   xmm1, dword ptr [rbx+230h]                                     ; +0x97, 0x180067017\nlea     rcx, [rbx+260h]                                                ; +0x9f, 0x18006701f\nmov     r9, [rbx+240h]                                                 ; +0xa6, 0x180067026\nlea     r8, [rsp+98h+arg_8]                                            ; +0xad, 0x18006702d\nmov     [rsp+98h+var_30], rax                                          ; +0xb5, 0x180067035\nlea     rdx, [rsp+98h+arg_0]                                           ; +0xba, 0x18006703a\nlea     rax, [rsp+98h+arg_18]                                          ; +0xc2, 0x180067042\nmov     [rsp+98h+var_38], rax                                          ; +0xca, 0x18006704a\nmov     eax, [rbx+274h]                                                ; +0xcf, 0x18006704f\nmov     [rsp+98h+var_40], eax                                          ; +0xd5, 0x180067055\nlea     rax, [rsp+98h+arg_20]                                          ; +0xd9, 0x180067059\nmov     [rsp+98h+var_48], rax                                          ; +0xe1, 0x180067061\nmov     eax, [rbx+254h]                                                ; +0xe6, 0x180067066\nmovss   [rsp+98h+var_50], xmm0                                         ; +0xec, 0x18006706c\nmovss   xmm0, dword ptr [rbx+238h]                                     ; +0xf2, 0x180067072\nmovss   [rsp+98h+var_58], xmm1                                         ; +0xfa, 0x18006707a\nmovss   [rsp+98h+var_60], xmm0                                         ; +0x100, 0x180067080\nmov     dword ptr [rsp+98h+var_68], eax                                ; +0x106, 0x180067086\nmov     [rsp+98h+var_70], r14                                          ; +0x10a, 0x18006708a\nmov     [rsp+98h+var_78], rcx                                          ; +0x10f, 0x18006708f\nmov     rcx, rbx                                                       ; +0x114, 0x180067094\ncall    sub_180067CD0                                                  ; +0x117, 0x180067097\ntest    eax, eax                                                       ; +0x11c, 0x18006709c\njnz     loc_180067141                                                  ; +0x11e, 0x18006709e\nmov     esi, [rsp+98h+arg_20]                                          ; +0x124, 0x1800670a4\nmov     rbp, [rsp+98h+arg_0]                                           ; +0x12b, 0x1800670ab\nmov     r15, [rsp+98h+arg_8]                                           ; +0x133, 0x1800670b3\nmov     edi, [rsp+98h+arg_18]                                          ; +0x13b, 0x1800670bb\ntest    esi, esi                                                       ; +0x142, 0x1800670c2\njz      short loc_180067139                                            ; +0x144, 0x1800670c4\nmov     eax, [rbx+274h]                                                ; +0x146, 0x1800670c6\nlea     r8, [rbx+260h]                                                 ; +0x14c, 0x1800670cc\nmovss   xmm0, dword ptr [rbx+228h]                                     ; +0x153, 0x1800670d3\nmov     rdx, r15                                                       ; +0x15b, 0x1800670db\nmovss   xmm1, dword ptr [rbx+230h]                                     ; +0x15e, 0x1800670de\nmov     rcx, rbp                                                       ; +0x166, 0x1800670e6\nmov     r9d, [r8]                                                      ; +0x169, 0x1800670e9\nmov     dword ptr [rsp+98h+var_38], eax                                ; +0x16c, 0x1800670ec\nmov     eax, [rbx+254h]                                                ; +0x170, 0x1800670f0\nmov     [rsp+98h+var_40], esi                                          ; +0x176, 0x1800670f6\nmovss   dword ptr [rsp+98h+var_48], xmm0                               ; +0x17a, 0x1800670fa\nmovss   xmm0, dword ptr [rbx+238h]                                     ; +0x180, 0x180067100\nmovss   [rsp+98h+var_50], xmm1                                         ; +0x188, 0x180067108\nmovss   [rsp+98h+var_58], xmm0                                         ; +0x18e, 0x18006710e\nmov     [rsp+98h+var_60], eax                                          ; +0x194, 0x180067114\nmov     eax, [r14]                                                     ; +0x198, 0x180067118\nmov     [rsp+98h+var_68], r14                                          ; +0x19b, 0x18006711b\nmov     [rsp+98h+var_70], r8                                           ; +0x1a0, 0x180067120\nmov     r8, [rbx+240h]                                                 ; +0x1a5, 0x180067125\nmov     dword ptr [rsp+98h+var_78], eax                                ; +0x1ac, 0x18006712c\nmov     rax, cs:qword_1801D2E30                                        ; +0x1b0, 0x180067130\ncall    qword ptr [rax]                                                ; +0x1b7, 0x180067137\nmov     [rbx+268h], edi                                                ; +0x1b9, 0x180067139\nxor     eax, eax                                                       ; +0x1bf, 0x18006713f\nmov     r14, [rsp+98h+arg_10]                                          ; +0x1c1, 0x180067141\nadd     rsp, 70h                                                       ; +0x1c9, 0x180067149\npop     r15                                                            ; +0x1cd, 0x18006714d\npop     rdi                                                            ; +0x1cf, 0x18006714f\npop     rsi                                                            ; +0x1d0, 0x180067150\npop     rbp                                                            ; +0x1d1, 0x180067151\npop     rbx                                                            ; +0x1d2, 0x180067152\nretn                                                                   ; +0x1d3, 0x180067153", "xrefs": ["<???> @ 0x180182f18", "<???> @ 0x180182f28", "<???> @ 0x1801ac8c8", "<???> @ 0x1801f9390"], "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"}