{"type": "func", "start": 6442720000, "end": 6442720142, "name": "sub_180041B00", "pseudocode": "// \n// sub_180041B00 from 0x180041b00 to 0x180041b8e (142 bytes)\n// \n// 2 xrefs:\n// > sub_180043FB0 @ 0x180044107\n// > <???> @ 0x1801f7fd4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall sub_180041B00(__int64 a1, __int64 a2, __int128 *a3, __int64 a4, __int64 a5)\n{\n  __int64 result; // rax\n  __int128 v9; // xmm0\n  __int128 v10; // xmm1\n  __int128 v11; // xmm0\n\n  *(_DWORD *)(a2 + 8) = 2048;\n  *(_QWORD *)(a2 + 12) = 0;\n  *(_QWORD *)(a2 + 20) = 0;\n  result = (__int64)j__malloc_base(0x2000u);\n  *(_QWORD *)a2 = result;\n  if ( result )\n  {\n    v9 = *a3;\n    v10 = a3[1];\n    *(_QWORD *)(a2 + 40) = a4;\n    *(_OWORD *)(a2 + 56) = v9;\n    *(_QWORD *)(a2 + 48) = a5;\n    v11 = a3[2];\n    *(_OWORD *)(a2 + 72) = v10;\n    *(_QWORD *)&v10 = *((_QWORD *)a3 + 6);\n    *(_OWORD *)(a2 + 88) = v11;\n    *(_QWORD *)(a2 + 104) = v10;\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; sub_180041B00 from 0x180041b00 to 0x180041b8e (142 bytes)\n; \n; 2 xrefs:\n; > sub_180043FB0 @ 0x180044107\n; > <???> @ 0x1801f7fd4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180041b00\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180041b05\npush    rdi                                                            ; +0xa, 0x180041b0a\nsub     rsp, 20h                                                       ; +0xb, 0x180041b0b\nxor     eax, eax                                                       ; +0xf, 0x180041b0f\nmov     dword ptr [rdx+8], 800h                                        ; +0x11, 0x180041b11\nmov     ecx, 2000h; Size                                               ; +0x18, 0x180041b18\nmov     [rdx+0Ch], rax                                                 ; +0x1d, 0x180041b1d\nmov     [rdx+14h], rax                                                 ; +0x21, 0x180041b21\nmov     rsi, r9                                                        ; +0x25, 0x180041b25\nmov     rdi, r8                                                        ; +0x28, 0x180041b28\nmov     rbx, rdx                                                       ; +0x2b, 0x180041b2b\ncall    j__malloc_base                                                 ; +0x2e, 0x180041b2e\nmov     [rbx], rax                                                     ; +0x33, 0x180041b33\ntest    rax, rax                                                       ; +0x36, 0x180041b36\njnz     short loc_180041B4B                                            ; +0x39, 0x180041b39\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3b, 0x180041b3b\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x40, 0x180041b40\nadd     rsp, 20h                                                       ; +0x45, 0x180041b45\npop     rdi                                                            ; +0x49, 0x180041b49\nretn                                                                   ; +0x4a, 0x180041b4a\nmovups  xmm0, xmmword ptr [rdi]                                        ; +0x4b, 0x180041b4b\nmov     rax, [rsp+28h+arg_20]                                          ; +0x4e, 0x180041b4e\nmovups  xmm1, xmmword ptr [rdi+10h]                                    ; +0x53, 0x180041b53\nmov     [rbx+28h], rsi                                                 ; +0x57, 0x180041b57\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x5b, 0x180041b5b\nmovups  xmmword ptr [rbx+38h], xmm0                                    ; +0x60, 0x180041b60\nmov     [rbx+30h], rax                                                 ; +0x64, 0x180041b64\nmov     eax, 1                                                         ; +0x68, 0x180041b68\nmovups  xmm0, xmmword ptr [rdi+20h]                                    ; +0x6d, 0x180041b6d\nmovups  xmmword ptr [rbx+48h], xmm1                                    ; +0x71, 0x180041b71\nmovsd   xmm1, qword ptr [rdi+30h]                                      ; +0x75, 0x180041b75\nmovups  xmmword ptr [rbx+58h], xmm0                                    ; +0x7a, 0x180041b7a\nmovsd   qword ptr [rbx+68h], xmm1                                      ; +0x7e, 0x180041b7e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x83, 0x180041b83\nadd     rsp, 20h                                                       ; +0x88, 0x180041b88\npop     rdi                                                            ; +0x8c, 0x180041b8c\nretn                                                                   ; +0x8d, 0x180041b8d", "xrefs": ["sub_180043FB0 @ 0x180044107", "<???> @ 0x1801f7fd4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}