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

Disassembly:
lea rbx, [rsp - 0x48]
cmp rbx, qword [r15 + 8]
jbe fcn.140095ad0
mov rsp, rbx
mov qword [rsp + 0x10], rdx
mov eax, dword [rdx + 0x68]
nop word [rax + rax]
test eax, eax
je 0x140059571
lea rax, [r14 + 0x2c8c30]
mov rdx, rax
mov rax, r8
mov qword [rsp + 0x40], rax
call fcn.14005b3c0
nop
mov rdx, qword [rsp + 0x10]
mov r8d, dword [rdx + 0x28]
test r8d, r8d
je 0x14005957c
mov r9, qword [r14 + r8*8 + 8]
sub r9, qword [r14 + r8*8 + 0x10]
vmovsd xmm0, qword [r14 + 0x2c8c40]
vxorpd xmm1, xmm1, xmm1
test r9, r9
jl 0x140059265
vxorpd xmm2, xmm2, xmm2
vcvtsi2sd xmm2, xmm2, r9
vsubsd xmm0, xmm2, xmm0
vucomisd xmm0, xmm0
jnp 0x140059096
mov rbx, 0
mov rax, qword [rdx + 0x18]
mov rcx, qword [rdx + 0xa0]
mov r8d, dword [rdx + 0x5c]
cmp rbx, rax
mov r9, rax
cmova r9, rbx
and r9, 0xfffffffffff00000
mov qword [rsp + 0x38], r9
test r8d, r8d
je 0x140059586
mov ebx, dword [rdx + 0x3c]
movabs rsi, 0x47ae147ae147ae15
cmp rcx, 6
jl 0x140059225
vmovsd xmm0, qword [r14 + 0x2c8c18]
vblendvpd xmm2, xmm0, xmm1, xmm1
vblendvpd xmm0, xmm1, xmm0, xmm1
vmaxsd xmm0, xmm2, xmm0
vcmpunordsd xmm3, xmm2, xmm2
vblendvpd xmm0, xmm0, xmm2, xmm3
vmovsd xmm2, qword [0x1402db030]
vucomisd xmm0, xmm2
jp 0x140059245
ja 0x140059245
mov r8d, dword [rdx + 0x6c]
lea r8, [r14 + r8*8]
nop dword [rax]
test ebx, ebx
je 0x140059592
mov dword [rsp + 0xc], ebx
vmovsd xmm0, qword [r14 + 0x2c8bf0]
mov rcx, qword [rdx + 0x10]
vblendvpd xmm2, xmm0, xmm1, xmm1
vblendvpd xmm0, xmm1, xmm0, xmm1
vmaxsd xmm0, xmm2, xmm0
vcmpunordsd xmm3, xmm2, xmm2
vblendvpd xmm0, xmm0, xmm2, xmm3
mov rdx, r8
mov r8, rax
mov r9, rcx
vmovsd qword [rsp + 0x20], xmm1
call fcn.140059b10
nop
mov rdx, qword [rsp + 0x10]
mov rcx, qword [rdx + 0x18]
test eax, eax
jne 0x14005911b
movabs rsi, 0x47ae147ae147ae15
mov rbx, rdx
mov edx, eax
mov rax, rcx
test edx, edx
jne 0x1400590fe
mov r8, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x18]
mov rax, rcx
mul rsi
mov r9, rcx
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 6
mov rdx, r9
shl rdx, 3
shl r9, 1
add rdx, r9
shr rdx, 2
mov r9, r8
add r9, rcx
mov r8, rcx
mov qword [rsp + 0x28], rcx
call fcn.14005a540
nop
mov rcx, qword [rsp + 0x28]
sub rcx, rax
and rcx, 0xfffffffffff00000
mov r9, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x10]
cmp rcx, 0x800000
mov rax, 0x800000
cmovb rcx, rax
cmp rcx, r9
cmova rcx, r9
mov qword [rdx + 0x18], rcx
mov rax, rdx
call fcn.140058750
nop
mov rdx, qword [rsp + 0x10]
mov r8d, dword [rdx + 0x28]
nop
test r8d, r8d
je 0x14005958c
mov r9, qword [r14 + r8*8 + 8]
sub r9, qword [r14 + r8*8 + 0x10]
mov r8, qword [rsp + 0x40]
add r8, rax
lea rax, [r8 + 0xfffff]
and rax, 0xfffffffffff00000
cmp rax, 0x800000
mov r8, 0x800000
cmovb rax, r8
cmp rax, r9
cmova rax, r9
mov qword [rdx + 0x20], rax
add rsp, 0x48
sub dword [r15 + 0x10], 1
jle fcn.140116590
ret
movabs rax, 0x7fffffffffffffff
movabs rcx, 0x8000000000000000
vcvttsd2si rbx, xmm0
cmp rcx, rbx
je 0x140059489
nop dword [rax + rax]
cmp rbx, 1
jl 0x140059471
cmp rax, rbx
jne 0x140058eb0
vmovsd xmm2, qword [0x1402db028]
vdivsd xmm0, xmm0, xmm2
vcvttsd2si rbx, xmm0
cmp rcx, rbx
je 0x1400594d0
cmp rax, rbx
je 0x14005947d
shl rbx, 1
jmp 0x140058eb0
mov rdx, rbx
cmp byte [rdx + 0xac], 0
jne 0x14005933e
mov rcx, rax
mov r9, qword [rsp + 0x38]
jmp 0x140059010
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x28], rcx
vmovsd xmm0, qword [0x1402db038]
vmovsd xmm1, qword [0x1402db108]
mov rbx, rdx
vmovsd qword [rsp + 0x18], xmm1
nop
call fcn.140059850
nop
vmovsd xmm1, qword [rsp + 0x18]
vsubsd xmm0, xmm1, xmm0
vmovsd xmm2, qword [0x1402db038]
vucomisd xmm2, xmm0
nop dword [rax]
jbe 0x140059206
mov ebx, dword [rsp + 0xc]
test ebx, ebx
je 0x140059598
vmovsd xmm2, qword [rsp + 0x20]
vmovsd xmm0, qword [r14 + 0x2c8bf0]
vmovsd xmm3, qword [r14 + 0x2c8c18]
vblendvpd xmm4, xmm0, xmm2, xmm2
vblendvpd xmm0, xmm2, xmm0, xmm2
vmaxsd xmm0, xmm4, xmm0
vcmpunordsd xmm5, xmm4, xmm4
vblendvpd xmm0, xmm0, xmm4, xmm5
vblendvpd xmm4, xmm3, xmm2, xmm2
vblendvpd xmm3, xmm2, xmm3, xmm2
vmaxsd xmm3, xmm4, xmm3
vcmpunordsd xmm5, xmm4, xmm4
vblendvpd xmm3, xmm3, xmm4, xmm5
vaddsd xmm0, xmm0, xmm3
vblendvpd xmm4, xmm0, xmm1, xmm0
vblendvpd xmm0, xmm1, xmm0, xmm0
vminsd xmm0, xmm4, xmm0
vcmpunordsd xmm1, xmm4, xmm4
vblendvpd xmm0, xmm0, xmm4, xmm1
vucomisd xmm0, xmm2
ja 0x1400592a5
mov edx, dword [rsp + 0x34]
mov rax, qword [rsp + 0x28]
movabs rsi, 0x47ae147ae147ae15
mov rbx, qword [rsp + 0x10]
jmp 0x140058fac
mov edx, dword [rsp + 0x34]
mov rax, qword [rsp + 0x28]
movabs rsi, 0x47ae147ae147ae15
mov rbx, qword [rsp + 0x10]
nop
jmp 0x140058fac
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0xc], ebx
vmovsd qword [rsp + 0x20], xmm1
nop dword [rax]
jmp 0x140059124
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0xc], ebx
vmovsd qword [rsp + 0x20], xmm1
nop dword [rax]
jmp 0x140059124
vmovsd xmm2, qword [0x1402db028]
mov r8, r9
shr r8, 1
and r9, 1
or r8, r9
vxorpd xmm3, xmm3, xmm3
vcvtsi2sd xmm3, xmm3, r8
vmulsd xmm2, xmm3, xmm2
vsubsd xmm0, xmm2, xmm0
vucomisd xmm0, xmm0
jnp 0x140059096
mov rbx, 0
nop dword [rax]
jmp 0x140058eb0
movabs rsi, 0x47ae147ae147ae15
mov rdx, qword [rsp + 0x10]
mov rax, qword [rdx + 0x70]
mov rcx, qword [rdx + 0x18]
lea r8, [rax + 0xa]
mov rax, rcx
mov rbx, rdx
mul rsi
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 6
imul r8, rax
lea rax, [r8 + 0xfffff]
and rax, 0xfffffffffff00000
test rax, rax
jl 0x140059454
vxorpd xmm1, xmm1, xmm1
vcvtsi2sd xmm1, xmm1, rax
vdivsd xmm0, xmm3, xmm0
vmulsd xmm0, xmm1, xmm0
vucomisd xmm0, xmm0
jnp 0x140059390
mov rdi, 0
inc qword [rbx + 0xa0]
add rdi, rcx
lea rax, [rdi + 0xfffff]
and rax, 0xfffffffffff00000
cmp rcx, rax
cmova rax, rcx
mov edx, dword [rsp + 0x34]
jmp 0x140058fac
mov qword [rsp + 0x28], rax
vmovsd xmm0, qword [0x1402db038]
vmovsd xmm1, qword [0x1402db108]
mov rcx, rdx
call fcn.140059850
nop
vmovsd xmm1, qword [0x1402db108]
vsubsd xmm0, xmm1, xmm0
vmovsd xmm1, qword [0x1402db038]
vucomisd xmm1, xmm0
jp 0x14005937c
jbe 0x1400593fa
mov rcx, qword [rsp + 0x28]
mov r9, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x10]
jmp 0x140059010
movabs rax, 0x7fffffffffffffff
movabs rdx, 0x8000000000000000
vcvttsd2si rdi, xmm0
cmp rdx, rdi
je 0x140059509
cmp rdi, 1
jl 0x1400594b6
nop dword [rax]
cmp rax, rdi
jne 0x140059316
vmovsd xmm1, qword [0x1402db028]
vdivsd xmm0, xmm0, xmm1
vcvttsd2si rdi, xmm0
nop word [rax + rax]
cmp rdx, rdi
je 0x140059526
cmp rax, rdi
je 0x1400594fd
shl rdi, 1
jmp 0x140059316
movabs rsi, 0x47ae147ae147ae15
mov rdx, qword [rsp + 0x10]
mov r8, qword [rdx + 0x10]
mov rcx, qword [rdx + 0x18]
mov rax, rcx
mul rsi
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 6
mov rdx, rax
shl rdx, 3
shl rax, 1
add rdx, rax
shr rdx, 2
mov rax, r8
add rax, rcx
mov r8, rcx
mov r9, rax
mov qword [rsp + 0x28], rcx
call fcn.14005a540
nop
jmp 0x140058ff7
vmovsd xmm1, qword [0x1402db028]
shr rax, 1
vxorpd xmm4, xmm4, xmm4
vcvtsi2sd xmm4, xmm4, rax
vmulsd xmm1, xmm4, xmm1
jmp 0x1400592fd
mov rbx, 0
jmp 0x140058eb0
mov rbx, 0xffffffffffffffff
jmp 0x140058eb0
vmovupd xmm2, xmm1
mov rdx, rbx
mov rbx, qword [rsp + 0x10]
vucomisd xmm0, xmm0
jp 0x140059545
vucomisd xmm0, xmm2
ja 0x1400594c5
mov rbx, rdx
mov rdx, qword [rsp + 0x10]
jmp 0x1400590b8
mov rdi, 0
nop
jmp 0x140059316
mov rdx, rbx
mov rbx, rax
jmp 0x1400590b8
vmovupd xmm2, xmm1
mov rdx, rbx
mov rbx, qword [rsp + 0x10]
vucomisd xmm0, xmm0
jp 0x140059554
vucomisd xmm0, xmm2
ja 0x14005951b
mov rbx, rdx
mov rdx, qword [rsp + 0x10]
jmp 0x1400590ed
mov rdi, 0xffffffffffffffff
jmp 0x140059316
vucomisd xmm0, xmm2
jbe 0x1400593b2
mov rdi, rax
jmp 0x1400593b2
mov rdx, rbx
mov rbx, rax
jmp 0x1400590ed
vucomisd xmm0, xmm0
jp 0x140059565
vucomisd xmm0, xmm2
jbe 0x1400593e9
mov rdi, rax
nop
jmp 0x1400593e9
mov rdx, rbx
mov rbx, 0
jmp 0x1400590b8
mov rdx, rbx
mov rbx, 0
nop
jmp 0x1400590ed
mov rdi, 0
jmp 0x1400593e9
mov qword [rsp + 0x40], r8
call fcn.1401079b0
nop
nop dword [rax]
call fcn.1401079b0
nop
call fcn.1401079b0
nop
call fcn.1401079b0
nop
call fcn.1401079b0
nop
mov ecx, dword [rsp + 0x34]
mov rax, qword [rsp + 0x28]
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x10]
call fcn.1401079b0
nop
int3