{"type": "func", "start": 6442820736, "end": 6442820841, "name": "sub_18005A480", "pseudocode": "// \n// sub_18005A480 from 0x18005a480 to 0x18005a4e9 (105 bytes)\n// \n// 7 xrefs:\n// > sub_18005A080 @ 0x18005a214\n// > sub_18005A240 @ 0x18005a2cc\n// > sub_18005A4F0 @ 0x18005a5c7\n// > sub_18005A600 @ 0x18005a63e\n// > sub_180068BC0 @ 0x180068c24\n// > sub_180068D20 @ 0x180068e51\n// > sub_180099C50 @ 0x18009b47a\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_18005A480(__int64 a1)\n{\n  int v1; // r9d\n  __int64 v2; // rdx\n\n  if ( *(_QWORD *)(a1 + 64) )\n  {\n    v1 = 0;\n    if ( *(__int16 *)(a1 + 56) * *(__int16 *)(a1 + 58) > 0 )\n    {\n      v2 = 0;\n      do\n      {\n        v2 += 4;\n        ++v1;\n        *(float *)(v2 + *(_QWORD *)(a1 + 80) - 4) = *(float *)(v2 + *(_QWORD *)(a1 + 64) - 4) * *(float *)(a1 + 104);\n      }\n      while ( v1 < *(__int16 *)(a1 + 56) * *(__int16 *)(a1 + 58) );\n    }\n  }\n  *(_DWORD *)(a1 + 128) = *(_DWORD *)(a1 + 104);\n  *(_DWORD *)(a1 + 108) = 0;\n  return 0;\n}", "assembly": "; \n; sub_18005A480 from 0x18005a480 to 0x18005a4e9 (105 bytes)\n; \n; 7 xrefs:\n; > sub_18005A080 @ 0x18005a214\n; > sub_18005A240 @ 0x18005a2cc\n; > sub_18005A4F0 @ 0x18005a5c7\n; > sub_18005A600 @ 0x18005a63e\n; > sub_180068BC0 @ 0x180068c24\n; > sub_180068D20 @ 0x180068e51\n; > sub_180099C50 @ 0x18009b47a\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\ncmp     qword ptr [rcx+40h], 0                                         ; +0x0, 0x18005a480\nmov     r8, rcx                                                        ; +0x5, 0x18005a485\njz      short loc_18005A4D3                                            ; +0x8, 0x18005a488\nmovsx   edx, word ptr [rcx+3Ah]                                        ; +0xa, 0x18005a48a\nxor     r9d, r9d                                                       ; +0xe, 0x18005a48e\nmovsx   eax, word ptr [rcx+38h]                                        ; +0x11, 0x18005a491\nimul    edx, eax                                                       ; +0x15, 0x18005a495\ntest    edx, edx                                                       ; +0x18, 0x18005a498\njle     short loc_18005A4D3                                            ; +0x1a, 0x18005a49a\nxor     edx, edx                                                       ; +0x1c, 0x18005a49c\nxchg    ax, ax                                                         ; +0x1e, 0x18005a49e\nmov     rax, [r8+40h]                                                  ; +0x20, 0x18005a4a0\nlea     rdx, [rdx+4]                                                   ; +0x24, 0x18005a4a4\ninc     r9d                                                            ; +0x28, 0x18005a4a8\nmovss   xmm0, dword ptr [rdx+rax-4]                                    ; +0x2b, 0x18005a4ab\nmov     rax, [r8+50h]                                                  ; +0x31, 0x18005a4b1\nmulss   xmm0, dword ptr [r8+68h]                                       ; +0x35, 0x18005a4b5\nmovss   dword ptr [rdx+rax-4], xmm0                                    ; +0x3b, 0x18005a4bb\nmovsx   ecx, word ptr [r8+3Ah]                                         ; +0x41, 0x18005a4c1\nmovsx   eax, word ptr [r8+38h]                                         ; +0x46, 0x18005a4c6\nimul    ecx, eax                                                       ; +0x4b, 0x18005a4cb\ncmp     r9d, ecx                                                       ; +0x4e, 0x18005a4ce\njl      short loc_18005A4A0                                            ; +0x51, 0x18005a4d1\nmov     eax, [r8+68h]                                                  ; +0x53, 0x18005a4d3\nmov     [r8+80h], eax                                                  ; +0x57, 0x18005a4d7\nxor     eax, eax                                                       ; +0x5e, 0x18005a4de\nmov     dword ptr [r8+6Ch], 0                                          ; +0x60, 0x18005a4e0\nretn                                                                   ; +0x68, 0x18005a4e8", "xrefs": ["sub_18005A080 @ 0x18005a214", "sub_18005A240 @ 0x18005a2cc", "sub_18005A4F0 @ 0x18005a5c7", "sub_18005A600 @ 0x18005a63e", "sub_180068BC0 @ 0x180068c24", "sub_180068D20 @ 0x180068e51", "sub_180099C50 @ 0x18009b47a"], "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"}