{"type": "func", "start": 6442752128, "end": 6442753396, "name": "sub_180049880", "pseudocode": "// \n// sub_180049880 from 0x180049880 to 0x180049d74 (1268 bytes)\n// \n// 2 xrefs:\n// > sub_18004F2D0 @ 0x18004f326\n// > <???> @ 0x1801f8454\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_180049880(__int64 a1, __int64 a2, __int64 a3, int a4)\n{\n  int v5; // ebp\n  __int64 v8; // r15\n  __int64 v9; // rbp\n  int v10; // esi\n  int v11; // eax\n  int v12; // edx\n  int v13; // ebx\n  int v14; // r15d\n  int v15; // edx\n  int v16; // edx\n  unsigned int v17; // edx\n  unsigned int v18; // r8d\n  unsigned int v19; // edx\n  unsigned int v20; // edx\n  unsigned int v21; // ecx\n  unsigned int v22; // r9d\n  __int64 v23; // r10\n  unsigned int v24; // r8d\n  __int64 v25; // rcx\n  unsigned int v26; // eax\n  unsigned int v27; // eax\n  float *v28; // r8\n  int j; // eax\n  float v30; // xmm0_4\n  int v32; // r15d\n  int v33; // eax\n  int v34; // edx\n  int v35; // ebx\n  int v36; // ebp\n  int v37; // edx\n  int i; // edx\n  unsigned int v39; // edx\n  unsigned int v40; // r8d\n  unsigned int v41; // edx\n  unsigned int v42; // edx\n  unsigned int v43; // ecx\n  unsigned int v44; // r9d\n  __int64 v45; // r10\n  unsigned int v46; // r8d\n  __int64 v47; // rcx\n  unsigned int v48; // eax\n  unsigned int v49; // eax\n  int v50; // edx\n  __int64 v51; // r10\n  __int64 v52; // r8\n  __int64 v53; // r9\n  __int64 v54; // rax\n  __int64 v55; // rcx\n  float v56; // xmm0_4\n  __int64 v57; // rcx\n  float v58; // xmm0_4\n  __int64 v59; // rcx\n  float v60; // xmm0_4\n  __int64 v61; // rcx\n  float v62; // xmm0_4\n  __int64 v63; // rcx\n  __int64 v64; // rcx\n  __int64 v65; // rax\n  __int64 v66; // rcx\n  __int64 v67; // [rsp+60h] [rbp+8h]\n\n  v5 = a4;\n  if ( *(int *)(a1 + 8) <= 0 )\n    return 0;\n  if ( *(int *)a1 <= 8 )\n  {\n    v32 = 0;\n    if ( a4 <= 0 )\n      return 0;\n    while ( 1 )\n    {\n      v10 = *(_DWORD *)(a1 + 68);\n      v33 = sub_180048130(a3, *(_DWORD *)(a1 + 64));\n      if ( v33 < 0 )\n        break;\n      v34 = *(_DWORD *)(*(_QWORD *)(a1 + 56) + 4LL * v33);\n      if ( v34 < 0 )\n      {\n        v35 = (v34 >> 15) & 0x7FFF;\n        v36 = *(_DWORD *)(a1 + 8) - (*(_DWORD *)(*(_QWORD *)(a1 + 56) + 4LL * v33) & 0x7FFF);\nLABEL_33:\n        for ( i = sub_180048130(a3, v10); i < 0; i = sub_180048130(a3, v10) )\n        {\n          if ( v10 <= 1 )\n            return 0xFFFFFFFFLL;\n          --v10;\n        }\n        v39 = __ROL4__(i, 16);\n        v40 = v36 - v35;\n        v41 = (v39 << 8) ^ ((v39 << 8) ^ (v39 >> 8)) & 0xFF00FF;\n        v42 = (16 * v41) ^ ((16 * v41) ^ (v41 >> 4)) & 0xF0F0F0F;\n        v43 = (4 * v42) ^ ((4 * v42) ^ (v42 >> 2)) & 0x33333333;\n        v44 = (2 * v43) ^ ((2 * v43) ^ (v43 >> 1)) & 0x55555555;\n        if ( v36 - v35 > 1 )\n        {\n          v45 = *(_QWORD *)(a1 + 32);\n          do\n          {\n            v46 = v40 >> 1;\n            v47 = (int)(v46 + v35);\n            v48 = v46;\n            if ( *(_DWORD *)(v45 + 4 * v47) > v44 )\n              v48 = 0;\n            v35 += v48;\n            v49 = 0;\n            if ( *(_DWORD *)(v45 + 4 * v47) > v44 )\n              v49 = v46;\n            v36 -= v49;\n            v40 = v36 - v35;\n          }\n          while ( v36 - v35 > 1 );\n        }\n        v37 = *(char *)(*(_QWORD *)(a1 + 48) + v35);\n        if ( v37 > v10 )\n        {\nLABEL_57:\n          sub_1800480B0(a3, v10);\n          return 0xFFFFFFFFLL;\n        }\n        v5 = a4;\n        goto LABEL_45;\n      }\n      v35 = v34 - 1;\n      v37 = *(char *)(*(_QWORD *)(a1 + 48) + v34 - 1);\nLABEL_45:\n      sub_1800480B0(a3, v37);\n      if ( v35 == -1 )\n        return 0xFFFFFFFFLL;\n      v50 = 0;\n      v51 = *(_QWORD *)(a1 + 24);\n      v52 = 0;\n      v53 = v35 * *(_DWORD *)a1;\n      switch ( *(_DWORD *)a1 )\n      {\n        case 1:\n          goto LABEL_54;\n        case 2:\n          goto LABEL_53;\n        case 3:\n          goto LABEL_52;\n        case 4:\n          goto LABEL_51;\n        case 5:\n          goto LABEL_50;\n        case 6:\n          goto LABEL_49;\n        case 7:\n          goto LABEL_48;\n        case 8:\n          v50 = 1;\n          v54 = v32;\n          v52 = 1;\n          ++v32;\n          *(float *)(a2 + 4 * v54) = *(float *)(v51 + 4 * v53) + *(float *)(a2 + 4 * v54);\nLABEL_48:\n          v55 = v32;\n          v56 = *(float *)(v51 + 4 * (v53 + v52));\n          ++v50;\n          ++v52;\n          ++v32;\n          *(float *)(a2 + 4 * v55) = v56 + *(float *)(a2 + 4 * v55);\nLABEL_49:\n          v57 = v32;\n          v58 = *(float *)(v51 + 4 * (v53 + v52));\n          ++v50;\n          ++v52;\n          ++v32;\n          *(float *)(a2 + 4 * v57) = v58 + *(float *)(a2 + 4 * v57);\nLABEL_50:\n          v59 = v32;\n          v60 = *(float *)(v51 + 4 * (v53 + v52));\n          ++v50;\n          ++v52;\n          ++v32;\n          *(float *)(a2 + 4 * v59) = v60 + *(float *)(a2 + 4 * v59);\nLABEL_51:\n          v61 = v32;\n          v62 = *(float *)(v51 + 4 * (v53 + v52));\n          ++v50;\n          ++v52;\n          ++v32;\n          *(float *)(a2 + 4 * v61) = v62 + *(float *)(a2 + 4 * v61);\nLABEL_52:\n          v63 = v32;\n          ++v50;\n          ++v32;\n          *(float *)(a2 + 4 * v63) = *(float *)(v51 + 4 * (v53 + v52)) + *(float *)(a2 + 4 * v63);\nLABEL_53:\n          v64 = v32;\n          v65 = v50++;\n          ++v32;\n          *(float *)(a2 + 4 * v64) = *(float *)(v51 + 4 * (v53 + v65)) + *(float *)(a2 + 4 * v64);\nLABEL_54:\n          v66 = v32++;\n          *(float *)(a2 + 4 * v66) = *(float *)(v51 + 4 * (v53 + v50)) + *(float *)(a2 + 4 * v66);\n          break;\n        default:\n          break;\n      }\n      if ( v32 >= v5 )\n        return 0;\n    }\n    v36 = *(_DWORD *)(a1 + 8);\n    v35 = 0;\n    goto LABEL_33;\n  }\n  if ( a4 <= 0 )\n    return 0;\n  v67 = a4;\n  v8 = a4;\n  v9 = 0;\n  while ( 1 )\n  {\n    v10 = *(_DWORD *)(a1 + 68);\n    v11 = sub_180048130(a3, *(_DWORD *)(a1 + 64));\n    if ( v11 < 0 )\n      break;\n    v12 = *(_DWORD *)(*(_QWORD *)(a1 + 56) + 4LL * v11);\n    if ( v12 < 0 )\n    {\n      v13 = (v12 >> 15) & 0x7FFF;\n      v14 = *(_DWORD *)(a1 + 8) - (*(_DWORD *)(*(_QWORD *)(a1 + 56) + 4LL * v11) & 0x7FFF);\n      goto LABEL_10;\n    }\n    v13 = v12 - 1;\n    v15 = *(char *)(*(_QWORD *)(a1 + 48) + v12 - 1);\nLABEL_22:\n    sub_1800480B0(a3, v15);\n    if ( v13 == -1 )\n      return 0xFFFFFFFFLL;\n    v28 = (float *)(*(_QWORD *)(a1 + 24) + 4LL * v13 * *(_DWORD *)a1);\n    for ( j = 0; j < *(_DWORD *)a1; ++v9 )\n    {\n      ++j;\n      v30 = *(float *)(a2 + 4 * v9) + *v28++;\n      *(float *)(a2 + 4 * v9) = v30;\n    }\n    if ( v9 >= v8 )\n      return 0;\n  }\n  v14 = *(_DWORD *)(a1 + 8);\n  v13 = 0;\nLABEL_10:\n  v16 = sub_180048130(a3, v10);\n  if ( v16 >= 0 )\n  {\nLABEL_13:\n    v17 = __ROL4__(v16, 16);\n    v18 = v14 - v13;\n    v19 = (v17 << 8) ^ ((v17 << 8) ^ (v17 >> 8)) & 0xFF00FF;\n    v20 = (16 * v19) ^ ((16 * v19) ^ (v19 >> 4)) & 0xF0F0F0F;\n    v21 = (4 * v20) ^ ((4 * v20) ^ (v20 >> 2)) & 0x33333333;\n    v22 = (2 * v21) ^ ((2 * v21) ^ (v21 >> 1)) & 0x55555555;\n    if ( v14 - v13 > 1 )\n    {\n      v23 = *(_QWORD *)(a1 + 32);\n      do\n      {\n        v24 = v18 >> 1;\n        v25 = (int)(v24 + v13);\n        v26 = v24;\n        if ( *(_DWORD *)(v23 + 4 * v25) > v22 )\n          v26 = 0;\n        v13 += v26;\n        v27 = 0;\n        if ( *(_DWORD *)(v23 + 4 * v25) > v22 )\n          v27 = v24;\n        v14 -= v27;\n        v18 = v14 - v13;\n      }\n      while ( v14 - v13 > 1 );\n    }\n    v15 = *(char *)(*(_QWORD *)(a1 + 48) + v13);\n    if ( v15 > v10 )\n      goto LABEL_57;\n    v8 = v67;\n    goto LABEL_22;\n  }\n  while ( v10 > 1 )\n  {\n    v16 = sub_180048130(a3, --v10);\n    if ( v16 >= 0 )\n      goto LABEL_13;\n  }\n  return 0xFFFFFFFFLL;\n}", "assembly": "; \n; sub_180049880 from 0x180049880 to 0x180049d74 (1268 bytes)\n; \n; 2 xrefs:\n; > sub_18004F2D0 @ 0x18004f326\n; > <???> @ 0x1801f8454\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_8], rbx                                               ; +0x0, 0x180049880\nmov     [rsp+arg_18], r9d                                              ; +0x5, 0x180049885\npush    rbp                                                            ; +0xa, 0x18004988a\npush    rsi                                                            ; +0xb, 0x18004988b\npush    rdi                                                            ; +0xc, 0x18004988c\npush    r12                                                            ; +0xd, 0x18004988d\npush    r13                                                            ; +0xf, 0x18004988f\npush    r14                                                            ; +0x11, 0x180049891\npush    r15                                                            ; +0x13, 0x180049893\nsub     rsp, 20h                                                       ; +0x15, 0x180049895\ncmp     dword ptr [rcx+8], 0                                           ; +0x19, 0x180049899\nmov     r12, r8                                                        ; +0x1d, 0x18004989d\nmovsxd  rbp, r9d                                                       ; +0x20, 0x1800498a0\nmov     r13, rdx                                                       ; +0x23, 0x1800498a3\nmov     rdi, rcx                                                       ; +0x26, 0x1800498a6\njle     loc_180049A79                                                  ; +0x29, 0x1800498a9\ncmp     dword ptr [rcx], 8                                             ; +0x2f, 0x1800498af\njle     loc_180049A90                                                  ; +0x32, 0x1800498b2\ntest    r9d, r9d                                                       ; +0x38, 0x1800498b8\njle     loc_180049A79                                                  ; +0x3b, 0x1800498bb\nxor     r14d, r14d                                                     ; +0x41, 0x1800498c1\nmov     [rsp+58h+arg_0], rbp                                           ; +0x44, 0x1800498c4\nmov     r15, rbp                                                       ; +0x49, 0x1800498c9\nmov     ebp, r14d                                                      ; +0x4c, 0x1800498cc\nnop                                                                    ; +0x4f, 0x1800498cf\nmov     edx, [rdi+40h]                                                 ; +0x50, 0x1800498d0\nmov     rcx, r12                                                       ; +0x53, 0x1800498d3\nmov     esi, [rdi+44h]                                                 ; +0x56, 0x1800498d6\ncall    sub_180048130                                                  ; +0x59, 0x1800498d9\ntest    eax, eax                                                       ; +0x5e, 0x1800498de\njs      short loc_18004991D                                            ; +0x60, 0x1800498e0\nmovsxd  rcx, eax                                                       ; +0x62, 0x1800498e2\nmov     rax, [rdi+38h]                                                 ; +0x65, 0x1800498e5\nmov     edx, [rax+rcx*4]                                               ; +0x69, 0x1800498e9\ntest    edx, edx                                                       ; +0x6c, 0x1800498ec\njns     short loc_18004990A                                            ; +0x6e, 0x1800498ee\nmov     r15d, [rdi+8]                                                  ; +0x70, 0x1800498f0\nmov     ebx, edx                                                       ; +0x74, 0x1800498f4\nsar     ebx, 0Fh                                                       ; +0x76, 0x1800498f6\nand     edx, 7FFFh                                                     ; +0x79, 0x1800498f9\nand     ebx, 7FFFh                                                     ; +0x7f, 0x1800498ff\nsub     r15d, edx                                                      ; +0x85, 0x180049905\njmp     short loc_180049924                                            ; +0x88, 0x180049908\nmov     rax, [rdi+30h]                                                 ; +0x8a, 0x18004990a\nlea     ebx, [rdx-1]                                                   ; +0x8e, 0x18004990e\nmovsxd  rcx, ebx                                                       ; +0x91, 0x180049911\nmovsx   edx, byte ptr [rax+rcx]                                        ; +0x94, 0x180049914\njmp     loc_180049A19                                                  ; +0x98, 0x180049918\nmov     r15d, [rdi+8]                                                  ; +0x9d, 0x18004991d\nmov     ebx, r14d                                                      ; +0xa1, 0x180049921\nmov     edx, esi                                                       ; +0xa4, 0x180049924\nmov     rcx, r12                                                       ; +0xa6, 0x180049926\ncall    sub_180048130                                                  ; +0xa9, 0x180049929\nmov     edx, eax                                                       ; +0xae, 0x18004992e\ntest    eax, eax                                                       ; +0xb0, 0x180049930\njns     short loc_18004994F                                            ; +0xb2, 0x180049932\ncmp     esi, 1                                                         ; +0xb4, 0x180049934\njle     loc_180049D48                                                  ; +0xb7, 0x180049937\ndec     esi                                                            ; +0xbd, 0x18004993d\nmov     rcx, r12                                                       ; +0xbf, 0x18004993f\nmov     edx, esi                                                       ; +0xc2, 0x180049942\ncall    sub_180048130                                                  ; +0xc4, 0x180049944\nmov     edx, eax                                                       ; +0xc9, 0x180049949\ntest    eax, eax                                                       ; +0xcb, 0x18004994b\njs      short loc_180049934                                            ; +0xcd, 0x18004994d\nrol     edx, 10h                                                       ; +0xcf, 0x18004994f\nmov     r8d, r15d                                                      ; +0xd2, 0x180049952\nmov     ecx, edx                                                       ; +0xd5, 0x180049955\nmov     eax, edx                                                       ; +0xd7, 0x180049957\nshr     ecx, 8                                                         ; +0xd9, 0x180049959\nsub     r8d, ebx                                                       ; +0xdc, 0x18004995c\nshl     eax, 8                                                         ; +0xdf, 0x18004995f\nxor     ecx, eax                                                       ; +0xe2, 0x180049962\nshl     edx, 8                                                         ; +0xe4, 0x180049964\nand     ecx, 0FF00FFh                                                  ; +0xe7, 0x180049967\nxor     ecx, edx                                                       ; +0xed, 0x18004996d\nmov     edx, ecx                                                       ; +0xef, 0x18004996f\nmov     eax, ecx                                                       ; +0xf1, 0x180049971\nshl     ecx, 4                                                         ; +0xf3, 0x180049973\nshl     eax, 4                                                         ; +0xf6, 0x180049976\nshr     edx, 4                                                         ; +0xf9, 0x180049979\nxor     edx, eax                                                       ; +0xfc, 0x18004997c\nand     edx, 0F0F0F0Fh                                                 ; +0xfe, 0x18004997e\nxor     edx, ecx                                                       ; +0x104, 0x180049984\nmov     ecx, edx                                                       ; +0x106, 0x180049986\nshr     ecx, 2                                                         ; +0x108, 0x180049988\nlea     eax, ds:0[rdx*4]                                               ; +0x10b, 0x18004998b\nxor     ecx, eax                                                       ; +0x112, 0x180049992\nlea     eax, ds:0[rdx*4]                                               ; +0x114, 0x180049994\nand     ecx, 33333333h                                                 ; +0x11b, 0x18004999b\nxor     ecx, eax                                                       ; +0x121, 0x1800499a1\nmov     r9d, ecx                                                       ; +0x123, 0x1800499a3\nshr     r9d, 1                                                         ; +0x126, 0x1800499a6\nlea     eax, [rcx+rcx]                                                 ; +0x129, 0x1800499a9\nxor     r9d, eax                                                       ; +0x12c, 0x1800499ac\nlea     eax, [rcx+rcx]                                                 ; +0x12f, 0x1800499af\nand     r9d, 55555555h                                                 ; +0x132, 0x1800499b2\nxor     r9d, eax                                                       ; +0x139, 0x1800499b9\ncmp     r8d, 1                                                         ; +0x13c, 0x1800499bc\njle     short loc_180049A01                                            ; +0x140, 0x1800499c0\nmov     r10, [rdi+20h]                                                 ; +0x142, 0x1800499c2\nnop     word ptr [rax+rax+00000000h]                                   ; +0x146, 0x1800499c6\nshr     r8d, 1                                                         ; +0x150, 0x1800499d0\nlea     eax, [r8+rbx]                                                  ; +0x153, 0x1800499d3\nmovsxd  rcx, eax                                                       ; +0x157, 0x1800499d7\nmov     eax, r8d                                                       ; +0x15a, 0x1800499da\ncmp     [r10+rcx*4], r9d                                               ; +0x15d, 0x1800499dd\ncmova   eax, r14d                                                      ; +0x161, 0x1800499e1\nadd     ebx, eax                                                       ; +0x165, 0x1800499e5\nmov     eax, r14d                                                      ; +0x167, 0x1800499e7\ncmp     [r10+rcx*4], r9d                                               ; +0x16a, 0x1800499ea\ncmova   eax, r8d                                                       ; +0x16e, 0x1800499ee\nsub     r15d, eax                                                      ; +0x172, 0x1800499f2\nmov     r8d, r15d                                                      ; +0x175, 0x1800499f5\nsub     r8d, ebx                                                       ; +0x178, 0x1800499f8\ncmp     r8d, 1                                                         ; +0x17b, 0x1800499fb\njg      short loc_1800499D0                                            ; +0x17f, 0x1800499ff\nmov     rax, [rdi+30h]                                                 ; +0x181, 0x180049a01\nmovsxd  rcx, ebx                                                       ; +0x185, 0x180049a05\nmovsx   edx, byte ptr [rax+rcx]                                        ; +0x188, 0x180049a08\ncmp     edx, esi                                                       ; +0x18c, 0x180049a0c\njg      loc_180049D3E                                                  ; +0x18e, 0x180049a0e\nmov     r15, [rsp+58h+arg_0]                                           ; +0x194, 0x180049a14\nmov     rcx, r12                                                       ; +0x199, 0x180049a19\ncall    sub_1800480B0                                                  ; +0x19c, 0x180049a1c\ncmp     ebx, 0FFFFFFFFh                                                ; +0x1a1, 0x180049a21\njz      loc_180049D48                                                  ; +0x1a4, 0x180049a24\nmov     edx, [rdi]                                                     ; +0x1aa, 0x180049a2a\nmov     eax, edx                                                       ; +0x1ac, 0x180049a2c\nimul    eax, ebx                                                       ; +0x1ae, 0x180049a2e\nmovsxd  rcx, eax                                                       ; +0x1b1, 0x180049a31\nmov     rax, [rdi+18h]                                                 ; +0x1b4, 0x180049a34\nlea     r8, [rax+rcx*4]                                                ; +0x1b8, 0x180049a38\nmov     eax, r14d                                                      ; +0x1bc, 0x180049a3c\ntest    edx, edx                                                       ; +0x1bf, 0x180049a3f\njle     short loc_180049A70                                            ; +0x1c1, 0x180049a41\nnop     dword ptr [rax+00h]                                            ; +0x1c3, 0x180049a43\nnop     word ptr [rax+rax+00000000h]                                   ; +0x1c7, 0x180049a47\nmovss   xmm0, dword ptr [r13+rbp*4+0]                                  ; +0x1d0, 0x180049a50\ninc     eax                                                            ; +0x1d7, 0x180049a57\naddss   xmm0, dword ptr [r8]                                           ; +0x1d9, 0x180049a59\nadd     r8, 4                                                          ; +0x1de, 0x180049a5e\nmovss   dword ptr [r13+rbp*4+0], xmm0                                  ; +0x1e2, 0x180049a62\ninc     rbp                                                            ; +0x1e9, 0x180049a69\ncmp     eax, [rdi]                                                     ; +0x1ec, 0x180049a6c\njl      short loc_180049A50                                            ; +0x1ee, 0x180049a6e\ncmp     rbp, r15                                                       ; +0x1f0, 0x180049a70\njl      loc_1800498D0                                                  ; +0x1f3, 0x180049a73\nxor     eax, eax                                                       ; +0x1f9, 0x180049a79\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x1fb, 0x180049a7b\nadd     rsp, 20h                                                       ; +0x200, 0x180049a80\npop     r15                                                            ; +0x204, 0x180049a84\npop     r14                                                            ; +0x206, 0x180049a86\npop     r13                                                            ; +0x208, 0x180049a88\npop     r12                                                            ; +0x20a, 0x180049a8a\npop     rdi                                                            ; +0x20c, 0x180049a8c\npop     rsi                                                            ; +0x20d, 0x180049a8d\npop     rbp                                                            ; +0x20e, 0x180049a8e\nretn                                                                   ; +0x20f, 0x180049a8f\nxor     r14d, r14d                                                     ; +0x210, 0x180049a90\nmov     r15d, r14d                                                     ; +0x213, 0x180049a93\ntest    r9d, r9d                                                       ; +0x216, 0x180049a96\njle     short loc_180049A79                                            ; +0x219, 0x180049a99\nnop     dword ptr [rax+rax+00h]                                        ; +0x21b, 0x180049a9b\nmov     edx, [rdi+40h]                                                 ; +0x220, 0x180049aa0\nmov     rcx, r12                                                       ; +0x223, 0x180049aa3\nmov     esi, [rdi+44h]                                                 ; +0x226, 0x180049aa6\ncall    sub_180048130                                                  ; +0x229, 0x180049aa9\ntest    eax, eax                                                       ; +0x22e, 0x180049aae\njs      short loc_180049AEB                                            ; +0x230, 0x180049ab0\nmovsxd  rcx, eax                                                       ; +0x232, 0x180049ab2\nmov     rax, [rdi+38h]                                                 ; +0x235, 0x180049ab5\nmov     edx, [rax+rcx*4]                                               ; +0x239, 0x180049ab9\ntest    edx, edx                                                       ; +0x23c, 0x180049abc\njns     short loc_180049AD8                                            ; +0x23e, 0x180049abe\nmov     ebp, [rdi+8]                                                   ; +0x240, 0x180049ac0\nmov     ebx, edx                                                       ; +0x243, 0x180049ac3\nsar     ebx, 0Fh                                                       ; +0x245, 0x180049ac5\nand     edx, 7FFFh                                                     ; +0x248, 0x180049ac8\nand     ebx, 7FFFh                                                     ; +0x24e, 0x180049ace\nsub     ebp, edx                                                       ; +0x254, 0x180049ad4\njmp     short loc_180049AF1                                            ; +0x256, 0x180049ad6\nmov     rax, [rdi+30h]                                                 ; +0x258, 0x180049ad8\nlea     ebx, [rdx-1]                                                   ; +0x25c, 0x180049adc\nmovsxd  rcx, ebx                                                       ; +0x25f, 0x180049adf\nmovsx   edx, byte ptr [rax+rcx]                                        ; +0x262, 0x180049ae2\njmp     loc_180049BDA                                                  ; +0x266, 0x180049ae6\nmov     ebp, [rdi+8]                                                   ; +0x26b, 0x180049aeb\nmov     ebx, r14d                                                      ; +0x26e, 0x180049aee\nmov     edx, esi                                                       ; +0x271, 0x180049af1\nmov     rcx, r12                                                       ; +0x273, 0x180049af3\ncall    sub_180048130                                                  ; +0x276, 0x180049af6\nmov     edx, eax                                                       ; +0x27b, 0x180049afb\ntest    eax, eax                                                       ; +0x27d, 0x180049afd\njns     short loc_180049B1C                                            ; +0x27f, 0x180049aff\ncmp     esi, 1                                                         ; +0x281, 0x180049b01\njle     loc_180049D48                                                  ; +0x284, 0x180049b04\ndec     esi                                                            ; +0x28a, 0x180049b0a\nmov     rcx, r12                                                       ; +0x28c, 0x180049b0c\nmov     edx, esi                                                       ; +0x28f, 0x180049b0f\ncall    sub_180048130                                                  ; +0x291, 0x180049b11\nmov     edx, eax                                                       ; +0x296, 0x180049b16\ntest    eax, eax                                                       ; +0x298, 0x180049b18\njs      short loc_180049B01                                            ; +0x29a, 0x180049b1a\nrol     edx, 10h                                                       ; +0x29c, 0x180049b1c\nmov     r8d, ebp                                                       ; +0x29f, 0x180049b1f\nmov     ecx, edx                                                       ; +0x2a2, 0x180049b22\nmov     eax, edx                                                       ; +0x2a4, 0x180049b24\nshr     ecx, 8                                                         ; +0x2a6, 0x180049b26\nsub     r8d, ebx                                                       ; +0x2a9, 0x180049b29\nshl     eax, 8                                                         ; +0x2ac, 0x180049b2c\nxor     ecx, eax                                                       ; +0x2af, 0x180049b2f\nshl     edx, 8                                                         ; +0x2b1, 0x180049b31\nand     ecx, 0FF00FFh                                                  ; +0x2b4, 0x180049b34\nxor     ecx, edx                                                       ; +0x2ba, 0x180049b3a\nmov     edx, ecx                                                       ; +0x2bc, 0x180049b3c\nmov     eax, ecx                                                       ; +0x2be, 0x180049b3e\nshl     ecx, 4                                                         ; +0x2c0, 0x180049b40\nshl     eax, 4                                                         ; +0x2c3, 0x180049b43\nshr     edx, 4                                                         ; +0x2c6, 0x180049b46\nxor     edx, eax                                                       ; +0x2c9, 0x180049b49\nand     edx, 0F0F0F0Fh                                                 ; +0x2cb, 0x180049b4b\nxor     edx, ecx                                                       ; +0x2d1, 0x180049b51\nmov     ecx, edx                                                       ; +0x2d3, 0x180049b53\nshr     ecx, 2                                                         ; +0x2d5, 0x180049b55\nlea     eax, ds:0[rdx*4]                                               ; +0x2d8, 0x180049b58\nxor     ecx, eax                                                       ; +0x2df, 0x180049b5f\nlea     eax, ds:0[rdx*4]                                               ; +0x2e1, 0x180049b61\nand     ecx, 33333333h                                                 ; +0x2e8, 0x180049b68\nxor     ecx, eax                                                       ; +0x2ee, 0x180049b6e\nmov     r9d, ecx                                                       ; +0x2f0, 0x180049b70\nshr     r9d, 1                                                         ; +0x2f3, 0x180049b73\nlea     eax, [rcx+rcx]                                                 ; +0x2f6, 0x180049b76\nxor     r9d, eax                                                       ; +0x2f9, 0x180049b79\nlea     eax, [rcx+rcx]                                                 ; +0x2fc, 0x180049b7c\nand     r9d, 55555555h                                                 ; +0x2ff, 0x180049b7f\nxor     r9d, eax                                                       ; +0x306, 0x180049b86\ncmp     r8d, 1                                                         ; +0x309, 0x180049b89\njle     short loc_180049BC3                                            ; +0x30d, 0x180049b8d\nmov     r10, [rdi+20h]                                                 ; +0x30f, 0x180049b8f\nshr     r8d, 1                                                         ; +0x313, 0x180049b93\nlea     eax, [r8+rbx]                                                  ; +0x316, 0x180049b96\nmovsxd  rcx, eax                                                       ; +0x31a, 0x180049b9a\nmov     eax, r8d                                                       ; +0x31d, 0x180049b9d\ncmp     [r10+rcx*4], r9d                                               ; +0x320, 0x180049ba0\ncmova   eax, r14d                                                      ; +0x324, 0x180049ba4\nadd     ebx, eax                                                       ; +0x328, 0x180049ba8\nmov     eax, r14d                                                      ; +0x32a, 0x180049baa\ncmp     [r10+rcx*4], r9d                                               ; +0x32d, 0x180049bad\ncmova   eax, r8d                                                       ; +0x331, 0x180049bb1\nsub     ebp, eax                                                       ; +0x335, 0x180049bb5\nmov     r8d, ebp                                                       ; +0x337, 0x180049bb7\nsub     r8d, ebx                                                       ; +0x33a, 0x180049bba\ncmp     r8d, 1                                                         ; +0x33d, 0x180049bbd\njg      short loc_180049B93                                            ; +0x341, 0x180049bc1\nmov     rax, [rdi+30h]                                                 ; +0x343, 0x180049bc3\nmovsxd  rcx, ebx                                                       ; +0x347, 0x180049bc7\nmovsx   edx, byte ptr [rax+rcx]                                        ; +0x34a, 0x180049bca\ncmp     edx, esi                                                       ; +0x34e, 0x180049bce\njg      loc_180049D3E                                                  ; +0x350, 0x180049bd0\nmov     ebp, [rsp+58h+arg_18]                                          ; +0x356, 0x180049bd6\nmov     rcx, r12                                                       ; +0x35a, 0x180049bda\ncall    sub_1800480B0                                                  ; +0x35d, 0x180049bdd\ncmp     ebx, 0FFFFFFFFh                                                ; +0x362, 0x180049be2\njz      loc_180049D48                                                  ; +0x365, 0x180049be5\nmov     ecx, [rdi]                                                     ; +0x36b, 0x180049beb\nmov     edx, r14d                                                      ; +0x36d, 0x180049bed\nmov     r10, [rdi+18h]                                                 ; +0x370, 0x180049bf0\nmov     eax, ecx                                                       ; +0x374, 0x180049bf4\nimul    eax, ebx                                                       ; +0x376, 0x180049bf6\nmov     r8, r14                                                        ; +0x379, 0x180049bf9\ndec     ecx; switch 8 cases                                            ; +0x37c, 0x180049bfc\nmovsxd  r9, eax                                                        ; +0x37e, 0x180049bfe\ncmp     ecx, 7                                                         ; +0x381, 0x180049c01\nja      def_180049C1E; jumptable 0000000180049C1E default case         ; +0x384, 0x180049c04\nmovsxd  rax, ecx                                                       ; +0x38a, 0x180049c0a\nlea     rbx, cs:180000000h                                             ; +0x38d, 0x180049c0d\nmov     ecx, ds:(jpt_180049C1E - 180000000h)[rbx+rax*4]                ; +0x394, 0x180049c14\nadd     rcx, rbx                                                       ; +0x39b, 0x180049c1b\njmp     rcx; switch jump                                               ; +0x39e, 0x180049c1e\nmovss   xmm0, dword ptr [r10+r9*4]; jumptable 0000000180049C1E case 8  ; +0x3a0, 0x180049c20\nmov     edx, 1                                                         ; +0x3a6, 0x180049c26\nmovsxd  rax, r15d                                                      ; +0x3ab, 0x180049c2b\nmov     r8d, edx                                                       ; +0x3ae, 0x180049c2e\ninc     r15d                                                           ; +0x3b1, 0x180049c31\naddss   xmm0, dword ptr [r13+rax*4+0]                                  ; +0x3b4, 0x180049c34\nmovss   dword ptr [r13+rax*4+0], xmm0                                  ; +0x3bb, 0x180049c3b\nmovsxd  rcx, r15d; jumptable 0000000180049C1E case 7                   ; +0x3c2, 0x180049c42\nlea     rax, [r9+r8]                                                   ; +0x3c5, 0x180049c45\nmovss   xmm0, dword ptr [r10+rax*4]                                    ; +0x3c9, 0x180049c49\ninc     edx                                                            ; +0x3cf, 0x180049c4f\ninc     r8                                                             ; +0x3d1, 0x180049c51\ninc     r15d                                                           ; +0x3d4, 0x180049c54\naddss   xmm0, dword ptr [r13+rcx*4+0]                                  ; +0x3d7, 0x180049c57\nmovss   dword ptr [r13+rcx*4+0], xmm0                                  ; +0x3de, 0x180049c5e\nmovsxd  rcx, r15d; jumptable 0000000180049C1E case 6                   ; +0x3e5, 0x180049c65\nlea     rax, [r9+r8]                                                   ; +0x3e8, 0x180049c68\nmovss   xmm0, dword ptr [r10+rax*4]                                    ; +0x3ec, 0x180049c6c\ninc     edx                                                            ; +0x3f2, 0x180049c72\ninc     r8                                                             ; +0x3f4, 0x180049c74\ninc     r15d                                                           ; +0x3f7, 0x180049c77\naddss   xmm0, dword ptr [r13+rcx*4+0]                                  ; +0x3fa, 0x180049c7a\nmovss   dword ptr [r13+rcx*4+0], xmm0                                  ; +0x401, 0x180049c81\nmovsxd  rcx, r15d; jumptable 0000000180049C1E case 5                   ; +0x408, 0x180049c88\nlea     rax, [r9+r8]                                                   ; +0x40b, 0x180049c8b\nmovss   xmm0, dword ptr [r10+rax*4]                                    ; +0x40f, 0x180049c8f\ninc     edx                                                            ; +0x415, 0x180049c95\ninc     r8                                                             ; +0x417, 0x180049c97\ninc     r15d                                                           ; +0x41a, 0x180049c9a\naddss   xmm0, dword ptr [r13+rcx*4+0]                                  ; +0x41d, 0x180049c9d\nmovss   dword ptr [r13+rcx*4+0], xmm0                                  ; +0x424, 0x180049ca4\nmovsxd  rcx, r15d; jumptable 0000000180049C1E case 4                   ; +0x42b, 0x180049cab\nlea     rax, [r9+r8]                                                   ; +0x42e, 0x180049cae\nmovss   xmm0, dword ptr [r10+rax*4]                                    ; +0x432, 0x180049cb2\ninc     edx                                                            ; +0x438, 0x180049cb8\ninc     r8                                                             ; +0x43a, 0x180049cba\ninc     r15d                                                           ; +0x43d, 0x180049cbd\naddss   xmm0, dword ptr [r13+rcx*4+0]                                  ; +0x440, 0x180049cc0\nmovss   dword ptr [r13+rcx*4+0], xmm0                                  ; +0x447, 0x180049cc7\nmovsxd  rcx, r15d; jumptable 0000000180049C1E case 3                   ; +0x44e, 0x180049cce\nlea     rax, [r9+r8]                                                   ; +0x451, 0x180049cd1\nmovss   xmm0, dword ptr [r10+rax*4]                                    ; +0x455, 0x180049cd5\ninc     edx                                                            ; +0x45b, 0x180049cdb\ninc     r15d                                                           ; +0x45d, 0x180049cdd\naddss   xmm0, dword ptr [r13+rcx*4+0]                                  ; +0x460, 0x180049ce0\nmovss   dword ptr [r13+rcx*4+0], xmm0                                  ; +0x467, 0x180049ce7\nmovsxd  rcx, r15d; jumptable 0000000180049C1E case 2                   ; +0x46e, 0x180049cee\nmovsxd  rax, edx                                                       ; +0x471, 0x180049cf1\ninc     edx                                                            ; +0x474, 0x180049cf4\nadd     rax, r9                                                        ; +0x476, 0x180049cf6\ninc     r15d                                                           ; +0x479, 0x180049cf9\nmovss   xmm0, dword ptr [r10+rax*4]                                    ; +0x47c, 0x180049cfc\naddss   xmm0, dword ptr [r13+rcx*4+0]                                  ; +0x482, 0x180049d02\nmovss   dword ptr [r13+rcx*4+0], xmm0                                  ; +0x489, 0x180049d09\nmovsxd  rcx, r15d; jumptable 0000000180049C1E case 1                   ; +0x490, 0x180049d10\nmovsxd  rax, edx                                                       ; +0x493, 0x180049d13\nadd     rax, r9                                                        ; +0x496, 0x180049d16\ninc     r15d                                                           ; +0x499, 0x180049d19\nmovss   xmm0, dword ptr [r10+rax*4]                                    ; +0x49c, 0x180049d1c\naddss   xmm0, dword ptr [r13+rcx*4+0]                                  ; +0x4a2, 0x180049d22\nmovss   dword ptr [r13+rcx*4+0], xmm0                                  ; +0x4a9, 0x180049d29\ncmp     r15d, ebp; jumptable 0000000180049C1E default case             ; +0x4b0, 0x180049d30\njl      loc_180049AA0                                                  ; +0x4b3, 0x180049d33\njmp     loc_180049A79                                                  ; +0x4b9, 0x180049d39\nmov     edx, esi                                                       ; +0x4be, 0x180049d3e\nmov     rcx, r12                                                       ; +0x4c0, 0x180049d40\ncall    sub_1800480B0                                                  ; +0x4c3, 0x180049d43\nmov     eax, 0FFFFFFFFh                                                ; +0x4c8, 0x180049d48\njmp     loc_180049A7B                                                  ; +0x4cd, 0x180049d4d\nalign 4                                                                ; +0x4d2, 0x180049d52\ndd offset loc_180049D10 - 180000000h; jump table for switch statement  ; +0x4d4, 0x180049d54", "xrefs": ["sub_18004F2D0 @ 0x18004f326", "<???> @ 0x1801f8454"], "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"}