{"type": "func", "start": 6443011600, "end": 6443012212, "name": "sub_180088E10", "pseudocode": "// \n// sub_180088E10 from 0x180088e10 to 0x180089074 (612 bytes)\n// \n// 2 xrefs:\n// > sub_180088910 @ 0x180088913\n// > <???> @ 0x1801fa3f8\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:41 +0000\n// \n\n__int64 __fastcall sub_180088E10(__int64 a1, unsigned int a2, __int64 a3, __int64 a4, int a5, int a6)\n{\n  __int64 result; // rax\n  __int64 v9; // rdx\n  const void *v10; // r10\n  void *v11; // r15\n  int v12; // esi\n  int v13; // edi\n  __int64 v14; // r8\n  __int64 v15; // rcx\n  char *v16; // r12\n  int v17; // r13d\n  __int64 v18; // rdx\n  size_t v19; // r8\n  __int64 v20; // [rsp+40h] [rbp-99h]\n  __int64 v21; // [rsp+50h] [rbp-89h] BYREF\n  _QWORD v22[3]; // [rsp+58h] [rbp-81h] BYREF\n  _QWORD v23[3]; // [rsp+70h] [rbp-69h] BYREF\n  int v24; // [rsp+88h] [rbp-51h]\n  __int64 v25; // [rsp+90h] [rbp-49h]\n  int v26; // [rsp+98h] [rbp-41h]\n  __int64 v27; // [rsp+A0h] [rbp-39h]\n  __int64 v28; // [rsp+A8h] [rbp-31h]\n  __int64 v29; // [rsp+B0h] [rbp-29h]\n  int v30; // [rsp+E8h] [rbp+Fh]\n  __int64 v31; // [rsp+F0h] [rbp+17h]\n  char v32; // [rsp+158h] [rbp+7Fh]\n\n  if ( a6 == 1 )\n  {\n    if ( a4 )\n    {\n      **(_DWORD **)(a4 + 8) = **(_DWORD **)(a3 + 8);\n      *(_DWORD *)(a4 + 32) = *(_DWORD *)(a3 + 32);\n    }\n    if ( a5 )\n      return 11;\n    if ( !*(_QWORD *)(a1 + 576) || *(float *)(a1 + 552) == 0.0 && *(float *)(a1 + 544) == 0.0 )\n      return 6;\n    return 0;\n  }\n  v9 = *(_QWORD *)(a1 + 576);\n  v10 = **(const void ***)(a3 + 24);\n  v20 = (__int64)v10;\n  v11 = **(void ***)(a4 + 24);\n  v12 = **(_DWORD **)(a3 + 8);\n  if ( !v9 )\n    goto LABEL_22;\n  v13 = 0;\n  v22[1] = v22;\n  v22[0] = v22;\n  v23[1] = v23;\n  v23[0] = v23;\n  v22[2] = 0;\n  v23[2] = 0;\n  v25 = 0;\n  v24 = 0;\n  v27 = 0;\n  v26 = 0;\n  v31 = 0;\n  v30 = 0;\n  v21 = 0;\n  v28 = 0;\n  v29 = 0;\n  v14 = *(_QWORD *)(v9 + 8);\n  if ( v14 == *(_QWORD *)(v9 + 584) )\n  {\n    v32 = *(_BYTE *)(v9 + 593);\n  }\n  else\n  {\n    v15 = *(_QWORD *)(v9 + 552);\n    *(_QWORD *)(v9 + 552) = *(_QWORD *)(v9 + 560);\n    *(_BYTE *)(v9 + 592) = *(_BYTE *)(v9 + 593);\n    *(_QWORD *)(v9 + 560) = v15;\n    *(_QWORD *)(v9 + 584) = v14;\n    v32 = 0;\n  }\n  v16 = *(char **)(v9 + 560);\n  *(_BYTE *)(v9 + 593) = 1;\n  if ( !v16 )\n  {\nLABEL_22:\n    v19 = 4LL * a2 * v12;\n    if ( *(_BYTE *)(a1 + 612) )\n      memset(v11, 0, v19);\n    else\n      memmove(v11, v10, v19);\n    return 0;\n  }\n  v17 = *(_DWORD *)(v9 + 572);\n  if ( a2 * v17 > *(_DWORD *)(v9 + 576) )\n    return 28;\n  v18 = *(_QWORD *)(a1 + 168);\n  if ( (unsigned int)(*(_DWORD *)(a1 + 96) - *(_DWORD *)(a1 + 556)) <= 1 )\n  {\n    sub_1800580D0((__int64)&v21, v18, *(float *)(a1 + 544));\n    sub_18005A600((__int64)&v21, *(float *)(a1 + 552), 64, 0);\n  }\n  else\n  {\n    sub_1800580D0((__int64)&v21, v18, *(float *)(a1 + 552));\n  }\n  LOBYTE(v13) = v32 == 0;\n  *(_DWORD *)(a1 + 544) = *(_DWORD *)(a1 + 552);\n  result = sub_180058150((__int64)&v21, v16, v20, 0, v17, v12, a2, v13);\n  if ( !(_DWORD)result )\n  {\n    v10 = (const void *)v20;\n    goto LABEL_22;\n  }\n  return result;\n}", "assembly": "; \n; sub_180088E10 from 0x180088e10 to 0x180089074 (612 bytes)\n; \n; 2 xrefs:\n; > sub_180088910 @ 0x180088913\n; > <???> @ 0x1801fa3f8\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:41 +0000\n; \nmov     [rsp-8+arg_0], rbx                                             ; +0x0, 0x180088e10\nmov     [rsp-8+arg_8], rsi                                             ; +0x5, 0x180088e15\nmov     [rsp-8+arg_10], rdi                                            ; +0xa, 0x180088e1a\npush    rbp                                                            ; +0xf, 0x180088e1f\npush    r12                                                            ; +0x10, 0x180088e20\npush    r13                                                            ; +0x12, 0x180088e22\npush    r14                                                            ; +0x14, 0x180088e24\npush    r15                                                            ; +0x16, 0x180088e26\nlea     rbp, [rsp-27h]                                                 ; +0x18, 0x180088e28\nsub     rsp, 100h                                                      ; +0x1d, 0x180088e2d\ncmp     [rbp+47h+arg_28], 1                                            ; +0x24, 0x180088e34\nmov     r14d, edx                                                      ; +0x28, 0x180088e38\nmov     rbx, rcx                                                       ; +0x2b, 0x180088e3b\njnz     short loc_180088E9A                                            ; +0x2e, 0x180088e3e\ntest    r9, r9                                                         ; +0x30, 0x180088e40\njz      short loc_180088E59                                            ; +0x33, 0x180088e43\nmov     rax, [r8+8]                                                    ; +0x35, 0x180088e45\nmov     rdx, [r9+8]                                                    ; +0x39, 0x180088e49\nmov     eax, [rax]                                                     ; +0x3d, 0x180088e4d\nmov     [rdx], eax                                                     ; +0x3f, 0x180088e4f\nmov     eax, [r8+20h]                                                  ; +0x41, 0x180088e51\nmov     [r9+20h], eax                                                  ; +0x45, 0x180088e55\ncmp     [rbp+47h+arg_20], 0                                            ; +0x49, 0x180088e59\njz      short loc_180088E69                                            ; +0x4d, 0x180088e5d\nmov     eax, 0Bh                                                       ; +0x4f, 0x180088e5f\njmp     loc_180089053                                                  ; +0x54, 0x180088e64\ncmp     qword ptr [rcx+240h], 0                                        ; +0x59, 0x180088e69\njz      short loc_180088E90                                            ; +0x61, 0x180088e71\nxorps   xmm0, xmm0                                                     ; +0x63, 0x180088e73\nucomiss xmm0, dword ptr [rcx+228h]                                     ; +0x66, 0x180088e76\njnz     loc_180089051                                                  ; +0x6d, 0x180088e7d\nucomiss xmm0, dword ptr [rcx+220h]                                     ; +0x73, 0x180088e83\njnz     loc_180089051                                                  ; +0x7a, 0x180088e8a\nmov     eax, 6                                                         ; +0x80, 0x180088e90\njmp     loc_180089053                                                  ; +0x85, 0x180088e95\nmov     rax, [r8+18h]                                                  ; +0x8a, 0x180088e9a\nmov     rdx, [rcx+240h]                                                ; +0x8e, 0x180088e9e\nmov     r10, [rax]                                                     ; +0x95, 0x180088ea5\nmov     rax, [r9+18h]                                                  ; +0x98, 0x180088ea8\nmov     [rsp+120h+var_E0], r10                                         ; +0x9c, 0x180088eac\nmov     r15, [rax]                                                     ; +0xa1, 0x180088eb1\nmov     rax, [r8+8]                                                    ; +0xa4, 0x180088eb4\nmov     esi, [rax]                                                     ; +0xa8, 0x180088eb8\ntest    rdx, rdx                                                       ; +0xaa, 0x180088eba\njz      loc_180089029                                                  ; +0xad, 0x180088ebd\nxor     edi, edi                                                       ; +0xb3, 0x180088ec3\nlea     rax, [rsp+120h+var_C8]                                         ; +0xb5, 0x180088ec5\nmov     [rbp+47h+var_C0], rax                                          ; +0xba, 0x180088eca\nlea     rax, [rsp+120h+var_C8]                                         ; +0xbe, 0x180088ece\nmov     [rsp+120h+var_C8], rax                                         ; +0xc3, 0x180088ed3\nlea     rax, [rbp+47h+var_B0]                                          ; +0xc8, 0x180088ed8\nmov     [rbp+47h+var_A8], rax                                          ; +0xcc, 0x180088edc\nlea     rax, [rbp+47h+var_B0]                                          ; +0xd0, 0x180088ee0\nmov     [rbp+47h+var_B0], rax                                          ; +0xd4, 0x180088ee4\nmov     [rbp+47h+var_B8], rdi                                          ; +0xd8, 0x180088ee8\nmov     [rbp+47h+var_A0], rdi                                          ; +0xdc, 0x180088eec\nmov     [rbp+47h+var_90], rdi                                          ; +0xe0, 0x180088ef0\nmov     [rbp+47h+var_98], edi                                          ; +0xe4, 0x180088ef4\nmov     [rbp+47h+var_80], rdi                                          ; +0xe7, 0x180088ef7\nmov     [rbp+47h+var_88], edi                                          ; +0xeb, 0x180088efb\nmov     [rbp+47h+var_30], rdi                                          ; +0xee, 0x180088efe\nmov     [rbp+47h+var_38], edi                                          ; +0xf2, 0x180088f02\nmov     [rsp+120h+var_D0], rdi                                         ; +0xf5, 0x180088f05\nmov     [rbp+47h+var_78], rdi                                          ; +0xfa, 0x180088f0a\nmov     [rbp+47h+var_70], rdi                                          ; +0xfe, 0x180088f0e\nmov     r8, [rdx+8]                                                    ; +0x102, 0x180088f12\ncmp     r8, [rdx+248h]                                                 ; +0x106, 0x180088f16\njz      short loc_180088F55                                            ; +0x10d, 0x180088f1d\nmov     rax, [rdx+230h]                                                ; +0x10f, 0x180088f1f\nmov     rcx, [rdx+228h]                                                ; +0x116, 0x180088f26\nmov     [rdx+228h], rax                                                ; +0x11d, 0x180088f2d\nmovzx   eax, byte ptr [rdx+251h]                                       ; +0x124, 0x180088f34\nmov     [rdx+250h], al                                                 ; +0x12b, 0x180088f3b\nmov     [rdx+230h], rcx                                                ; +0x131, 0x180088f41\nmov     [rdx+248h], r8                                                 ; +0x138, 0x180088f48\nmov     byte ptr [rbp+47h+arg_28], dil                                 ; +0x13f, 0x180088f4f\njmp     short loc_180088F5F                                            ; +0x143, 0x180088f53\nmovzx   eax, byte ptr [rdx+251h]                                       ; +0x145, 0x180088f55\nmov     byte ptr [rbp+47h+arg_28], al                                  ; +0x14c, 0x180088f5c\nmov     r12, [rdx+230h]                                                ; +0x14f, 0x180088f5f\nmov     byte ptr [rdx+251h], 1                                         ; +0x156, 0x180088f66\ntest    r12, r12                                                       ; +0x15d, 0x180088f6d\njz      loc_180089029                                                  ; +0x160, 0x180088f70\nmov     r13d, [rdx+23Ch]                                               ; +0x166, 0x180088f76\nmov     eax, r13d                                                      ; +0x16d, 0x180088f7d\nimul    eax, r14d                                                      ; +0x170, 0x180088f80\ncmp     eax, [rdx+240h]                                                ; +0x174, 0x180088f84\njbe     short loc_180088F96                                            ; +0x17a, 0x180088f8a\nmov     eax, 1Ch                                                       ; +0x17c, 0x180088f8c\njmp     loc_180089053                                                  ; +0x181, 0x180088f91\nmov     eax, [rbx+60h]                                                 ; +0x186, 0x180088f96\nlea     rcx, [rsp+120h+var_D0]                                         ; +0x189, 0x180088f99\nsub     eax, [rbx+22Ch]                                                ; +0x18e, 0x180088f9e\nmov     rdx, [rbx+0A8h]                                                ; +0x194, 0x180088fa4\ncmp     eax, 1                                                         ; +0x19b, 0x180088fab\njbe     short loc_180088FBF                                            ; +0x19e, 0x180088fae\nmovss   xmm2, dword ptr [rbx+228h]                                     ; +0x1a0, 0x180088fb0\ncall    sub_1800580D0                                                  ; +0x1a8, 0x180088fb8\njmp     short loc_180088FE5                                            ; +0x1ad, 0x180088fbd\nmovss   xmm2, dword ptr [rbx+220h]                                     ; +0x1af, 0x180088fbf\ncall    sub_1800580D0                                                  ; +0x1b7, 0x180088fc7\nmovss   xmm1, dword ptr [rbx+228h]                                     ; +0x1bc, 0x180088fcc\nlea     rcx, [rsp+120h+var_D0]                                         ; +0x1c4, 0x180088fd4\nxor     r9d, r9d                                                       ; +0x1c9, 0x180088fd9\nlea     r8d, [r9+40h]                                                  ; +0x1cc, 0x180088fdc\ncall    sub_18005A600                                                  ; +0x1d0, 0x180088fe0\nmov     eax, [rbx+228h]                                                ; +0x1d5, 0x180088fe5\nlea     rcx, [rsp+120h+var_D0]                                         ; +0x1db, 0x180088feb\ncmp     byte ptr [rbp+47h+arg_28], dil                                 ; +0x1e0, 0x180088ff0\nmov     rdx, r12                                                       ; +0x1e4, 0x180088ff4\nmov     r8, [rsp+120h+var_E0]                                          ; +0x1e7, 0x180088ff7\nsetz    dil                                                            ; +0x1ec, 0x180088ffc\nmov     [rbx+220h], eax                                                ; +0x1f0, 0x180089000\nmov     [rsp+120h+var_E8], edi                                         ; +0x1f6, 0x180089006\nxor     r9d, r9d                                                       ; +0x1fa, 0x18008900a\nmov     [rsp+120h+var_F0], r14d                                        ; +0x1fd, 0x18008900d\nmov     [rsp+120h+var_F8], esi                                         ; +0x202, 0x180089012\nmov     [rsp+120h+var_100], r13d                                       ; +0x206, 0x180089016\ncall    sub_180058150                                                  ; +0x20b, 0x18008901b\ntest    eax, eax                                                       ; +0x210, 0x180089020\njnz     short loc_180089053                                            ; +0x212, 0x180089022\nmov     r10, [rsp+120h+var_E0]                                         ; +0x214, 0x180089024\nimul    esi, r14d                                                      ; +0x219, 0x180089029\nmov     rcx, r15; void *                                               ; +0x21d, 0x18008902d\nmov     r8d, esi                                                       ; +0x220, 0x180089030\nshl     r8, 2; Size                                                    ; +0x223, 0x180089033\ncmp     byte ptr [rbx+264h], 0                                         ; +0x227, 0x180089037\njz      short loc_180089049                                            ; +0x22e, 0x18008903e\nxor     edx, edx; Val                                                  ; +0x230, 0x180089040\ncall    memset                                                         ; +0x232, 0x180089042\njmp     short loc_180089051                                            ; +0x237, 0x180089047\nmov     rdx, r10; Src                                                  ; +0x239, 0x180089049\ncall    memmove                                                        ; +0x23c, 0x18008904c\nxor     eax, eax                                                       ; +0x241, 0x180089051\nlea     r11, [rsp+120h+var_20]                                         ; +0x243, 0x180089053\nmov     rbx, [r11+30h]                                                 ; +0x24b, 0x18008905b\nmov     rsi, [r11+38h]                                                 ; +0x24f, 0x18008905f\nmov     rdi, [r11+40h]                                                 ; +0x253, 0x180089063\nmov     rsp, r11                                                       ; +0x257, 0x180089067\npop     r15                                                            ; +0x25a, 0x18008906a\npop     r14                                                            ; +0x25c, 0x18008906c\npop     r13                                                            ; +0x25e, 0x18008906e\npop     r12                                                            ; +0x260, 0x180089070\npop     rbp                                                            ; +0x262, 0x180089072\nretn                                                                   ; +0x263, 0x180089073", "xrefs": ["sub_180088910 @ 0x180088913", "<???> @ 0x1801fa3f8"], "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"}