{"type": "func", "start": 6443129024, "end": 6443129270, "name": "sub_1800A58C0", "pseudocode": "// \n// sub_1800A58C0 from 0x1800a58c0 to 0x1800a59b6 (246 bytes)\n// \n// 2 xrefs:\n// > sub_1800A6260 @ 0x1800a6309\n// > <???> @ 0x1801fb784\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_1800A58C0(__int64 a1, __int64 a2, __int64 a3)\n{\n  int v6; // [rsp+38h] [rbp+10h] BYREF\n  void *v7; // [rsp+40h] [rbp+18h] BYREF\n\n  if ( (*(int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) < 0 )\n    return 49;\n  if ( (*(int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) < 0 )\n    return 49;\n  v7 = nullptr;\n  v6 = 0;\n  if ( (*(int (__fastcall **)(__int64, void **, int *))(*(_QWORD *)a2 + 24LL))(a2, &v7, &v6) < 0 )\n    return 49;\n  memmove(v7, *(const void **)a3, 4LL * *(unsigned int *)(a3 + 8));\n  return 0;\n}", "assembly": "; \n; sub_1800A58C0 from 0x1800a58c0 to 0x1800a59b6 (246 bytes)\n; \n; 2 xrefs:\n; > sub_1800A6260 @ 0x1800a6309\n; > <???> @ 0x1801fb784\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_0], rbx                                               ; +0x0, 0x1800a58c0\npush    rdi                                                            ; +0x5, 0x1800a58c5\nsub     rsp, 20h                                                       ; +0x6, 0x1800a58c6\nmovss   xmm4, dword ptr [r8+0Ch]                                       ; +0xa, 0x1800a58ca\nmov     rdi, r8                                                        ; +0x10, 0x1800a58d0\nmovss   xmm5, dword ptr [r8+10h]                                       ; +0x13, 0x1800a58d3\nmovaps  xmm0, xmm4                                                     ; +0x19, 0x1800a58d9\nmovss   xmm3, dword ptr [r8+14h]                                       ; +0x1c, 0x1800a58dc\nmovaps  xmm2, xmm5                                                     ; +0x22, 0x1800a58e2\nmulss   xmm2, xmm5                                                     ; +0x25, 0x1800a58e5\nmovaps  xmm1, xmm3                                                     ; +0x29, 0x1800a58e9\nmov     rbx, rdx                                                       ; +0x2c, 0x1800a58ec\nmulss   xmm1, xmm3                                                     ; +0x2f, 0x1800a58ef\nmulss   xmm0, xmm4                                                     ; +0x33, 0x1800a58f3\naddss   xmm2, xmm0                                                     ; +0x37, 0x1800a58f7\nxorps   xmm0, xmm0                                                     ; +0x3b, 0x1800a58fb\naddss   xmm2, xmm1                                                     ; +0x3e, 0x1800a58fe\nxorps   xmm1, xmm1                                                     ; +0x42, 0x1800a5902\nsqrtss  xmm1, xmm2                                                     ; +0x45, 0x1800a5905\ncomiss  xmm1, xmm0                                                     ; +0x49, 0x1800a5909\nja      short loc_1800A591E                                            ; +0x4c, 0x1800a590c\nmovss   xmm5, cs:dword_180145744                                       ; +0x4e, 0x1800a590e\nxorps   xmm4, xmm4                                                     ; +0x56, 0x1800a5916\nxorps   xmm3, xmm3                                                     ; +0x59, 0x1800a5919\njmp     short loc_1800A5936                                            ; +0x5c, 0x1800a591c\nmovss   xmm0, cs:dword_180145744                                       ; +0x5e, 0x1800a591e\ndivss   xmm0, xmm1                                                     ; +0x66, 0x1800a5926\nmulss   xmm4, xmm0                                                     ; +0x6a, 0x1800a592a\nmulss   xmm5, xmm0                                                     ; +0x6e, 0x1800a592e\nmulss   xmm3, xmm0                                                     ; +0x72, 0x1800a5932\nmov     rax, [rdx]                                                     ; +0x76, 0x1800a5936\nmovaps  xmm2, xmm5                                                     ; +0x79, 0x1800a5939\nxorps   xmm3, cs:xmmword_180144610                                     ; +0x7c, 0x1800a593c\nmovaps  xmm1, xmm4                                                     ; +0x83, 0x1800a5943\nmov     rcx, rbx                                                       ; +0x86, 0x1800a5946\ncall    qword ptr [rax+38h]                                            ; +0x89, 0x1800a5949\ntest    eax, eax                                                       ; +0x8c, 0x1800a594c\njs      short loc_1800A59A6                                            ; +0x8e, 0x1800a594e\nmov     rax, [rbx]                                                     ; +0x90, 0x1800a5950\nmov     rcx, rbx                                                       ; +0x93, 0x1800a5953\nmovss   xmm1, dword ptr [rdi+18h]                                      ; +0x96, 0x1800a5956\ncall    qword ptr [rax+40h]                                            ; +0x9b, 0x1800a595b\ntest    eax, eax                                                       ; +0x9e, 0x1800a595e\njs      short loc_1800A59A6                                            ; +0xa0, 0x1800a5960\nxor     eax, eax                                                       ; +0xa2, 0x1800a5962\nlea     r8, [rsp+28h+arg_8]                                            ; +0xa4, 0x1800a5964\nmov     [rsp+28h+arg_10], rax                                          ; +0xa9, 0x1800a5969\nlea     rdx, [rsp+28h+arg_10]                                          ; +0xae, 0x1800a596e\nmov     [rsp+28h+arg_8], eax                                           ; +0xb3, 0x1800a5973\nmov     rcx, rbx                                                       ; +0xb7, 0x1800a5977\nmov     rax, [rbx]                                                     ; +0xba, 0x1800a597a\ncall    qword ptr [rax+18h]                                            ; +0xbd, 0x1800a597d\ntest    eax, eax                                                       ; +0xc0, 0x1800a5980\njs      short loc_1800A59A6                                            ; +0xc2, 0x1800a5982\nmov     r8d, [rdi+8]                                                   ; +0xc4, 0x1800a5984\nmov     rdx, [rdi]; Src                                                ; +0xc8, 0x1800a5988\nmov     rcx, [rsp+28h+arg_10]; void *                                  ; +0xcb, 0x1800a598b\nshl     r8, 2; Size                                                    ; +0xd0, 0x1800a5990\ncall    memmove                                                        ; +0xd4, 0x1800a5994\nxor     eax, eax                                                       ; +0xd9, 0x1800a5999\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xdb, 0x1800a599b\nadd     rsp, 20h                                                       ; +0xe0, 0x1800a59a0\npop     rdi                                                            ; +0xe4, 0x1800a59a4\nretn                                                                   ; +0xe5, 0x1800a59a5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xe6, 0x1800a59a6\nmov     eax, 31h ; '1'                                                 ; +0xeb, 0x1800a59ab\nadd     rsp, 20h                                                       ; +0xf0, 0x1800a59b0\npop     rdi                                                            ; +0xf4, 0x1800a59b4\nretn                                                                   ; +0xf5, 0x1800a59b5", "xrefs": ["sub_1800A6260 @ 0x1800a6309", "<???> @ 0x1801fb784"], "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"}