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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x108
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
movaps xmmword [rax - 0x78], xmm8
movaps xmmword [rax - 0x88], xmm9
movaps xmmword [rax - 0x98], xmm10
movaps xmmword [rax - 0xa8], xmm11
movaps xmmword [rax - 0xb8], xmm12
movaps xmmword [rax - 0xc8], xmm13
movaps xmmword [rsp + 0x70], xmm14
movaps xmmword [rsp + 0x60], xmm15
mov r12, rdx
xor edx, edx
mov rbx, r8
lea r8d, [rdx + 0x50]
movsxd r15, r9d
mov rsi, rcx
mov r13d, 0xffffff9d
mov dword [rsp + 0x30], 1
call sub.msvcrt.dll_memset
mov eax, dword [rbx]
mov dword [rsi + 0x40], eax
movd xmm0, dword [rbx]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x1400df94c]
cvtps2pd xmm0, xmm0
call sub.msvcrt.dll_log
movsd xmm11, qword [0x1400df630]
movaps xmm6, xmm0
movaps xmm0, xmm11
call sub.msvcrt.dll_log
movsd xmm15, qword [0x1400df620]
divsd xmm6, xmm0
addsd xmm6, xmm15
movaps xmm0, xmm6
call sub.msvcrt.dll_floor
movd xmm6, dword [rsp + 0x170]
movss xmm14, dword [0x1400df8e0]
movd xmm9, r15d
subsd xmm0, qword [0x1400df628]
cvtdq2ps xmm6, xmm6
cvttsd2si edi, xmm0
cvtdq2pd xmm9, xmm9
movaps xmm0, xmm6
mulss xmm0, xmm14
mov dword [rsi + 0x3c], edi
cvtps2pd xmm0, xmm0
movsd qword [rsp + 0x40], xmm9
mulsd xmm0, xmm15
divsd xmm0, xmm9
call sub.msvcrt.dll_log
movd xmm2, dword [rbx]
movsd xmm13, qword [0x1400df918]
movsd xmm12, qword [0x1400df938]
lea ecx, [rdi + 1]
mov eax, 1
shl eax, cl
cvtdq2pd xmm2, xmm2
mulsd xmm0, xmm13
subsd xmm0, xmm12
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm1
subsd xmm0, xmm2
cvttsd2si ebx, xmm0
movd xmm0, r15d
cvtdq2ps xmm0, xmm0
mov dword [rsi + 0x38], ebx
addss xmm0, xmm14
mulss xmm0, xmm6
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm15
divsd xmm0, xmm9
call sub.msvcrt.dll_log
lea ecx, [rdi + 1]
mov eax, 1
shl eax, cl
mulsd xmm0, xmm13
subsd xmm0, xmm12
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm1
addsd xmm0, xmm15
mov rbp, r15
cvttsd2si eax, xmm0
sub eax, ebx
lea rbx, [r15*4]
inc eax
mov rcx, rbx
mov qword [rsp + 0x50], rbx
mov dword [rsi + 0x44], eax
call sub.msvcrt.dll_malloc
mov rcx, rbx
mov qword [rsi + 0x20], rax
call sub.msvcrt.dll_malloc
mov rcx, rbx
mov qword [rsi + 0x28], rax
call sub.msvcrt.dll_malloc
xor ebx, ebx
mov qword [rsi + 0x30], rax
mov eax, dword [rsp + 0x170]
mov qword [rsi + 8], r12
mov dword [rsi], r15d
mov dword [rsi + 0x4c], 0x3f800000
mov dword [rsi + 0x48], eax
cmp eax, 0x6590
jge 0x140058034
mov dword [rsi + 0x4c], ebx
jmp 0x140058052
cmp eax, 0x9470
jge 0x140058044
mov dword [rsi + 0x4c], 0x3f70a3d7
jmp 0x140058052
cmp eax, 0xb3b0
jle 0x140058052
mov dword [rsi + 0x4c], 0x3fa33333
movsd xmm7, qword [0x1400df900]
movsd xmm8, qword [0x1400df910]
movsd xmm6, qword [0x1400de630]
movd xmm10, eax
mov edi, ebx
mov r15d, 1
lea r12, [0x1401367c4]
lea r14, [0x140136920]
cvtdq2pd xmm10, xmm10
movsd qword [rsp + 0x48], xmm10
movd xmm0, r15d
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm7
subsd xmm0, xmm11
addsd xmm0, xmm12
mulsd xmm0, xmm8
call sub.msvcrt.dll_exp
mulsd xmm0, xmm11
mulsd xmm0, xmm9
divsd xmm0, xmm10
addsd xmm0, xmm15
call sub.msvcrt.dll_floor
movss xmm2, dword [r12 - 4]
cvttsd2si ecx, xmm0
cmp edi, ecx
jge 0x140058208
movss xmm3, dword [r12]
mov eax, ecx
movsxd rdx, ecx
sub eax, edi
subss xmm3, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm3, xmm0
cmp rbx, rdx
jge 0x140058208
mov rax, rdx
sub rax, rbx
cmp rax, 4
jl 0x1400581d7
lea rcx, [rbx + 2]
nop dword [rax + rax]
cmp rbx, rbp
jge 0x140058208
mov rax, qword [rsi + 0x20]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm2
addss xmm2, xmm3
addsd xmm0, xmm6
cvtpd2ps xmm1, xmm0
movss dword [rax + rbx*4], xmm1
lea rax, [rcx - 1]
cmp rax, rbp
jge 0x140058664
mov rax, qword [rsi + 0x20]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm2
addss xmm2, xmm3
addsd xmm0, xmm6
cvtpd2ps xmm1, xmm0
movss dword [rax + rbx*4 + 4], xmm1
cmp rcx, rbp
jge 0x140058658
mov rax, qword [rsi + 0x20]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm2
addss xmm2, xmm3
addsd xmm0, xmm6
cvtpd2ps xmm1, xmm0
movss dword [rax + rbx*4 + 8], xmm1
lea rax, [rcx + 1]
cmp rax, rbp
jge 0x14005864c
mov rax, qword [rsi + 0x20]
xorps xmm0, xmm0
add rbx, 4
add edi, 4
add rcx, 4
cvtss2sd xmm0, xmm2
addss xmm2, xmm3
addsd xmm0, xmm6
cvtpd2ps xmm1, xmm0
movss dword [rax + rbx*4 - 4], xmm1
lea rax, [rdx - 3]
cmp rbx, rax
jl 0x140058120
cmp rbx, rdx
jge 0x140058208
cmp rbx, rbp
jge 0x140058208
mov rax, qword [rsi + 0x20]
xorps xmm0, xmm0
inc rbx
inc edi
cvtss2sd xmm0, xmm2
addss xmm2, xmm3
addsd xmm0, xmm6
cvtpd2ps xmm1, xmm0
movss dword [rax + rbx*4 - 4], xmm1
cmp rbx, rdx
jl 0x1400581dc
add r12, 4
inc r15d
cmp r12, r14
jl 0x140058092
mov r15d, dword [rsp + 0x168]
mov r14d, dword [rsp + 0x30]
xor ebp, ebp
mov ebx, ebp
mov dword [rsp + 0x160], ebx
test r15d, r15d
jle 0x1400584fc
mov eax, dword [rsp + 0x170]
movss xmm9, dword [0x1400df8d4]
movsd xmm10, qword [0x1400df878]
lea ecx, [r15 + r15]
cdq
mov edi, ebp
movss xmm11, dword [0x1400df8dc]
movsd xmm12, qword [0x1400df880]
movss xmm13, dword [0x1400df8d8]
mov qword [rsp + 0x38], rbp
idiv ecx
mov ecx, ebp
mov dword [rsp + 0x170], ecx
mov r12d, eax
mov r15d, eax
imul r12d, eax
mov eax, ebp
mov dword [rsp + 0x30], eax
nop dword [rax]
nop dword [rax + rax]
movd xmm7, eax
mov eax, ecx
imul eax, ebx
movd xmm0, eax
cvtdq2ps xmm7, xmm7
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm9
cvtps2pd xmm0, xmm0
call sub.msvcrt.dll_atan
movaps xmm1, xmm7
mulss xmm1, xmm11
movaps xmm6, xmm0
mulsd xmm6, xmm10
cvtps2pd xmm0, xmm1
call sub.msvcrt.dll_atan
mov rcx, qword [rsp + 0x158]
mulss xmm7, xmm13
mov ebp, dword [rcx + 0x78]
mulsd xmm0, xmm12
xorps xmm14, xmm14
cvtps2pd xmm1, xmm7
add ebp, r13d
addsd xmm6, xmm0
addsd xmm6, xmm1
cvtsd2ss xmm14, xmm6
cmp ebp, ebx
jge 0x1400583b7
mov esi, dword [rsp + 0x160]
movaps xmm8, xmm14
mov ebx, r15d
mov edi, r12d
imul ebx, r13d
subss xmm8, dword [rcx + 0x70]
imul edi, r13d
nop dword [rax + rax]
mov eax, edi
movd xmm7, ebx
imul eax, r13d
movd xmm0, eax
cvtdq2ps xmm7, xmm7
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm9
cvtps2pd xmm0, xmm0
call sub.msvcrt.dll_atan
movaps xmm1, xmm7
mulss xmm1, xmm11
movaps xmm6, xmm0
mulsd xmm6, xmm10
cvtps2pd xmm0, xmm1
call sub.msvcrt.dll_atan
mulss xmm7, xmm13
mulsd xmm0, xmm12
cvtps2pd xmm1, xmm7
addsd xmm6, xmm0
xorps xmm0, xmm0
addsd xmm6, xmm1
cvtss2sd xmm0, xmm8
comisd xmm0, xmm6
jbe 0x14005839b
inc ebp
inc r13d
add edi, r12d
add ebx, r15d
cmp ebp, esi
jl 0x140058330
mov rsi, qword [rsp + 0x150]
mov ebx, dword [rsp + 0x160]
mov rdi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x158]
mov edx, dword [rsp + 0x168]
cmp r14d, edx
jg 0x140058473
mov ebp, dword [rcx + 0x7c]
mov edi, r12d
add ebp, ebx
mov ebx, r15d
imul ebx, r14d
imul edi, r14d
nop word [rax + rax]
cmp r14d, ebp
jl 0x140058455
mov eax, edi
movd xmm7, ebx
imul eax, r14d
movd xmm0, eax
cvtdq2ps xmm7, xmm7
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm9
cvtps2pd xmm0, xmm0
call sub.msvcrt.dll_atan
movaps xmm1, xmm7
mulss xmm1, xmm11
movaps xmm6, xmm0
mulsd xmm6, xmm10
cvtps2pd xmm0, xmm1
call sub.msvcrt.dll_atan
mov rcx, qword [rsp + 0x158]
mov edx, dword [rsp + 0x168]
mulss xmm7, xmm13
mulsd xmm0, xmm12
cvtps2pd xmm1, xmm7
addsd xmm6, xmm0
movaps xmm0, xmm14
addss xmm0, dword [rcx + 0x74]
addsd xmm6, xmm1
cvtss2sd xmm0, xmm0
comisd xmm0, xmm6
jbe 0x140058467
inc r14d
add edi, r12d
add ebx, r15d
cmp r14d, edx
jle 0x1400583e0
mov ebx, dword [rsp + 0x160]
mov rdi, qword [rsp + 0x38]
mov rax, qword [rsi + 0x30]
inc ebx
add rdi, 4
mov ecx, r13d
mov dword [rsp + 0x160], ebx
mov qword [rsp + 0x38], rdi
shl ecx, 0x10
add ecx, 0xfffeffff
add ecx, r14d
mov dword [rdi + rax - 4], ecx
mov ecx, dword [rsp + 0x170]
mov eax, dword [rsp + 0x30]
add ecx, r12d
add eax, r15d
mov dword [rsp + 0x170], ecx
mov dword [rsp + 0x30], eax
cmp ebx, edx
jl 0x1400582a0
movsd xmm9, qword [rsp + 0x40]
movsd xmm10, qword [rsp + 0x48]
movsd xmm11, qword [0x1400df630]
mov r15d, dword [rsp + 0x168]
xor ebp, ebp
movsd xmm12, qword [0x1400df938]
movsd xmm13, qword [0x1400df918]
movss xmm14, dword [0x1400df8e0]
mov ebx, ebp
test r15d, r15d
jle 0x140058571
mov rdi, rbp
nop word [rax + rax]
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
addss xmm0, xmm14
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm15
mulsd xmm0, xmm10
divsd xmm0, xmm9
call sub.msvcrt.dll_log
mov ecx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x28]
mulsd xmm0, xmm13
inc ecx
mov edx, 1
inc ebx
subsd xmm0, xmm12
shl edx, cl
add rdi, 4
movd xmm1, edx
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm1
addsd xmm0, xmm15
cvttsd2si ecx, xmm0
mov dword [rdi + rax - 4], ecx
cmp ebx, r15d
jl 0x140058510
mov rax, qword [rsp + 0x158]
movaps xmm0, xmm10
xorps xmm1, xmm1
mulsd xmm0, xmm15
mov r8d, r15d
lea rcx, [rax + 0x24]
divsd xmm0, xmm9
movss xmm3, dword [rax + 0x18]
cvtsd2ss xmm1, xmm0
movss xmm0, dword [rax + 0x1c]
movss dword [rsp + 0x20], xmm0
call fcn.14005a860
mov ecx, 0x18
mov qword [rsi + 0x10], rax
call sub.msvcrt.dll_malloc
mov rdi, qword [rsp + 0x50]
mov qword [rsi + 0x18], rax
mov rbx, rbp
mov rcx, rdi
call sub.msvcrt.dll_malloc
mov rcx, qword [rsi + 0x18]
add rbx, 8
mov qword [rbx + rcx - 8], rax
cmp rbx, 0x18
jl 0x1400585c4
test r15d, r15d
jle 0x140058759
movss xmm6, dword [0x1400df950]
movsd xmm8, qword [0x1400df628]
mulsd xmm9, xmm11
mov rbx, rbp
xorps xmm7, xmm7
nop dword [rax]
nop dword [rax + rax]
movd xmm0, ebp
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm15
mulsd xmm0, xmm10
divsd xmm0, xmm9
call sub.msvcrt.dll_log
xorps xmm4, xmm4
mulsd xmm0, xmm13
subsd xmm0, xmm12
mulsd xmm0, xmm11
cvtsd2ss xmm4, xmm0
comiss xmm7, xmm4
jbe 0x14005866e
movaps xmm4, xmm7
jmp 0x140058676
add rbx, 3
add edi, 3
jmp 0x140058208
add rbx, 2
add edi, 2
jmp 0x140058208
inc rbx
inc edi
jmp 0x140058208
comiss xmm4, xmm6
jb 0x140058676
movaps xmm4, xmm6
cvttss2si eax, xmm4
xorps xmm2, xmm2
movaps xmm3, xmm8
inc ebp
add rbx, 4
movsxd rdx, eax
movd xmm0, eax
mov rax, qword [rsi + 8]
cvtdq2ps xmm0, xmm0
subss xmm4, xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm4
subsd xmm3, xmm0
movss xmm0, dword [rax + rdx*4 + 0x84]
movaps xmm1, xmm4
mulss xmm1, dword [rax + rdx*4 + 0x88]
mov rax, qword [rsi + 0x18]
cvtss2sd xmm2, xmm1
cvtps2pd xmm0, xmm0
mov rcx, qword [rax]
mulsd xmm0, xmm3
addsd xmm2, xmm0
movaps xmm0, xmm4
cvtpd2ps xmm1, xmm2
xorps xmm2, xmm2
movss dword [rbx + rcx - 4], xmm1
mov rax, qword [rsi + 8]
mulss xmm0, dword [rax + rdx*4 + 0xcc]
movss xmm1, dword [rax + rdx*4 + 0xc8]
mov rax, qword [rsi + 0x18]
cvtps2pd xmm1, xmm1
cvtss2sd xmm2, xmm0
mov rcx, qword [rax + 8]
mulsd xmm1, xmm3
addsd xmm2, xmm1
xorps xmm1, xmm1
cvtpd2ps xmm0, xmm2
movss dword [rbx + rcx - 4], xmm0
mov rax, qword [rsi + 8]
movss xmm0, dword [rax + rdx*4 + 0x10c]
mulss xmm4, dword [rax + rdx*4 + 0x110]
mov rax, qword [rsi + 0x18]
cvtps2pd xmm0, xmm0
cvtss2sd xmm1, xmm4
mov rcx, qword [rax + 0x10]
mulsd xmm0, xmm3
addsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movss dword [rbx + rcx - 4], xmm1
cmp ebp, r15d
jl 0x140058610
movaps xmm14, xmmword [rsp + 0x70]
movaps xmm15, xmmword [rsp + 0x60]
lea r11, [rsp + 0x108]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
movaps xmm10, xmmword [r11 - 0x58]
movaps xmm11, xmmword [r11 - 0x68]
movaps xmm12, xmmword [r11 - 0x78]
movaps xmm13, xmmword [r11 - 0x88]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret