Function at 0x140057b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x108
mov eax, dword [rsp + 0x128]
cmp dword [rsp + 0x120], eax
jne 0x140057ba1
xorps xmm0, xmm0
jmp 0x1400582ee
mov eax, dword [rsp + 0x128]
cmp dword [rsp + 0x120], eax
jae 0x140057c10
mov eax, dword [rsp + 0x120]
cmp dword [rsp + 0x118], eax
jae 0x140057bce
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x3c], eax
jmp 0x140057bfe
mov eax, dword [rsp + 0x128]
cmp dword [rsp + 0x118], eax
jbe 0x140057beb
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x38], eax
jmp 0x140057bf6
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x48], eax
jmp 0x140057c6d
mov eax, dword [rsp + 0x128]
cmp dword [rsp + 0x118], eax
jae 0x140057c2d
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x44], eax
jmp 0x140057c5d
mov eax, dword [rsp + 0x120]
cmp dword [rsp + 0x118], eax
jbe 0x140057c4a
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x40], eax
jmp 0x140057c55
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
movzx eax, byte [rsp + 0x130]
test eax, eax
je 0x1400582c1
mov eax, dword [rsp + 0x120]
cmp dword [rsp + 0x128], eax
jae 0x140057c9f
mov dword [rsp + 0x4c], 1
jmp 0x140057ca7
mov dword [rsp + 0x4c], 0
movzx eax, byte [rsp + 0x4c]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140057cdd
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x120], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x128], eax
mov eax, dword [rsp + 0x120]
cvtsi2ss xmm0, rax
movss dword [rsp + 0x78], xmm0
cvtss2sd xmm0, dword [rsp + 0x78]
call sub.api_ms_win_crt_math_l1_1_0.dll_fabs
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x80], xmm0
movss xmm0, dword [rsp + 0x80]
movss dword [rsp + 0x84], xmm0
movss xmm0, dword [rsp + 0x84]
movss xmm1, dword [rsp + 0x138]
comiss xmm1, xmm0
jbe 0x140057d79
mov eax, dword [rsp + 0x120]
cvtsi2ss xmm0, rax
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x140057d5c
movss xmm0, dword [rsp + 0x138]
xorps xmm0, xmmword [0x14009f700]
movss dword [rsp + 0x50], xmm0
jmp 0x140057d6b
movss xmm0, dword [rsp + 0x138]
movss dword [rsp + 0x50], xmm0
movss xmm0, dword [rsp + 0x50]
movss dword [rsp + 0x54], xmm0
jmp 0x140057d8b
mov eax, dword [rsp + 0x120]
cvtsi2ss xmm0, rax
movss dword [rsp + 0x54], xmm0
movss xmm0, dword [rsp + 0x54]
movss dword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0x128]
cvtsi2ss xmm0, rax
movss dword [rsp + 0x88], xmm0
cvtss2sd xmm0, dword [rsp + 0x88]
call sub.api_ms_win_crt_math_l1_1_0.dll_fabs
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x90], xmm0
movss xmm0, dword [rsp + 0x90]
movss dword [rsp + 0x94], xmm0
movss xmm0, dword [rsp + 0x94]
movss xmm1, dword [rsp + 0x138]
comiss xmm1, xmm0
jbe 0x140057e39
mov eax, dword [rsp + 0x128]
cvtsi2ss xmm0, rax
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x140057e1c
movss xmm0, dword [rsp + 0x138]
xorps xmm0, xmmword [0x14009f700]
movss dword [rsp + 0x58], xmm0
jmp 0x140057e2b
movss xmm0, dword [rsp + 0x138]
movss dword [rsp + 0x58], xmm0
movss xmm0, dword [rsp + 0x58]
movss dword [rsp + 0x5c], xmm0
jmp 0x140057e4b
mov eax, dword [rsp + 0x128]
cvtsi2ss xmm0, rax
movss dword [rsp + 0x5c], xmm0
movss xmm0, dword [rsp + 0x5c]
movss dword [rsp + 0x2c], xmm0
mov eax, dword [rsp + 0x120]
cvtsi2ss xmm0, rax
ucomiss xmm0, dword [0x14009f5dc]
jp 0x140057e9a
jne 0x140057e9a
mov eax, dword [rsp + 0x128]
cvtsi2ss xmm0, rax
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x140057e9a
movss xmm0, dword [rsp + 0x138]
xorps xmm0, xmmword [0x14009f700]
movss dword [rsp + 0x30], xmm0
jmp 0x140057edb
mov eax, dword [rsp + 0x128]
cvtsi2ss xmm0, rax
ucomiss xmm0, dword [0x14009f5dc]
jp 0x140057edb
jne 0x140057edb
mov eax, dword [rsp + 0x120]
cvtsi2ss xmm0, rax
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x140057edb
movss xmm0, dword [rsp + 0x138]
xorps xmm0, xmmword [0x14009f700]
movss dword [rsp + 0x2c], xmm0
mov eax, dword [rsp + 0x28]
cvtsi2ss xmm0, rax
movss xmm1, dword [rsp + 0x30]
comiss xmm1, xmm0
jb 0x140057efd
xorps xmm0, xmm0
movss dword [rsp + 0x24], xmm0
jmp 0x14005828e
mov eax, dword [rsp + 0x28]
cvtsi2ss xmm0, rax
comiss xmm0, dword [rsp + 0x2c]
jb 0x140057f20
movss xmm0, dword [0x14009f648]
movss dword [rsp + 0x24], xmm0
jmp 0x14005828e
mov eax, dword [rsp + 0x120]
imul eax, dword [rsp + 0x128]
mov eax, eax
cvtsi2ss xmm0, rax
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x140058135
mov eax, dword [rsp + 0x120]
cvtsi2ss xmm0, rax
xorps xmm0, xmmword [0x14009f700]
mov eax, dword [rsp + 0x128]
cvtsi2ss xmm1, rax
mov eax, dword [rsp + 0x120]
cvtsi2ss xmm2, rax
subss xmm1, xmm2
divss xmm0, xmm1
movss dword [rsp + 0x34], xmm0
movss xmm0, dword [rsp + 0x34]
subss xmm0, dword [rsp + 0x140]
movss dword [rsp + 0xb0], xmm0
movss xmm0, dword [rsp + 0x34]
addss xmm0, dword [rsp + 0x140]
movss dword [rsp + 0x60], xmm0
mov eax, dword [rsp + 0x118]
cvtsi2ss xmm0, rax
ucomiss xmm0, dword [0x14009f5dc]
jp 0x140057fd0
jne 0x140057fd0
movss xmm0, dword [rsp + 0x34]
movss dword [rsp + 0x24], xmm0
jmp 0x140058130
mov eax, dword [rsp + 0x118]
cvtsi2ss xmm0, rax
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x140058092
mov eax, dword [rsp + 0x28]
cvtsi2ss xmm0, rax
xorps xmm0, xmmword [0x14009f700]
divss xmm0, dword [rsp + 0x138]
movss dword [rsp + 0x98], xmm0
movss xmm0, dword [rsp + 0x98]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_logf]
movss dword [rsp + 0xa8], xmm0
movss xmm0, dword [rsp + 0x30]
xorps xmm0, xmmword [0x14009f700]
divss xmm0, dword [rsp + 0x138]
movss dword [rsp + 0xa0], xmm0
movss xmm0, dword [rsp + 0xa0]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_logf]
movss dword [rsp + 0xac], xmm0
movss xmm0, dword [rsp + 0xa8]
movss xmm1, dword [rsp + 0xac]
divss xmm0, xmm1
movss xmm1, dword [0x14009f648]
subss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [rsp + 0xb0]
movss dword [rsp + 0x24], xmm0
jmp 0x140058130
mov eax, dword [rsp + 0x28]
cvtsi2ss xmm0, rax
divss xmm0, dword [rsp + 0x138]
movss dword [rsp + 0xb8], xmm0
movss xmm0, dword [rsp + 0xb8]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_logf]
movss dword [rsp + 0xc8], xmm0
movss xmm0, dword [rsp + 0x2c]
divss xmm0, dword [rsp + 0x138]
movss dword [rsp + 0xc0], xmm0
movss xmm0, dword [rsp + 0xc0]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_logf]
movss dword [rsp + 0xcc], xmm0
movss xmm0, dword [rsp + 0xc8]
movss xmm1, dword [rsp + 0xcc]
divss xmm0, xmm1
movss xmm1, dword [0x14009f648]
subss xmm1, dword [rsp + 0x60]
mulss xmm0, xmm1
movss xmm1, dword [rsp + 0x60]
addss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x24], xmm0
jmp 0x14005828e
mov eax, dword [rsp + 0x120]
cvtsi2ss xmm0, rax
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x140058161
mov eax, dword [rsp + 0x128]
cvtsi2ss xmm0, rax
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x140058215
movss xmm0, dword [rsp + 0x2c]
xorps xmm0, xmmword [0x14009f700]
mov eax, dword [rsp + 0x28]
cvtsi2ss xmm1, rax
xorps xmm1, xmmword [0x14009f700]
divss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0xd0], xmm0
movss xmm0, dword [rsp + 0xd0]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_logf]
movss dword [rsp + 0xe0], xmm0
movss xmm0, dword [rsp + 0x2c]
xorps xmm0, xmmword [0x14009f700]
movss xmm1, dword [rsp + 0x30]
xorps xmm1, xmmword [0x14009f700]
divss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0xd8], xmm0
movss xmm0, dword [rsp + 0xd8]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_logf]
movss dword [rsp + 0xe4], xmm0
movss xmm0, dword [rsp + 0xe0]
movss xmm1, dword [rsp + 0xe4]
divss xmm0, xmm1
movss xmm1, dword [0x14009f648]
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x24], xmm0
jmp 0x14005828e
mov eax, dword [rsp + 0x28]
cvtsi2ss xmm0, rax
divss xmm0, dword [rsp + 0x30]
movss dword [rsp + 0xe8], xmm0
movss xmm0, dword [rsp + 0xe8]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_logf]
movss dword [rsp + 0xf8], xmm0
movss xmm0, dword [rsp + 0x2c]
divss xmm0, dword [rsp + 0x30]
movss dword [rsp + 0xf0], xmm0
movss xmm0, dword [rsp + 0xf0]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_logf]
movss dword [rsp + 0xfc], xmm0
movss xmm0, dword [rsp + 0xf8]
movss xmm1, dword [rsp + 0xfc]
divss xmm0, xmm1
movss dword [rsp + 0x24], xmm0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1400582ad
movss xmm0, dword [0x14009f648]
subss xmm0, dword [rsp + 0x24]
movss dword [rsp + 0x64], xmm0
jmp 0x1400582b9
movss xmm0, dword [rsp + 0x24]
movss dword [rsp + 0x64], xmm0
movss xmm0, dword [rsp + 0x64]
jmp 0x1400582ee
mov eax, dword [rsp + 0x120]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
cvtsi2ss xmm0, eax
mov eax, dword [rsp + 0x120]
mov ecx, dword [rsp + 0x128]
sub ecx, eax
mov eax, ecx
cvtsi2ss xmm1, eax
divss xmm0, xmm1
add rsp, 0x108
ret