{"type": "func", "start": 6442729392, "end": 6442730266, "name": "sub_180043FB0", "pseudocode": "// \n// sub_180043FB0 from 0x180043fb0 to 0x18004431a (874 bytes)\n// \n// 2 xrefs:\n// > sub_180015B40 @ 0x180015cbb\n// > <???> @ 0x1801f8148\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:12 +0000\n// \n\n__int64 __fastcall sub_180043FB0(\n        __int64 a1,\n        _QWORD *a2,\n        __int64 a3,\n        __int64 a4,\n        __int64 a5,\n        __int64 a6,\n        __int64 a7,\n        __int64 a8,\n        __int64 a9,\n        __int64 a10,\n        __int64 a11)\n{\n  __int64 v15; // rdx\n  __int128 v16; // xmm1\n  __int128 v17; // xmm0\n  __int64 v18; // rdx\n  int v19; // eax\n  _DWORD *v20; // rcx\n  __int64 v21; // rax\n  __int64 v22; // rdi\n  unsigned int (__fastcall *v23)(_QWORD *, _QWORD, _QWORD); // rax\n  __int64 v24; // rdx\n  void *v25; // rcx\n  __int128 v26[3]; // [rsp+30h] [rbp-68h] BYREF\n  __int64 v27; // [rsp+60h] [rbp-38h]\n\n  if ( *(_DWORD *)*a2 != 9 )\n    return 5;\n  if ( !a3 || !a8 || !a10 || a4 && (!a5 || !a6 || !a7) )\n    return 2;\n  sub_180042C30((_DWORD *)(a2[1] + 3980LL));\n  *(_QWORD *)(a2[1] + 64LL) = sub_18011D670;\n  *(_QWORD *)(a2[1] + 72LL) = sub_18011DF40;\n  *(_QWORD *)(a2[1] + 80LL) = sub_18011D670;\n  *(_QWORD *)(a2[1] + 88LL) = sub_18011D670;\n  *(_QWORD *)(a2[1] + 96LL) = sub_180041F40;\n  v15 = a2[1];\n  v16 = *(_OWORD *)(v15 + 3996);\n  v26[0] = *(_OWORD *)(v15 + 3980);\n  v17 = *(_OWORD *)(v15 + 4012);\n  v26[1] = v16;\n  *(_QWORD *)&v16 = *(_QWORD *)(v15 + 4028);\n  v18 = *(_QWORD *)(v15 + 120);\n  v26[2] = v17;\n  v27 = v16;\n  if ( !(unsigned int)sub_180041B00(a1, v18, v26, (__int64)sub_180044D30, (__int64)a2) )\n  {\n    *(_DWORD *)*a2 = 8;\n    return 3;\n  }\n  *(_QWORD *)a2[1] = a3;\n  *(_QWORD *)(a2[1] + 8LL) = a4;\n  *(_QWORD *)(a2[1] + 16LL) = a5;\n  *(_QWORD *)(a2[1] + 24LL) = a6;\n  *(_QWORD *)(a2[1] + 32LL) = a7;\n  *(_QWORD *)(a2[1] + 40LL) = a8;\n  *(_QWORD *)(a2[1] + 48LL) = a9;\n  *(_QWORD *)(a2[1] + 56LL) = a10;\n  *(_QWORD *)(a2[1] + 104LL) = a11;\n  *(_DWORD *)(a2[1] + 460LL) = 0;\n  *(_DWORD *)(a2[1] + 456LL) = 0;\n  *(_QWORD *)(a2[1] + 464LL) = 0;\n  *(_DWORD *)(a2[1] + 472LL) = 0;\n  *(_DWORD *)(a2[1] + 3976LL) = 0;\n  *(_DWORD *)(a2[1] + 4104LL) = *(_DWORD *)(*a2 + 24LL);\n  *(_DWORD *)(a2[1] + 4112LL) = 0;\n  *(_DWORD *)(a2[1] + 4108LL) = 1;\n  *(_QWORD *)(a2[1] + 464LL) = 0;\n  *(_DWORD *)(a2[1] + 4104LL) = 0;\n  v19 = sub_1800419B0(*(_QWORD *)(a2[1] + 120LL));\n  v20 = (_DWORD *)*a2;\n  if ( !v19 )\n  {\n    *v20 = 8;\n    return 3;\n  }\n  *v20 = 2;\n  v21 = a2[1];\n  if ( *(_DWORD *)(v21 + 4108) )\n  {\n    *(_DWORD *)(v21 + 4108) = 0;\n  }\n  else\n  {\n    v22 = a2[1];\n    if ( *(FILE **)(v22 + 112) == _acrt_iob_func(0) )\n      return 3;\n    v23 = *(unsigned int (__fastcall **)(_QWORD *, _QWORD, _QWORD))(v22 + 8);\n    if ( v23 )\n    {\n      if ( v23(a2, 0, *(_QWORD *)(v22 + 104)) == 1 )\n        return 3;\n    }\n  }\n  *(_DWORD *)*a2 = 0;\n  *(_DWORD *)(a2[1] + 472LL) = 0;\n  v24 = a2[1];\n  if ( *(_DWORD *)(v24 + 476) )\n  {\n    v25 = *(void **)(v24 + 680);\n    if ( v25 )\n    {\n      free(v25);\n      *(_QWORD *)(a2[1] + 680LL) = 0;\n      *(_DWORD *)(a2[1] + 476LL) = 0;\n      v24 = a2[1];\n    }\n  }\n  *(_DWORD *)(v24 + 4104) = *(_DWORD *)(*a2 + 24LL);\n  *(_DWORD *)(a2[1] + 460LL) = 0;\n  *(_DWORD *)(a2[1] + 456LL) = 0;\n  sub_180043120(a2[1] + 4120LL);\n  *(_QWORD *)(a2[1] + 6848LL) = 0;\n  *(_DWORD *)(a2[1] + 6864LL) = 0;\n  return 0;\n}", "assembly": "; \n; sub_180043FB0 from 0x180043fb0 to 0x18004431a (874 bytes)\n; \n; 2 xrefs:\n; > sub_180015B40 @ 0x180015cbb\n; > <???> @ 0x1801f8148\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:12 +0000\n; \nmov     [rsp+arg_0], rcx                                               ; +0x0, 0x180043fb0\npush    rbx                                                            ; +0x5, 0x180043fb5\npush    rbp                                                            ; +0x6, 0x180043fb6\npush    r13                                                            ; +0x7, 0x180043fb7\nsub     rsp, 80h                                                       ; +0x9, 0x180043fb9\nmov     rax, [rdx]                                                     ; +0x10, 0x180043fc0\nmov     r13, r9                                                        ; +0x13, 0x180043fc3\nmov     rbp, r8                                                        ; +0x16, 0x180043fc6\nmov     rbx, rdx                                                       ; +0x19, 0x180043fc9\ncmp     dword ptr [rax], 9                                             ; +0x1c, 0x180043fcc\njz      short loc_180043FE2                                            ; +0x1f, 0x180043fcf\nmov     eax, 5                                                         ; +0x21, 0x180043fd1\nadd     rsp, 80h                                                       ; +0x26, 0x180043fd6\npop     r13                                                            ; +0x2d, 0x180043fdd\npop     rbp                                                            ; +0x2f, 0x180043fdf\npop     rbx                                                            ; +0x30, 0x180043fe0\nretn                                                                   ; +0x31, 0x180043fe1\nmov     [rsp+98h+arg_8], rsi                                           ; +0x32, 0x180043fe2\nmov     [rsp+98h+arg_10], rdi                                          ; +0x3a, 0x180043fea\nmov     [rsp+98h+arg_18], r12                                          ; +0x42, 0x180043ff2\nmov     [rsp+98h+var_20], r14                                          ; +0x4a, 0x180043ffa\nmov     [rsp+98h+var_28], r15                                          ; +0x4f, 0x180043fff\ntest    rbp, rbp                                                       ; +0x54, 0x180044004\njz      loc_1800442E7                                                  ; +0x57, 0x180044007\nmov     rdi, [rsp+98h+arg_38]                                          ; +0x5d, 0x18004400d\ntest    rdi, rdi                                                       ; +0x65, 0x180044015\njz      loc_1800442E7                                                  ; +0x68, 0x180044018\nmov     rsi, [rsp+98h+arg_48]                                          ; +0x6e, 0x18004401e\ntest    rsi, rsi                                                       ; +0x76, 0x180044026\njz      loc_1800442E7                                                  ; +0x79, 0x180044029\nmov     r14, [rsp+98h+arg_30]                                          ; +0x7f, 0x18004402f\nmov     r15, [rsp+98h+arg_28]                                          ; +0x87, 0x180044037\nmov     r12, [rsp+98h+arg_20]                                          ; +0x8f, 0x18004403f\ntest    r13, r13                                                       ; +0x97, 0x180044047\njz      short loc_180044067                                            ; +0x9a, 0x18004404a\ntest    r12, r12                                                       ; +0x9c, 0x18004404c\njz      loc_1800442E7                                                  ; +0x9f, 0x18004404f\ntest    r15, r15                                                       ; +0xa5, 0x180044055\njz      loc_1800442E7                                                  ; +0xa8, 0x180044058\ntest    r14, r14                                                       ; +0xae, 0x18004405e\njz      loc_1800442E7                                                  ; +0xb1, 0x180044061\nmov     rcx, [rdx+8]                                                   ; +0xb7, 0x180044067\nadd     rcx, 0F8Ch                                                     ; +0xbb, 0x18004406b\ncall    sub_180042C30                                                  ; +0xc2, 0x180044072\nmov     rax, [rbx+8]                                                   ; +0xc7, 0x180044077\nlea     rdx, sub_18011D670                                             ; +0xcb, 0x18004407b\nlea     rcx, sub_18011DF40                                             ; +0xd2, 0x180044082\nmov     [rsp+98h+var_78], rbx                                          ; +0xd9, 0x180044089\nlea     r9, sub_180044D30                                              ; +0xde, 0x18004408e\nlea     r8, [rsp+98h+var_68]                                           ; +0xe5, 0x180044095\nmov     [rax+40h], rdx                                                 ; +0xea, 0x18004409a\nmov     rax, [rbx+8]                                                   ; +0xee, 0x18004409e\nmov     [rax+48h], rcx                                                 ; +0xf2, 0x1800440a2\nlea     rcx, sub_180041F40                                             ; +0xf6, 0x1800440a6\nmov     rax, [rbx+8]                                                   ; +0xfd, 0x1800440ad\nmov     [rax+50h], rdx                                                 ; +0x101, 0x1800440b1\nmov     rax, [rbx+8]                                                   ; +0x105, 0x1800440b5\nmov     [rax+58h], rdx                                                 ; +0x109, 0x1800440b9\nmov     rax, [rbx+8]                                                   ; +0x10d, 0x1800440bd\nmov     [rax+60h], rcx                                                 ; +0x111, 0x1800440c1\nmov     rdx, [rbx+8]                                                   ; +0x115, 0x1800440c5\nmov     rcx, [rsp+98h+arg_0]                                           ; +0x119, 0x1800440c9\nmovups  xmm0, xmmword ptr [rdx+0F8Ch]                                  ; +0x121, 0x1800440d1\nmovups  xmm1, xmmword ptr [rdx+0F9Ch]                                  ; +0x128, 0x1800440d8\nmovaps  [rsp+98h+var_68], xmm0                                         ; +0x12f, 0x1800440df\nmovups  xmm0, xmmword ptr [rdx+0FACh]                                  ; +0x134, 0x1800440e4\nmovaps  [rsp+98h+var_58], xmm1                                         ; +0x13b, 0x1800440eb\nmovsd   xmm1, qword ptr [rdx+0FBCh]                                    ; +0x140, 0x1800440f0\nmov     rdx, [rdx+78h]                                                 ; +0x148, 0x1800440f8\nmovaps  [rsp+98h+var_48], xmm0                                         ; +0x14c, 0x1800440fc\nmovsd   [rsp+98h+var_38], xmm1                                         ; +0x151, 0x180044101\ncall    sub_180041B00                                                  ; +0x157, 0x180044107\ntest    eax, eax                                                       ; +0x15c, 0x18004410c\njnz     short loc_180044123                                            ; +0x15e, 0x18004410e\nmov     rax, [rbx]                                                     ; +0x160, 0x180044110\nmov     dword ptr [rax], 8                                             ; +0x163, 0x180044113\nmov     eax, 3                                                         ; +0x169, 0x180044119\njmp     loc_1800442EC                                                  ; +0x16e, 0x18004411e\nmov     rax, [rbx+8]                                                   ; +0x173, 0x180044123\nmov     [rax], rbp                                                     ; +0x177, 0x180044127\nmov     rax, [rbx+8]                                                   ; +0x17a, 0x18004412a\nmov     [rax+8], r13                                                   ; +0x17e, 0x18004412e\nmov     rax, [rbx+8]                                                   ; +0x182, 0x180044132\nmov     [rax+10h], r12                                                 ; +0x186, 0x180044136\nmov     rax, [rbx+8]                                                   ; +0x18a, 0x18004413a\nmov     [rax+18h], r15                                                 ; +0x18e, 0x18004413e\nmov     rax, [rbx+8]                                                   ; +0x192, 0x180044142\nmov     [rax+20h], r14                                                 ; +0x196, 0x180044146\nmov     rax, [rbx+8]                                                   ; +0x19a, 0x18004414a\nmov     [rax+28h], rdi                                                 ; +0x19e, 0x18004414e\nmov     rcx, [rbx+8]                                                   ; +0x1a2, 0x180044152\nmov     rax, [rsp+98h+arg_40]                                          ; +0x1a6, 0x180044156\nmov     [rcx+30h], rax                                                 ; +0x1ae, 0x18004415e\nmov     rax, [rbx+8]                                                   ; +0x1b2, 0x180044162\nmov     [rax+38h], rsi                                                 ; +0x1b6, 0x180044166\nxor     esi, esi                                                       ; +0x1ba, 0x18004416a\nmov     rcx, [rbx+8]                                                   ; +0x1bc, 0x18004416c\nmov     rax, [rsp+98h+arg_50]                                          ; +0x1c0, 0x180044170\nmov     [rcx+68h], rax                                                 ; +0x1c8, 0x180044178\nmov     rax, [rbx+8]                                                   ; +0x1cc, 0x18004417c\nmov     [rax+1CCh], esi                                                ; +0x1d0, 0x180044180\nmov     rax, [rbx+8]                                                   ; +0x1d6, 0x180044186\nmov     [rax+1C8h], esi                                                ; +0x1da, 0x18004418a\nmov     rax, [rbx+8]                                                   ; +0x1e0, 0x180044190\nmov     [rax+1D0h], rsi                                                ; +0x1e4, 0x180044194\nmov     rax, [rbx+8]                                                   ; +0x1eb, 0x18004419b\nmov     [rax+1D8h], esi                                                ; +0x1ef, 0x18004419f\nmov     rax, [rbx+8]                                                   ; +0x1f5, 0x1800441a5\nmov     [rax+0F88h], esi                                               ; +0x1f9, 0x1800441a9\nmov     rax, [rbx]                                                     ; +0x1ff, 0x1800441af\nmov     rcx, [rbx+8]                                                   ; +0x202, 0x1800441b2\nmov     eax, [rax+18h]                                                 ; +0x206, 0x1800441b6\nmov     [rcx+1008h], eax                                               ; +0x209, 0x1800441b9\nmov     rax, [rbx+8]                                                   ; +0x20f, 0x1800441bf\nmov     [rax+1010h], esi                                               ; +0x213, 0x1800441c3\nmov     rax, [rbx+8]                                                   ; +0x219, 0x1800441c9\nmov     dword ptr [rax+100Ch], 1                                       ; +0x21d, 0x1800441cd\nmov     rax, [rbx+8]                                                   ; +0x227, 0x1800441d7\nmov     [rax+1D0h], rsi                                                ; +0x22b, 0x1800441db\nmov     rax, [rbx+8]                                                   ; +0x232, 0x1800441e2\nmov     [rax+1008h], esi                                               ; +0x236, 0x1800441e6\nmov     rcx, [rbx+8]                                                   ; +0x23c, 0x1800441ec\nmov     rcx, [rcx+78h]                                                 ; +0x240, 0x1800441f0\ncall    sub_1800419B0                                                  ; +0x244, 0x1800441f4\nmov     rcx, [rbx]                                                     ; +0x249, 0x1800441f9\ntest    eax, eax                                                       ; +0x24c, 0x1800441fc\njnz     short loc_18004420E                                            ; +0x24e, 0x1800441fe\nmov     dword ptr [rcx], 8                                             ; +0x250, 0x180044200\nlea     eax, [rsi+3]                                                   ; +0x256, 0x180044206\njmp     loc_1800442EC                                                  ; +0x259, 0x180044209\nmov     dword ptr [rcx], 2                                             ; +0x25e, 0x18004420e\nmov     rax, [rbx+8]                                                   ; +0x264, 0x180044214\ncmp     [rax+100Ch], esi                                               ; +0x268, 0x180044218\njnz     short loc_180044253                                            ; +0x26e, 0x18004421e\nxor     ecx, ecx; Ix                                                   ; +0x270, 0x180044220\nmov     rdi, rax                                                       ; +0x272, 0x180044222\ncall    __acrt_iob_func                                                ; +0x275, 0x180044225\ncmp     [rdi+70h], rax                                                 ; +0x27a, 0x18004422a\njz      short loc_180044249                                            ; +0x27e, 0x18004422e\nmov     rax, [rdi+8]                                                   ; +0x280, 0x180044230\ntest    rax, rax                                                       ; +0x284, 0x180044234\njz      short loc_180044259                                            ; +0x287, 0x180044237\nmov     r8, [rdi+68h]                                                  ; +0x289, 0x180044239\nxor     edx, edx                                                       ; +0x28d, 0x18004423d\nmov     rcx, rbx                                                       ; +0x28f, 0x18004423f\ncall    rax                                                            ; +0x292, 0x180044242\ncmp     eax, 1                                                         ; +0x294, 0x180044244\njnz     short loc_180044259                                            ; +0x297, 0x180044247\nmov     eax, 3                                                         ; +0x299, 0x180044249\njmp     loc_1800442EC                                                  ; +0x29e, 0x18004424e\nmov     [rax+100Ch], esi                                               ; +0x2a3, 0x180044253\nmov     rax, [rbx]                                                     ; +0x2a9, 0x180044259\nmov     [rax], esi                                                     ; +0x2ac, 0x18004425c\nmov     rax, [rbx+8]                                                   ; +0x2ae, 0x18004425e\nmov     [rax+1D8h], esi                                                ; +0x2b2, 0x180044262\nmov     rdx, [rbx+8]                                                   ; +0x2b8, 0x180044268\ncmp     [rdx+1DCh], esi                                                ; +0x2bc, 0x18004426c\njz      short loc_18004429E                                            ; +0x2c2, 0x180044272\nmov     rcx, [rdx+2A8h]; Block                                         ; +0x2c4, 0x180044274\ntest    rcx, rcx                                                       ; +0x2cb, 0x18004427b\njz      short loc_18004429E                                            ; +0x2ce, 0x18004427e\ncall    free                                                           ; +0x2d0, 0x180044280\nmov     rax, [rbx+8]                                                   ; +0x2d5, 0x180044285\nmov     [rax+2A8h], rsi                                                ; +0x2d9, 0x180044289\nmov     rax, [rbx+8]                                                   ; +0x2e0, 0x180044290\nmov     [rax+1DCh], esi                                                ; +0x2e4, 0x180044294\nmov     rdx, [rbx+8]                                                   ; +0x2ea, 0x18004429a\nmov     rax, [rbx]                                                     ; +0x2ee, 0x18004429e\nmov     ecx, [rax+18h]                                                 ; +0x2f1, 0x1800442a1\nmov     [rdx+1008h], ecx                                               ; +0x2f4, 0x1800442a4\nmov     rcx, [rbx+8]                                                   ; +0x2fa, 0x1800442aa\nmov     [rcx+1CCh], esi                                                ; +0x2fe, 0x1800442ae\nmov     rcx, [rbx+8]                                                   ; +0x304, 0x1800442b4\nmov     [rcx+1C8h], esi                                                ; +0x308, 0x1800442b8\nmov     rcx, [rbx+8]                                                   ; +0x30e, 0x1800442be\nadd     rcx, 1018h                                                     ; +0x312, 0x1800442c2\ncall    sub_180043120                                                  ; +0x319, 0x1800442c9\nmov     rcx, [rbx+8]                                                   ; +0x31e, 0x1800442ce\nmov     eax, esi                                                       ; +0x322, 0x1800442d2\nmov     [rcx+1AC0h], rsi                                               ; +0x324, 0x1800442d4\nmov     rcx, [rbx+8]                                                   ; +0x32b, 0x1800442db\nmov     [rcx+1AD0h], esi                                               ; +0x32f, 0x1800442df\njmp     short loc_1800442EC                                            ; +0x335, 0x1800442e5\nmov     eax, 2                                                         ; +0x337, 0x1800442e7\nmov     r14, [rsp+98h+var_20]                                          ; +0x33c, 0x1800442ec\nmov     r12, [rsp+98h+arg_18]                                          ; +0x341, 0x1800442f1\nmov     rdi, [rsp+98h+arg_10]                                          ; +0x349, 0x1800442f9\nmov     rsi, [rsp+98h+arg_8]                                           ; +0x351, 0x180044301\nmov     r15, [rsp+98h+var_28]                                          ; +0x359, 0x180044309\nadd     rsp, 80h                                                       ; +0x35e, 0x18004430e\npop     r13                                                            ; +0x365, 0x180044315\npop     rbp                                                            ; +0x367, 0x180044317\npop     rbx                                                            ; +0x368, 0x180044318\nretn                                                                   ; +0x369, 0x180044319", "xrefs": ["sub_180015B40 @ 0x180015cbb", "<???> @ 0x1801f8148"], "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"}