{"type": "func", "start": 6443565136, "end": 6443565705, "name": "sub_180110050", "pseudocode": "// \n// sub_180110050 from 0x180110050 to 0x180110289 (569 bytes)\n// \n// 2 xrefs:\n// > sub_18010E650 @ 0x18010e6f5\n// > <???> @ 0x180201b44\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_180110050(__int64 a1, unsigned int a2)\n{\n  float *v2; // rdi\n  __int64 v5; // r15\n  unsigned int *i; // rbx\n  __int64 v7; // r9\n  unsigned int v8; // ecx\n  __int64 v9; // rax\n  unsigned int v10; // eax\n  unsigned int v11; // ecx\n  bool v12; // r14\n  unsigned int v13; // eax\n  int v14; // eax\n  __int64 (__fastcall *v15)(int, int, int, int, __int64, __int64, int); // rcx\n  bool v16; // zf\n  __int64 (__fastcall *v17)(int, int, int, int, __int64, __int64, int); // rax\n  __int64 v18; // rax\n  __int64 result; // rax\n  __int64 v20; // rdx\n  unsigned int *v21; // rsi\n  unsigned int v22; // eax\n  __int64 v23; // rax\n  float v24; // xmm2_4\n  unsigned int v25; // [rsp+70h] [rbp+8h] BYREF\n  int v26; // [rsp+80h] [rbp+18h] BYREF\n\n  v2 = *(float **)(a1 + 8);\n  v5 = 0;\n  for ( i = (unsigned int *)(v2 + 46); ; i += 24 )\n  {\n    if ( *(i - 2) != a2 )\n    {\n      v7 = *(_QWORD *)i;\n      v8 = a2;\n      *(i - 2) = a2;\n      if ( v7 )\n      {\n        (*(void (__fastcall **)(__int64, _QWORD, const char *))(*(_QWORD *)(a1 + 40) + 16LL))(\n          v7,\n          0,\n          \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_dsp_multiband_eq.cpp\");\n        v8 = *(i - 2);\n      }\n      v9 = (**(__int64 (__fastcall ***)(_QWORD, _QWORD, const char *))(a1 + 40))(\n             32 * v8,\n             0,\n             \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_dsp_multiband_eq.cpp\");\n      *(_QWORD *)i = v9;\n      if ( !v9 )\n        break;\n    }\n    v10 = i[2];\n    v11 = *((_DWORD *)v2 + 4);\n    if ( v10 != v11 )\n    {\n      v12 = !v10 || *(i - 18) != *(_DWORD *)v2;\n      i[2] = v11;\n      *(i - 18) = *(_DWORD *)v2;\n      v13 = *(_DWORD *)v2;\n      if ( *(_DWORD *)v2 == 3 || v13 == 6 )\n      {\n        v16 = (unsigned int)sub_1800C0A10(0) == 0;\n        v15 = (__int64 (__fastcall *)(int, int, int, int, __int64, __int64, int))sub_18010F350;\n        v17 = sub_180110F10;\n      }\n      else\n      {\n        if ( v13 != 2 && v13 != 5 )\n        {\n          v14 = sub_1800C0A10(0);\n          v15 = (__int64 (__fastcall *)(int, int, int, int, __int64, __int64, int))sub_18010E7A0;\n          if ( v14 )\n            v15 = sub_180110E70;\n          goto LABEL_22;\n        }\n        v16 = (unsigned int)sub_1800C0A10(0) == 0;\n        v15 = (__int64 (__fastcall *)(int, int, int, int, __int64, __int64, int))sub_18010EC90;\n        v17 = sub_180110EC0;\n      }\n      if ( !v16 )\n        v15 = v17;\nLABEL_22:\n      *((_QWORD *)i - 10) = v15;\n      v18 = *(_QWORD *)(a1 + 40);\n      v25 = 0;\n      result = (*(__int64 (__fastcall **)(__int64, unsigned int *))(v18 + 24))(a1, &v25);\n      if ( (_DWORD)result )\n        return result;\n      v21 = i - 7;\n      sub_18010DF80(*(unsigned int *)v2, v20, v25, v2[2], v2[3], (float *)i - 7);\n      if ( v12 )\n      {\n        v22 = v21[4];\n        *(_OWORD *)(i - 17) = *(_OWORD *)v21;\n        *(i - 13) = v22;\n        *((_OWORD *)i - 3) = 0;\n        *(i - 8) = 0;\n      }\n      else\n      {\n        v23 = *(_QWORD *)(a1 + 40);\n        v26 = 0;\n        result = (*(__int64 (__fastcall **)(__int64, int *))(v23 + 32))(a1, &v26);\n        if ( (_DWORD)result )\n          return result;\n        v24 = (float)v26;\n        *((float *)i - 12) = (float)(*(float *)v21 - *((float *)i - 17)) / (float)v26;\n        *((float *)i - 11) = (float)(*((float *)i - 6) - *((float *)i - 16)) / v24;\n        *((float *)i - 10) = (float)(*((float *)i - 5) - *((float *)i - 15)) / v24;\n        *((float *)i - 9) = (float)(*((float *)i - 4) - *((float *)i - 14)) / v24;\n        *((float *)i - 8) = (float)(*((float *)i - 3) - *((float *)i - 13)) / v24;\n      }\n    }\n    ++v5;\n    v2 += 5;\n    if ( v5 >= 5 )\n      return 0;\n  }\n  return 38;\n}", "assembly": "; \n; sub_180110050 from 0x180110050 to 0x180110289 (569 bytes)\n; \n; 2 xrefs:\n; > sub_18010E650 @ 0x18010e6f5\n; > <???> @ 0x180201b44\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\npush    rbx                                                            ; +0x0, 0x180110050\npush    rbp                                                            ; +0x2, 0x180110052\npush    rsi                                                            ; +0x3, 0x180110053\npush    rdi                                                            ; +0x4, 0x180110054\npush    r12                                                            ; +0x5, 0x180110055\npush    r13                                                            ; +0x7, 0x180110057\npush    r15                                                            ; +0x9, 0x180110059\nsub     rsp, 30h                                                       ; +0xb, 0x18011005b\nmov     rdi, [rcx+8]                                                   ; +0xf, 0x18011005f\nlea     rsi, sub_180110E70                                             ; +0x13, 0x180110063\nxor     r13d, r13d                                                     ; +0x1a, 0x18011006a\nmov     [rsp+68h+arg_8], r14                                           ; +0x1d, 0x18011006d\nmov     r12d, edx                                                      ; +0x22, 0x180110072\nmov     rbp, rcx                                                       ; +0x25, 0x180110075\nmov     r15d, r13d                                                     ; +0x28, 0x180110078\nlea     rbx, [rdi+0B8h]                                                ; +0x2b, 0x18011007b\ncmp     [rbx-8], r12d                                                  ; +0x32, 0x180110082\njz      short loc_1801100CB                                            ; +0x36, 0x180110086\nmov     r9, [rbx]                                                      ; +0x38, 0x180110088\nmov     ecx, r12d                                                      ; +0x3b, 0x18011008b\nmov     [rbx-8], r12d                                                  ; +0x3e, 0x18011008e\ntest    r9, r9                                                         ; +0x42, 0x180110092\njz      short loc_1801100AD                                            ; +0x45, 0x180110095\nmov     rax, [rbp+28h]                                                 ; +0x47, 0x180110097\nlea     r8, aCBuildagent1Wo_80; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x4b, 0x18011009b\nxor     edx, edx                                                       ; +0x52, 0x1801100a2\nmov     rcx, r9                                                        ; +0x54, 0x1801100a4\ncall    qword ptr [rax+10h]                                            ; +0x57, 0x1801100a7\nmov     ecx, [rbx-8]                                                   ; +0x5a, 0x1801100aa\nmov     rax, [rbp+28h]                                                 ; +0x5d, 0x1801100ad\nlea     r8, aCBuildagent1Wo_80; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x61, 0x1801100b1\nshl     ecx, 5                                                         ; +0x68, 0x1801100b8\nxor     edx, edx                                                       ; +0x6b, 0x1801100bb\ncall    qword ptr [rax]                                                ; +0x6d, 0x1801100bd\nmov     [rbx], rax                                                     ; +0x6f, 0x1801100bf\ntest    rax, rax                                                       ; +0x72, 0x1801100c2\njz      loc_180110282                                                  ; +0x75, 0x1801100c5\nmov     eax, [rbx+8]                                                   ; +0x7b, 0x1801100cb\nmov     ecx, [rdi+10h]                                                 ; +0x7e, 0x1801100ce\ncmp     eax, ecx                                                       ; +0x81, 0x1801100d1\njz      loc_180110257                                                  ; +0x83, 0x1801100d3\ntest    eax, eax                                                       ; +0x89, 0x1801100d9\njz      short loc_1801100E9                                            ; +0x8b, 0x1801100db\nmov     eax, [rdi]                                                     ; +0x8d, 0x1801100dd\ncmp     [rbx-48h], eax                                                 ; +0x8f, 0x1801100df\njnz     short loc_1801100E9                                            ; +0x92, 0x1801100e2\nxor     r14b, r14b                                                     ; +0x94, 0x1801100e4\njmp     short loc_1801100EC                                            ; +0x97, 0x1801100e7\nmov     r14b, 1                                                        ; +0x99, 0x1801100e9\nmov     [rbx+8], ecx                                                   ; +0x9c, 0x1801100ec\nmov     eax, [rdi]                                                     ; +0x9f, 0x1801100ef\nmov     [rbx-48h], eax                                                 ; +0xa1, 0x1801100f1\nmov     eax, [rdi]                                                     ; +0xa4, 0x1801100f4\ncmp     eax, 3                                                         ; +0xa6, 0x1801100f6\njz      short loc_180110139                                            ; +0xa9, 0x1801100f9\ncmp     eax, 6                                                         ; +0xab, 0x1801100fb\njz      short loc_180110139                                            ; +0xae, 0x1801100fe\ncmp     eax, 2                                                         ; +0xb0, 0x180110100\njz      short loc_180110120                                            ; +0xb3, 0x180110103\ncmp     eax, 5                                                         ; +0xb5, 0x180110105\njz      short loc_180110120                                            ; +0xb8, 0x180110108\nxor     ecx, ecx                                                       ; +0xba, 0x18011010a\ncall    sub_1800C0A10                                                  ; +0xbc, 0x18011010c\ntest    eax, eax                                                       ; +0xc1, 0x180110111\nlea     rcx, sub_18010E7A0                                             ; +0xc3, 0x180110113\ncmovnz  rcx, rsi                                                       ; +0xca, 0x18011011a\njmp     short loc_180110154                                            ; +0xce, 0x18011011e\nxor     ecx, ecx                                                       ; +0xd0, 0x180110120\ncall    sub_1800C0A10                                                  ; +0xd2, 0x180110122\ntest    eax, eax                                                       ; +0xd7, 0x180110127\nlea     rcx, sub_18010EC90                                             ; +0xd9, 0x180110129\nlea     rax, sub_180110EC0                                             ; +0xe0, 0x180110130\njmp     short loc_180110150                                            ; +0xe7, 0x180110137\nxor     ecx, ecx                                                       ; +0xe9, 0x180110139\ncall    sub_1800C0A10                                                  ; +0xeb, 0x18011013b\ntest    eax, eax                                                       ; +0xf0, 0x180110140\nlea     rcx, sub_18010F350                                             ; +0xf2, 0x180110142\nlea     rax, sub_180110F10                                             ; +0xf9, 0x180110149\ncmovnz  rcx, rax                                                       ; +0x100, 0x180110150\nmov     [rbx-50h], rcx                                                 ; +0x104, 0x180110154\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x108, 0x180110158\nmov     rax, [rbp+28h]                                                 ; +0x10d, 0x18011015d\nmov     rcx, rbp                                                       ; +0x111, 0x180110161\nmov     [rsp+68h+arg_0], r13d                                          ; +0x114, 0x180110164\ncall    qword ptr [rax+18h]                                            ; +0x119, 0x180110169\ntest    eax, eax                                                       ; +0x11c, 0x18011016c\njnz     loc_18011026E                                                  ; +0x11e, 0x18011016e\nmovss   xmm0, dword ptr [rdi+0Ch]                                      ; +0x124, 0x180110174\nlea     rsi, [rbx-1Ch]                                                 ; +0x129, 0x180110179\nmovss   xmm3, dword ptr [rdi+8]                                        ; +0x12d, 0x18011017d\nmov     r8d, [rsp+68h+arg_0]                                           ; +0x132, 0x180110182\nmovss   xmm1, dword ptr [rdi+4]                                        ; +0x137, 0x180110187\nmov     ecx, [rdi]                                                     ; +0x13c, 0x18011018c\nmov     [rsp+68h+var_40], rsi                                          ; +0x13e, 0x18011018e\nmovss   [rsp+68h+var_48], xmm0                                         ; +0x143, 0x180110193\ncall    sub_18010DF80                                                  ; +0x149, 0x180110199\ntest    r14b, r14b                                                     ; +0x14e, 0x18011019e\njz      short loc_1801101C1                                            ; +0x151, 0x1801101a1\nmovups  xmm0, xmmword ptr [rsi]                                        ; +0x153, 0x1801101a3\nmov     eax, [rsi+10h]                                                 ; +0x156, 0x1801101a6\nmovups  xmmword ptr [rbx-44h], xmm0                                    ; +0x159, 0x1801101a9\nmov     [rbx-34h], eax                                                 ; +0x15d, 0x1801101ad\nxor     eax, eax                                                       ; +0x160, 0x1801101b0\nxorps   xmm0, xmm0                                                     ; +0x162, 0x1801101b2\nmovups  xmmword ptr [rbx-30h], xmm0                                    ; +0x165, 0x1801101b5\nmov     [rbx-20h], eax                                                 ; +0x169, 0x1801101b9\njmp     loc_180110250                                                  ; +0x16c, 0x1801101bc\nmov     rax, [rbp+28h]                                                 ; +0x171, 0x1801101c1\nlea     rdx, [rsp+68h+arg_10]                                          ; +0x175, 0x1801101c5\nmov     rcx, rbp                                                       ; +0x17d, 0x1801101cd\nmov     [rsp+68h+arg_10], r13d                                         ; +0x180, 0x1801101d0\ncall    qword ptr [rax+20h]                                            ; +0x188, 0x1801101d8\ntest    eax, eax                                                       ; +0x18b, 0x1801101db\njnz     loc_18011026E                                                  ; +0x18d, 0x1801101dd\nmovss   xmm0, dword ptr [rsi]                                          ; +0x193, 0x1801101e3\nxorps   xmm2, xmm2                                                     ; +0x197, 0x1801101e7\nsubss   xmm0, dword ptr [rbx-44h]                                      ; +0x19a, 0x1801101ea\nmov     eax, [rsp+68h+arg_10]                                          ; +0x19f, 0x1801101ef\ncvtsi2ss xmm2, rax                                                     ; +0x1a6, 0x1801101f6\ndivss   xmm0, xmm2                                                     ; +0x1ab, 0x1801101fb\nmovss   dword ptr [rbx-30h], xmm0                                      ; +0x1af, 0x1801101ff\nmovss   xmm1, dword ptr [rbx-18h]                                      ; +0x1b4, 0x180110204\nsubss   xmm1, dword ptr [rbx-40h]                                      ; +0x1b9, 0x180110209\ndivss   xmm1, xmm2                                                     ; +0x1be, 0x18011020e\nmovss   dword ptr [rbx-2Ch], xmm1                                      ; +0x1c2, 0x180110212\nmovss   xmm0, dword ptr [rbx-14h]                                      ; +0x1c7, 0x180110217\nsubss   xmm0, dword ptr [rbx-3Ch]                                      ; +0x1cc, 0x18011021c\ndivss   xmm0, xmm2                                                     ; +0x1d1, 0x180110221\nmovss   dword ptr [rbx-28h], xmm0                                      ; +0x1d5, 0x180110225\nmovss   xmm1, dword ptr [rbx-10h]                                      ; +0x1da, 0x18011022a\nsubss   xmm1, dword ptr [rbx-38h]                                      ; +0x1df, 0x18011022f\ndivss   xmm1, xmm2                                                     ; +0x1e4, 0x180110234\nmovss   dword ptr [rbx-24h], xmm1                                      ; +0x1e8, 0x180110238\nmovss   xmm0, dword ptr [rbx-0Ch]                                      ; +0x1ed, 0x18011023d\nsubss   xmm0, dword ptr [rbx-34h]                                      ; +0x1f2, 0x180110242\ndivss   xmm0, xmm2                                                     ; +0x1f7, 0x180110247\nmovss   dword ptr [rbx-20h], xmm0                                      ; +0x1fb, 0x18011024b\nlea     rsi, sub_180110E70                                             ; +0x200, 0x180110250\ninc     r15                                                            ; +0x207, 0x180110257\nadd     rdi, 14h                                                       ; +0x20a, 0x18011025a\nadd     rbx, 60h ; '`'                                                 ; +0x20e, 0x18011025e\ncmp     r15, 5                                                         ; +0x212, 0x180110262\njl      loc_180110082                                                  ; +0x216, 0x180110266\nxor     eax, eax                                                       ; +0x21c, 0x18011026c\nmov     r14, [rsp+68h+arg_8]                                           ; +0x21e, 0x18011026e\nadd     rsp, 30h                                                       ; +0x223, 0x180110273\npop     r15                                                            ; +0x227, 0x180110277\npop     r13                                                            ; +0x229, 0x180110279\npop     r12                                                            ; +0x22b, 0x18011027b\npop     rdi                                                            ; +0x22d, 0x18011027d\npop     rsi                                                            ; +0x22e, 0x18011027e\npop     rbp                                                            ; +0x22f, 0x18011027f\npop     rbx                                                            ; +0x230, 0x180110280\nretn                                                                   ; +0x231, 0x180110281\nmov     eax, 26h ; '&'                                                 ; +0x232, 0x180110282\njmp     short loc_18011026E                                            ; +0x237, 0x180110287", "xrefs": ["sub_18010E650 @ 0x18010e6f5", "<???> @ 0x180201b44"], "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"}