{"type": "func", "start": 6442824992, "end": 6442825500, "name": "sub_18005B520", "pseudocode": "// \n// sub_18005B520 from 0x18005b520 to 0x18005b71c (508 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801ac5b0\n// > <???> @ 0x1801f9024\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\nvoid __fastcall sub_18005B520(__int64 _RCX, __int64 _RDX, unsigned int a3, __int64 _R9, int a5, int a6, int a7)\n{\n  unsigned int i; // eax\n  int j; // r8d\n\n  __asm\n  {\n    vbroadcastss ymm7, dword ptr [r9+300h]\n    vbroadcastss ymm1, dword ptr [r9]\n    vbroadcastss ymm2, dword ptr [r9+80h]\n    vbroadcastss ymm3, dword ptr [r9+100h]\n    vbroadcastss ymm4, dword ptr [r9+180h]\n    vbroadcastss ymm5, dword ptr [r9+200h]\n    vbroadcastss ymm6, dword ptr [r9+280h]\n    vbroadcastss ymm8, dword ptr [r9+380h]\n    vxorps  xmm0, xmm0, xmm0\n    vblendps ymm1, ymm0, ymm1, 1\n    vblendps ymm2, ymm1, ymm2, 2\n    vblendps ymm3, ymm2, ymm3, 4\n    vblendps ymm0, ymm3, ymm4, 8\n    vblendps ymm1, ymm0, ymm5, 10h\n    vblendps ymm2, ymm1, ymm6, 20h ; ' '\n    vblendps ymm3, ymm2, ymm7, 40h ; '@'\n    vblendps ymm7, ymm3, ymm8, 80h\n  }\n  if ( a7 )\n  {\n    for ( ; a3; --a3 )\n    {\n      _RDX += 32;\n      __asm { vbroadcastss ymm0, dword ptr [rcx] }\n      _RCX += 4;\n      __asm\n      {\n        vmulps  ymm1, ymm0, ymm7\n        vmovups ymmword ptr [rdx-20h], ymm1\n      }\n    }\n  }\n  else\n  {\n    for ( i = a3 >> 3; i; --i )\n    {\n      __asm\n      {\n        vmovups ymm0, ymmword ptr [rcx]\n        vperm2f128 ymm2, ymm0, ymm0, 0\n        vperm2f128 ymm6, ymm0, ymm0, 11h\n        vshufps ymm0, ymm2, ymm2, 0\n        vmulps  ymm1, ymm0, ymm7\n        vaddps  ymm5, ymm1, ymmword ptr [rdx]\n        vshufps ymm0, ymm2, ymm2, 55h ; 'U'\n        vmulps  ymm1, ymm0, ymm7\n        vaddps  ymm4, ymm1, ymmword ptr [rdx+20h]\n        vshufps ymm0, ymm2, ymm2, 0AAh\n        vmulps  ymm1, ymm0, ymm7\n        vaddps  ymm3, ymm1, ymmword ptr [rdx+40h]\n        vshufps ymm0, ymm2, ymm2, 0FFh\n        vmulps  ymm1, ymm0, ymm7\n        vaddps  ymm2, ymm1, ymmword ptr [rdx+60h]\n        vmovups ymmword ptr [rdx], ymm5\n        vmovups ymmword ptr [rdx+20h], ymm4\n        vmovups ymmword ptr [rdx+40h], ymm3\n        vmovups ymmword ptr [rdx+60h], ymm2\n        vshufps ymm0, ymm6, ymm6, 0\n        vmulps  ymm1, ymm0, ymm7\n        vaddps  ymm5, ymm1, ymmword ptr [rdx+80h]\n        vshufps ymm0, ymm6, ymm6, 55h ; 'U'\n        vmulps  ymm1, ymm0, ymm7\n        vaddps  ymm4, ymm1, ymmword ptr [rdx+0A0h]\n        vshufps ymm0, ymm6, ymm6, 0AAh\n        vmulps  ymm1, ymm0, ymm7\n        vaddps  ymm3, ymm1, ymmword ptr [rdx+0C0h]\n        vshufps ymm0, ymm6, ymm6, 0FFh\n        vmulps  ymm1, ymm0, ymm7\n        vaddps  ymm2, ymm1, ymmword ptr [rdx+0E0h]\n        vmovups ymmword ptr [rdx+80h], ymm5\n        vmovups ymmword ptr [rdx+0A0h], ymm4\n        vmovups ymmword ptr [rdx+0C0h], ymm3\n        vmovups ymmword ptr [rdx+0E0h], ymm2\n      }\n      _RDX += 256;\n      _RCX += 32;\n    }\n    for ( j = a3 & 7; j; --j )\n    {\n      _RDX += 32;\n      __asm { vbroadcastss ymm0, dword ptr [rcx] }\n      _RCX += 4;\n      __asm\n      {\n        vmulps  ymm1, ymm0, ymm7\n        vaddps  ymm2, ymm1, ymmword ptr [rdx-20h]\n        vmovups ymmword ptr [rdx-20h], ymm2\n      }\n    }\n  }\n  __asm\n  {\n    vzeroupper\n    vmovaps xmm6, [rsp+50h+var_10]\n    vmovaps xmm7, [rsp+50h+var_20]\n    vmovaps xmm8, [rsp+50h+var_30]\n  }\n}", "assembly": "; \n; sub_18005B520 from 0x18005b520 to 0x18005b71c (508 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801ac5b0\n; > <???> @ 0x1801f9024\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    rbp                                                            ; +0x0, 0x18005b520\nsub     rsp, 50h                                                       ; +0x2, 0x18005b522\nvmovaps [rsp+50h+var_10], xmm6                                         ; +0x6, 0x18005b526\nvmovaps [rsp+50h+var_20], xmm7                                         ; +0xc, 0x18005b52c\nvmovaps [rsp+50h+var_30], xmm8                                         ; +0x12, 0x18005b532\nlea     rbp, [rsp+20h]                                                 ; +0x18, 0x18005b538\nand     rbp, 0FFFFFFFFFFFFFFE0h                                        ; +0x1d, 0x18005b53d\ncmp     [rsp+50h+arg_30], 0                                            ; +0x21, 0x18005b541\nvbroadcastss ymm7, dword ptr [r9+300h]                                 ; +0x29, 0x18005b549\nvbroadcastss ymm1, dword ptr [r9]                                      ; +0x32, 0x18005b552\nvbroadcastss ymm2, dword ptr [r9+80h]                                  ; +0x37, 0x18005b557\nvbroadcastss ymm3, dword ptr [r9+100h]                                 ; +0x40, 0x18005b560\nvbroadcastss ymm4, dword ptr [r9+180h]                                 ; +0x49, 0x18005b569\nvbroadcastss ymm5, dword ptr [r9+200h]                                 ; +0x52, 0x18005b572\nvbroadcastss ymm6, dword ptr [r9+280h]                                 ; +0x5b, 0x18005b57b\nvbroadcastss ymm8, dword ptr [r9+380h]                                 ; +0x64, 0x18005b584\nvxorps  xmm0, xmm0, xmm0                                               ; +0x6d, 0x18005b58d\nvblendps ymm1, ymm0, ymm1, 1                                           ; +0x71, 0x18005b591\nvblendps ymm2, ymm1, ymm2, 2                                           ; +0x77, 0x18005b597\nvblendps ymm3, ymm2, ymm3, 4                                           ; +0x7d, 0x18005b59d\nvblendps ymm0, ymm3, ymm4, 8                                           ; +0x83, 0x18005b5a3\nvblendps ymm1, ymm0, ymm5, 10h                                         ; +0x89, 0x18005b5a9\nvblendps ymm2, ymm1, ymm6, 20h ; ' '                                   ; +0x8f, 0x18005b5af\nvblendps ymm3, ymm2, ymm7, 40h ; '@'                                   ; +0x95, 0x18005b5b5\nvblendps ymm7, ymm3, ymm8, 80h                                         ; +0x9b, 0x18005b5bb\njz      short loc_18005B5F1                                            ; +0xa1, 0x18005b5c1\ntest    r8d, r8d                                                       ; +0xa3, 0x18005b5c3\njz      loc_18005B701                                                  ; +0xa6, 0x18005b5c6\nnop     dword ptr [rax+00h]                                            ; +0xac, 0x18005b5cc\nlea     rdx, [rdx+20h]                                                 ; +0xb0, 0x18005b5d0\nvbroadcastss ymm0, dword ptr [rcx]                                     ; +0xb4, 0x18005b5d4\nlea     rcx, [rcx+4]                                                   ; +0xb9, 0x18005b5d9\nvmulps  ymm1, ymm0, ymm7                                               ; +0xbd, 0x18005b5dd\nvmovups ymmword ptr [rdx-20h], ymm1                                    ; +0xc1, 0x18005b5e1\nsub     r8d, 1                                                         ; +0xc6, 0x18005b5e6\njnz     short loc_18005B5D0                                            ; +0xca, 0x18005b5ea\njmp     loc_18005B701                                                  ; +0xcc, 0x18005b5ec\nmov     eax, r8d                                                       ; +0xd1, 0x18005b5f1\nshr     eax, 3                                                         ; +0xd4, 0x18005b5f4\ntest    eax, eax                                                       ; +0xd7, 0x18005b5f7\njz      loc_18005B6D2                                                  ; +0xd9, 0x18005b5f9\nnop                                                                    ; +0xdf, 0x18005b5ff\nvmovups ymm0, ymmword ptr [rcx]                                        ; +0xe0, 0x18005b600\nvperm2f128 ymm2, ymm0, ymm0, 0                                         ; +0xe4, 0x18005b604\nvperm2f128 ymm6, ymm0, ymm0, 11h                                       ; +0xea, 0x18005b60a\nvshufps ymm0, ymm2, ymm2, 0                                            ; +0xf0, 0x18005b610\nvmulps  ymm1, ymm0, ymm7                                               ; +0xf5, 0x18005b615\nvaddps  ymm5, ymm1, ymmword ptr [rdx]                                  ; +0xf9, 0x18005b619\nvshufps ymm0, ymm2, ymm2, 55h ; 'U'                                    ; +0xfd, 0x18005b61d\nvmulps  ymm1, ymm0, ymm7                                               ; +0x102, 0x18005b622\nvaddps  ymm4, ymm1, ymmword ptr [rdx+20h]                              ; +0x106, 0x18005b626\nvshufps ymm0, ymm2, ymm2, 0AAh                                         ; +0x10b, 0x18005b62b\nvmulps  ymm1, ymm0, ymm7                                               ; +0x110, 0x18005b630\nvaddps  ymm3, ymm1, ymmword ptr [rdx+40h]                              ; +0x114, 0x18005b634\nvshufps ymm0, ymm2, ymm2, 0FFh                                         ; +0x119, 0x18005b639\nvmulps  ymm1, ymm0, ymm7                                               ; +0x11e, 0x18005b63e\nvaddps  ymm2, ymm1, ymmword ptr [rdx+60h]                              ; +0x122, 0x18005b642\nvmovups ymmword ptr [rdx], ymm5                                        ; +0x127, 0x18005b647\nvmovups ymmword ptr [rdx+20h], ymm4                                    ; +0x12b, 0x18005b64b\nvmovups ymmword ptr [rdx+40h], ymm3                                    ; +0x130, 0x18005b650\nvmovups ymmword ptr [rdx+60h], ymm2                                    ; +0x135, 0x18005b655\nvshufps ymm0, ymm6, ymm6, 0                                            ; +0x13a, 0x18005b65a\nvmulps  ymm1, ymm0, ymm7                                               ; +0x13f, 0x18005b65f\nvaddps  ymm5, ymm1, ymmword ptr [rdx+80h]                              ; +0x143, 0x18005b663\nvshufps ymm0, ymm6, ymm6, 55h ; 'U'                                    ; +0x14b, 0x18005b66b\nvmulps  ymm1, ymm0, ymm7                                               ; +0x150, 0x18005b670\nvaddps  ymm4, ymm1, ymmword ptr [rdx+0A0h]                             ; +0x154, 0x18005b674\nvshufps ymm0, ymm6, ymm6, 0AAh                                         ; +0x15c, 0x18005b67c\nvmulps  ymm1, ymm0, ymm7                                               ; +0x161, 0x18005b681\nvaddps  ymm3, ymm1, ymmword ptr [rdx+0C0h]                             ; +0x165, 0x18005b685\nvshufps ymm0, ymm6, ymm6, 0FFh                                         ; +0x16d, 0x18005b68d\nvmulps  ymm1, ymm0, ymm7                                               ; +0x172, 0x18005b692\nvaddps  ymm2, ymm1, ymmword ptr [rdx+0E0h]                             ; +0x176, 0x18005b696\nvmovups ymmword ptr [rdx+80h], ymm5                                    ; +0x17e, 0x18005b69e\nvmovups ymmword ptr [rdx+0A0h], ymm4                                   ; +0x186, 0x18005b6a6\nvmovups ymmword ptr [rdx+0C0h], ymm3                                   ; +0x18e, 0x18005b6ae\nvmovups ymmword ptr [rdx+0E0h], ymm2                                   ; +0x196, 0x18005b6b6\nadd     rdx, 100h                                                      ; +0x19e, 0x18005b6be\nadd     rcx, 20h ; ' '                                                 ; +0x1a5, 0x18005b6c5\nsub     eax, 1                                                         ; +0x1a9, 0x18005b6c9\njnz     loc_18005B600                                                  ; +0x1ac, 0x18005b6cc\nand     r8d, 7                                                         ; +0x1b2, 0x18005b6d2\njz      short loc_18005B701                                            ; +0x1b6, 0x18005b6d6\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x1b8, 0x18005b6d8\nlea     rdx, [rdx+20h]                                                 ; +0x1c0, 0x18005b6e0\nvbroadcastss ymm0, dword ptr [rcx]                                     ; +0x1c4, 0x18005b6e4\nlea     rcx, [rcx+4]                                                   ; +0x1c9, 0x18005b6e9\nvmulps  ymm1, ymm0, ymm7                                               ; +0x1cd, 0x18005b6ed\nvaddps  ymm2, ymm1, ymmword ptr [rdx-20h]                              ; +0x1d1, 0x18005b6f1\nvmovups ymmword ptr [rdx-20h], ymm2                                    ; +0x1d6, 0x18005b6f6\nsub     r8d, 1                                                         ; +0x1db, 0x18005b6fb\njnz     short loc_18005B6E0                                            ; +0x1df, 0x18005b6ff\nvzeroupper                                                             ; +0x1e1, 0x18005b701\nvmovaps xmm6, [rsp+50h+var_10]                                         ; +0x1e4, 0x18005b704\nvmovaps xmm7, [rsp+50h+var_20]                                         ; +0x1ea, 0x18005b70a\nvmovaps xmm8, [rsp+50h+var_30]                                         ; +0x1f0, 0x18005b710\nadd     rsp, 50h                                                       ; +0x1f6, 0x18005b716\npop     rbp                                                            ; +0x1fa, 0x18005b71a\nretn                                                                   ; +0x1fb, 0x18005b71b", "xrefs": ["<???> @ 0x1801ac5b0", "<???> @ 0x1801f9024"], "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"}