{"type": "func", "start": 6442942864, "end": 6442943202, "name": "sub_180078190", "pseudocode": "// \n// sub_180078190 from 0x180078190 to 0x1800782e2 (338 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x180183fe0\n// > <???> @ 0x180184048\n// > <???> @ 0x180184060\n// > <???> @ 0x180184070\n// > <???> @ 0x1801ad7c8\n// > <???> @ 0x1801f9c78\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:32 +0000\n// \n\n__int64 __fastcall sub_180078190(__int64 *a1, const void *a2, void *a3, int a4, int a5, _DWORD *a6)\n{\n  __int64 v9; // rbx\n  int v10; // edi\n  int v11; // r12d\n  __int64 v12; // r14\n\n  if ( !a2 )\n    return 0;\n  v9 = *a1;\n  if ( a5 <= *(_DWORD *)(*a1 + 49724) && *(_QWORD *)(v9 + 49712) )\n  {\n    v10 = 0;\n    if ( a5 <= 0 )\n    {\n      return 0;\n    }\n    else\n    {\n      v11 = 0;\n      v12 = 0;\n      do\n      {\n        *(_DWORD *)(*(_QWORD *)(v9 + 49712) + v12 + 81968) = *(_DWORD *)(v9 + 49700);\n        *(_DWORD *)(*(_QWORD *)(v9 + 49712) + v12 + 81972) = *(_DWORD *)(v9 + 49728);\n        ((void (__fastcall *)(_DWORD, _DWORD, _DWORD, _DWORD, _DWORD, __int64, __int64, _DWORD, _DWORD))sub_18007AC90)(\n          v11 + *(_QWORD *)(v9 + 49712),\n          (_DWORD)a2,\n          a4,\n          *(_DWORD *)(v9 + 49704),\n          (float)*(int *)(v9 + 49720),\n          (__int64)a2,\n          (__int64)a3,\n          v10++,\n          a5);\n        v12 += 81992;\n        v11 += 81992;\n      }\n      while ( v10 < a5 );\n      return 0;\n    }\n  }\n  else\n  {\n    memmove(a3, a2, 4LL * (unsigned int)(*a6 * a4));\n    return 0;\n  }\n}", "assembly": "; \n; sub_180078190 from 0x180078190 to 0x1800782e2 (338 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x180183fe0\n; > <???> @ 0x180184048\n; > <???> @ 0x180184060\n; > <???> @ 0x180184070\n; > <???> @ 0x1801ad7c8\n; > <???> @ 0x1801f9c78\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:32 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x180078190\npush    rbp                                                            ; +0x3, 0x180078193\npush    r13                                                            ; +0x4, 0x180078194\npush    r15                                                            ; +0x6, 0x180078196\nsub     rsp, 60h                                                       ; +0x8, 0x180078198\nmov     ebp, r9d                                                       ; +0xc, 0x18007819c\nmov     r13, r8                                                        ; +0xf, 0x18007819f\nmov     r15, rdx                                                       ; +0x12, 0x1800781a2\ntest    rdx, rdx                                                       ; +0x15, 0x1800781a5\njz      loc_1800782D6                                                  ; +0x18, 0x1800781a8\nmov     [rax+8], rbx                                                   ; +0x1e, 0x1800781ae\nmov     rbx, [rcx]                                                     ; +0x22, 0x1800781b2\nmov     [rax+10h], rsi                                                 ; +0x25, 0x1800781b5\nmov     esi, [rsp+78h+arg_20]                                          ; +0x29, 0x1800781b9\ncmp     esi, [rbx+0C23Ch]                                              ; +0x30, 0x1800781c0\njg      loc_1800782B8                                                  ; +0x36, 0x1800781c6\ncmp     qword ptr [rbx+0C230h], 0                                      ; +0x3c, 0x1800781cc\njz      loc_1800782B8                                                  ; +0x44, 0x1800781d4\nmov     [rax+18h], rdi                                                 ; +0x4a, 0x1800781da\nxor     edi, edi                                                       ; +0x4e, 0x1800781de\ntest    esi, esi                                                       ; +0x50, 0x1800781e0\njle     loc_1800782B4                                                  ; +0x52, 0x1800781e2\nmov     [rax-20h], r12                                                 ; +0x58, 0x1800781e8\nmov     r12d, edi                                                      ; +0x5c, 0x1800781ec\nmov     [rax-28h], r14                                                 ; +0x5f, 0x1800781ef\nmov     r14d, edi                                                      ; +0x63, 0x1800781f3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x66, 0x1800781f6\nmov     rcx, [rbx+0C230h]                                              ; +0x70, 0x180078200\nmov     r8d, ebp                                                       ; +0x77, 0x180078207\nmov     eax, [rbx+0C224h]                                              ; +0x7a, 0x18007820a\nmov     [rsp+78h+var_38], esi                                          ; +0x80, 0x180078210\nmov     [rsp+78h+var_40], edi                                          ; +0x84, 0x180078214\nmov     [rcx+r14+14030h], eax                                          ; +0x88, 0x180078218\nmov     rcx, [rbx+0C230h]                                              ; +0x90, 0x180078220\nmov     eax, [rbx+0C240h]                                              ; +0x97, 0x180078227\nmov     [rsp+78h+var_48], r13                                          ; +0x9d, 0x18007822d\nmov     [rsp+78h+var_50], r15                                          ; +0xa2, 0x180078232\nmov     [rcx+r14+14034h], eax                                          ; +0xa7, 0x180078237\nmovd    xmm0, dword ptr [rbx+0C238h]                                   ; +0xaf, 0x18007823f\nmov     rcx, [rbx+0C230h]                                              ; +0xb7, 0x180078247\nmov     r9d, [rbx+0C228h]                                              ; +0xbe, 0x18007824e\nadd     rcx, r12                                                       ; +0xc5, 0x180078255\nmovss   xmm1, dword ptr [rbx+0C220h]                                   ; +0xc8, 0x180078258\ncvtdq2ps xmm0, xmm0                                                    ; +0xd0, 0x180078260\nmovss   [rsp+78h+var_58], xmm0                                         ; +0xd3, 0x180078263\ncall    sub_18007AC90                                                  ; +0xd9, 0x180078269\ninc     edi                                                            ; +0xde, 0x18007826e\nlea     r14, [r14+14048h]                                              ; +0xe0, 0x180078270\nadd     r12, 14048h                                                    ; +0xe7, 0x180078277\ncmp     edi, esi                                                       ; +0xee, 0x18007827e\njl      loc_180078200                                                  ; +0xf0, 0x180078280\nmov     r14, [rsp+78h+var_28]                                          ; +0xf6, 0x180078286\nxor     eax, eax                                                       ; +0xfb, 0x18007828b\nmov     r12, [rsp+78h+var_20]                                          ; +0xfd, 0x18007828d\nmov     rdi, [rsp+78h+arg_10]                                          ; +0x102, 0x180078292\nmov     rbx, [rsp+78h+arg_0]                                           ; +0x10a, 0x18007829a\nmov     rsi, [rsp+78h+arg_8]                                           ; +0x112, 0x1800782a2\nadd     rsp, 60h                                                       ; +0x11a, 0x1800782aa\npop     r15                                                            ; +0x11e, 0x1800782ae\npop     r13                                                            ; +0x120, 0x1800782b0\npop     rbp                                                            ; +0x122, 0x1800782b2\nretn                                                                   ; +0x123, 0x1800782b3\nxor     eax, eax                                                       ; +0x124, 0x1800782b4\njmp     short loc_180078292                                            ; +0x126, 0x1800782b6\nmov     rax, [rsp+78h+arg_28]                                          ; +0x128, 0x1800782b8\nmov     rcx, r13; void *                                               ; +0x130, 0x1800782c0\nimul    ebp, [rax]                                                     ; +0x133, 0x1800782c3\nmov     r8d, ebp                                                       ; +0x136, 0x1800782c6\nshl     r8, 2; Size                                                    ; +0x139, 0x1800782c9\ncall    memmove                                                        ; +0x13d, 0x1800782cd\nxor     eax, eax                                                       ; +0x142, 0x1800782d2\njmp     short loc_18007829A                                            ; +0x144, 0x1800782d4\nxor     eax, eax                                                       ; +0x146, 0x1800782d6\nadd     rsp, 60h                                                       ; +0x148, 0x1800782d8\npop     r15                                                            ; +0x14c, 0x1800782dc\npop     r13                                                            ; +0x14e, 0x1800782de\npop     rbp                                                            ; +0x150, 0x1800782e0\nretn                                                                   ; +0x151, 0x1800782e1", "xrefs": ["<???> @ 0x180183fe0", "<???> @ 0x180184048", "<???> @ 0x180184060", "<???> @ 0x180184070", "<???> @ 0x1801ad7c8", "<???> @ 0x1801f9c78"], "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"}