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

Disassembly:
mov rax, rsp
push rbx
push r13
sub rsp, 0x68
mov qword [rax + 0x20], rbp
xor r13d, r13d
mov qword [rax - 0x18], rsi
mov rbx, rcx
mov rsi, qword [0x180058478]
mov r11d, r13d
mov qword [rax - 0x20], rdi
mov edi, r13d
mov qword [rax - 0x30], r14
mov qword [rax - 0x38], r15
movaps xmmword [rax - 0x48], xmm6
mov byte [rcx + 0x61], 0
mov ecx, dword [rcx]
movaps xmmword [rax - 0x58], xmm7
mov eax, ecx
test ecx, ecx
jle 0x18003e7a1
mov r10d, r13d
mov r9d, r13d
mov r8d, r13d
mov edx, r13d
mov rcx, qword [rbx + 8]
mov eax, dword [rbx + 0x24]
cmp dword [rdx + rcx + 8], eax
jge 0x18003e76c
mov eax, dword [rbx + 0x14]
cmp dword [rdx + rcx], eax
jne 0x18003e78e
mov dword [rbx + 0x14], r13d
jmp 0x18003e78e
cmp r9, r10
je 0x18003e785
movups xmm0, xmmword [rdx + rcx]
movups xmm1, xmmword [rdx + rcx + 0x10]
movups xmmword [r8 + rcx], xmm0
movups xmmword [r8 + rcx + 0x10], xmm1
inc edi
inc r9
add r8, 0x20
mov ecx, dword [rbx]
inc r11d
inc r10
add rdx, 0x20
mov eax, ecx
cmp r11d, ecx
jl 0x18003e751
mov r14d, 8
cmp ecx, edi
je 0x18003e7d9
mov ecx, dword [rbx + 4]
cmp edi, ecx
jle 0x18003e7d3
test ecx, ecx
je 0x18003e7c1
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18003e7c4
mov eax, r14d
cmp eax, edi
mov edx, edi
mov rcx, rbx
cmovg edx, eax
call fcn.180041ef0
mov dword [rbx], edi
mov ecx, edi
mov eax, edi
mov edx, dword [rbx + 0x18]
mov edi, r13d
mov dword [rsp + 0x80], r13d
test edx, edx
je 0x18003e7fd
mov edi, edx
mov dword [rsp + 0x80], edx
mov dword [rbx + 0x14], edx
mov ecx, eax
mov dword [rbx + 0x18], r13d
mov r8d, dword [rbx + 0x5c]
xorps xmm7, xmm7
test r8d, r8d
je 0x18003e8b4
mov eax, r13d
test ecx, ecx
jle 0x18003e8b0
mov r9, qword [rbx + 8]
mov rdx, r9
nop
cmp dword [rdx], r8d
je 0x18003e833
mov ecx, dword [rbx]
inc eax
add rdx, 0x20
cmp eax, ecx
jl 0x18003e820
jmp 0x18003e8b0
movsxd r8, eax
shl r8, 5
add r8, r9
je 0x18003e8b0
movsx eax, byte [rbx + 0x60]
mov rdx, r8
sub rdx, r9
sar rdx, 5
add edx, eax
js 0x18003e88e
cmp edx, ecx
jge 0x18003e88e
movups xmm2, xmmword [r8]
movsxd rax, edx
movups xmm3, xmmword [r8 + 0x10]
shl rax, 5
add rax, r9
movups xmm0, xmmword [rax]
movups xmmword [r8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r8 + 0x10], xmm1
movups xmmword [rax], xmm2
movups xmmword [rax + 0x10], xmm3
mov eax, dword [rax]
cmp eax, dword [rbx + 0x14]
cmove edi, eax
mov dword [rsp + 0x80], edi
test dword [rbx + 0x58], 0x400000
je 0x18003e8b0
mov rcx, qword [0x180058478]
comiss xmm7, dword [rcx + 0x2ef8]
jb 0x18003e8b0
mov eax, dword [rcx + 0x1c]
mov dword [rcx + 0x2ef8], eax
mov dword [rbx + 0x5c], r13d
mov eax, dword [rbx + 0x58]
shr eax, 2
test al, 1
je 0x18003e8d7
mov rcx, rbx
call fcn.18003f360
test rax, rax
je 0x18003e8d7
mov edi, dword [rax]
mov dword [rsp + 0x80], edi
mov dword [rbx + 0x14], edi
mov r15d, dword [rbx]
mov ecx, dword [rsi + 0x1f74]
cmp r15d, ecx
jle 0x18003e984
test ecx, ecx
je 0x18003e8f8
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea r14d, [rcx + rax]
cmp r14d, r15d
mov ebp, r15d
cmovg ebp, r14d
cmp ebp, ecx
jle 0x18003e984
mov rax, qword [0x180058478]
test rax, rax
je 0x18003e918
inc dword [rax + 0x3bc]
mov rdx, qword [0x180058470]
movsxd rcx, ebp
shl rcx, 3
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdx, qword [rsi + 0x1f78]
mov r14, rax
test rdx, rdx
je 0x18003e977
movsxd r8, dword [rsi + 0x1f70]
mov rcx, rax
shl r8, 3
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsi + 0x1f78]
test rcx, rcx
je 0x18003e96b
mov rax, qword [0x180058478]
test rax, rax
je 0x18003e96b
dec dword [rax + 0x3bc]
mov rdx, qword [0x180058470]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rsi + 0x1f78], r14
mov dword [rsi + 0x1f74], ebp
mov dword [rsi + 0x1f70], r15d
xor bpl, bpl
mov r8d, dword [rbx]
movaps xmm6, xmm7
mov dword [rsp + 0x88], ebp
mov r15, r13
mov r14d, r13d
mov ecx, r8d
test r8d, r8d
jle 0x18003ea82
mov qword [rsp + 0x50], r12
mov edi, ebp
mov r12, r13
nop word [rax + rax]
mov rbp, qword [rbx + 8]
mov ecx, 1
add rbp, r13
test r15, r15
je 0x18003e9da
mov eax, dword [rbp + 0xc]
cmp dword [r15 + 0xc], eax
jge 0x18003e9dd
mov r15, rbp
mov eax, dword [rbx + 0x14]
cmp dword [rbp], eax
mov r8d, dword [rbp + 4]
movsxd rdx, dword [rbp + 0x10]
movzx edi, dil
cmove edi, ecx
add rdx, qword [rbx + 0x78]
shr r8d, 0x14
lea rcx, [rsp + 0x90]
not r8b
and r8b, 1
call fcn.18003ffc0
movss xmm1, dword [rax]
movss dword [rbp + 0x1c], xmm1
test r14d, r14d
jle 0x18003ea26
movss xmm0, dword [rsi + 0x15a8]
jmp 0x18003ea29
movaps xmm0, xmm7
mov rax, qword [rsi + 0x1f78]
addss xmm1, xmm0
add r13, 0x20
mov dword [r12 + rax], r14d
inc r14d
mov rcx, qword [rsi + 0x1f78]
addss xmm6, xmm1
mov eax, dword [rbp + 0x1c]
mov dword [rcx + r12 + 4], eax
add r12, 8
mov r8d, dword [rbx]
mov ecx, r8d
cmp r14d, r8d
jl 0x18003e9c0
mov r12, qword [rsp + 0x50]
xor r13d, r13d
mov dword [rsp + 0x88], edi
mov ebp, dword [rsp + 0x88]
mov edi, dword [rsp + 0x80]
movss xmm0, dword [rbx + 0x30]
subss xmm0, dword [rbx + 0x28]
mov r14, qword [rsp + 0x48]
subss xmm0, xmm7
maxss xmm0, xmm7
comiss xmm6, xmm0
jbe 0x18003eb09
subss xmm6, xmm0
comiss xmm6, xmm7
jbe 0x18003eb09
test byte [rbx + 0x58], 0x40
je 0x18003eb09
mov edx, dword [rsi + 0x1f70]
movaps xmm2, xmm6
mov rcx, qword [rsi + 0x1f78]
call fcn.180032630
mov ecx, dword [rbx]
mov r8d, r13d
test ecx, ecx
jle 0x18003eb4a
mov rdx, r13
mov rcx, qword [rsi + 0x1f78]
lea rdx, [rdx + 8]
inc r8d
cvttss2si eax, dword [rcx + rdx - 4]
movsxd rcx, dword [rcx + rdx - 8]
shl rcx, 5
movd xmm0, eax
mov rax, qword [rbx + 8]
cvtdq2ps xmm0, xmm0
movss dword [rcx + rax + 0x18], xmm0
mov ecx, dword [rbx]
cmp r8d, ecx
jl 0x18003ead2
jmp 0x18003eb4a
mov rax, qword [0x180058478]
mov edx, r13d
movss xmm1, dword [rax + 0x1910]
mulss xmm1, dword [0x18004e40c]
test r8d, r8d
jle 0x18003eb4a
mov rax, qword [rbx + 8]
add rax, 0x18
movss xmm0, dword [rax + 4]
lea rax, [rax + 0x20]
minss xmm0, xmm1
inc edx
movss dword [rax - 0x20], xmm0
mov ecx, dword [rbx]
cmp edx, ecx
jl 0x18003eb30
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm2, xmm7
mov dword [rbx + 0x44], r13d
movaps xmm3, xmm7
mov r8d, r13d
test ecx, ecx
jle 0x18003ebb7
mov rdx, r13
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + 8]
movss dword [rdx + rcx + 0x14], xmm2
test edi, edi
jne 0x18003eb8a
mov eax, dword [rdx + rcx]
cmp dword [rsi + 0x1ba0], eax
cmove edi, eax
movss xmm1, dword [rsi + 0x15a8]
inc r8d
movaps xmm0, xmm1
addss xmm0, dword [rdx + rcx + 0x18]
addss xmm1, dword [rdx + rcx + 0x1c]
mov ecx, dword [rbx]
add rdx, 0x20
addss xmm2, xmm0
addss xmm3, xmm1
cmp r8d, ecx
jl 0x18003eb70
subss xmm2, dword [rsi + 0x15a8]
maxss xmm2, xmm7
movss dword [rbx + 0x3c], xmm2
subss xmm3, dword [rsi + 0x15a8]
maxss xmm3, xmm7
movss dword [rbx + 0x40], xmm3
movss xmm0, dword [rbx + 0x30]
subss xmm0, dword [rbx + 0x28]
comiss xmm2, xmm0
jbe 0x18003ec0a
cmp ecx, 1
jle 0x18003ec0a
mov eax, dword [rbx + 0x58]
test al, 0x10
jne 0x18003ec0a
test al, al
jns 0x18003ec0a
mov rcx, rbx
call fcn.18003ef60
test rax, rax
je 0x18003ec0a
mov edi, dword [rax]
mov dword [rbx + 0x14], edi
test bpl, bpl
mov rbp, qword [rsp + 0x98]
jne 0x18003ec1d
mov dword [rbx + 0x14], r13d
jmp 0x18003ec24
mov eax, dword [rbx + 0x14]
test eax, eax
jne 0x18003ec3a
cmp dword [rbx + 0x18], 0
mov eax, r13d
jne 0x18003ec3a
test r15, r15
je 0x18003ec3a
mov edi, dword [r15]
mov eax, edi
mov dword [rbx + 0x14], edi
mov r15, qword [rsp + 0x40]
mov dword [rbx + 0x1c], eax
mov byte [rbx + 0x62], 0
test edi, edi
je 0x18003ed3b
mov edx, dword [rbx]
mov ecx, r13d
test edx, edx
jle 0x18003ed3b
mov r9, qword [rbx + 8]
mov rax, r9
cmp dword [rax], edi
je 0x18003ec75
inc ecx
add rax, 0x20
cmp ecx, edx
jl 0x18003ec62
jmp 0x18003ed3b
movsxd r8, ecx
shl r8, 5
add r8, r9
je 0x18003ed3b
mov rax, qword [0x180058478]
movss xmm0, dword [rax + 0x1910]
test ecx, ecx
jle 0x18003eca4
movaps xmm1, xmm0
xorps xmm1, xmmword [0x18004e900]
jmp 0x18003eca7
movaps xmm1, xmm7
movss xmm2, dword [r8 + 0x14]
lea eax, [rcx + 1]
addss xmm1, xmm2
cmp eax, edx
jl 0x18003ecc0
movss xmm0, dword [0x18004e378]
addss xmm2, dword [r8 + 0x18]
movss xmm4, dword [rbx + 0x4c]
comiss xmm4, xmm1
mov dword [rbx + 0x50], r13d
addss xmm2, xmm0
ja 0x18003ed24
movss xmm5, dword [rbx + 0x28]
movaps xmm0, xmm2
movss xmm3, dword [rbx + 0x30]
subss xmm0, xmm1
subss xmm3, xmm5
comiss xmm0, xmm3
jae 0x18003ed24
movaps xmm0, xmm2
subss xmm0, xmm3
comiss xmm0, xmm4
jbe 0x18003ed3b
subss xmm1, xmm3
subss xmm1, dword [rbx + 0x48]
maxss xmm1, xmm7
movss dword [rbx + 0x50], xmm1
movss xmm0, dword [rbx + 0x30]
subss xmm0, xmm5
subss xmm2, xmm0
movss dword [rbx + 0x4c], xmm2
jmp 0x18003ed3b
movss xmm0, dword [rbx + 0x48]
subss xmm0, xmm2
movss dword [rbx + 0x4c], xmm1
maxss xmm0, xmm7
movss dword [rbx + 0x50], xmm0
movss xmm0, dword [rbx + 0x30]
subss xmm0, dword [rbx + 0x28]
movss xmm3, dword [rbx + 0x3c]
movss xmm4, dword [rbx + 0x48]
movaps xmm1, xmm3
movss xmm2, dword [rbx + 0x4c]
mov rdi, qword [rsp + 0x58]
subss xmm1, xmm0
minss xmm4, xmm1
maxss xmm4, xmm7
movss dword [rbx + 0x48], xmm4
movss xmm0, dword [rbx + 0x30]
subss xmm0, dword [rbx + 0x28]
subss xmm3, xmm0
minss xmm2, xmm3
maxss xmm2, xmm7
movaps xmm7, xmmword [rsp + 0x20]
ucomiss xmm4, xmm2
movss dword [rbx + 0x4c], xmm2
jp 0x18003ed9d
jne 0x18003ed9d
mov dword [rbx + 0x54], r13d
jmp 0x18003ee27
movss xmm0, dword [rsi + 0x1910]
movaps xmm1, xmm2
movss xmm3, dword [rbx + 0x54]
subss xmm1, xmm4
mulss xmm0, dword [0x18004e418]
mov eax, dword [rbx + 0x24]
inc eax
andps xmm1, xmmword [0x18004e8d0]
maxss xmm3, xmm0
divss xmm1, dword [0x18004e330]
maxss xmm3, xmm1
movss dword [rbx + 0x54], xmm3
cmp eax, dword [rsi + 0x19b0]
jl 0x18003ee1f
movss xmm1, dword [rsi + 0x1910]
mulss xmm1, dword [0x18004e3f8]
movss xmm0, dword [rbx + 0x50]
comiss xmm0, xmm1
ja 0x18003ee1f
comiss xmm2, xmm4
mulss xmm3, dword [rsi + 0x18]
jbe 0x18003ee10
addss xmm4, xmm3
minss xmm4, xmm2
jmp 0x18003ee22
comiss xmm4, xmm2
jbe 0x18003ee22
subss xmm4, xmm3
maxss xmm4, xmm2
jmp 0x18003ee22
movaps xmm4, xmm2
movss dword [rbx + 0x48], xmm4
test dword [rbx + 0x58], 0x100000
mov rsi, qword [rsp + 0x60]
jne 0x18003ee5a
mov ecx, dword [rbx + 0x74]
test ecx, ecx
jns 0x18003ee56
mov eax, ecx
cdq
sub eax, edx
mov edx, r13d
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x70]
test eax, eax
cmovg edx, eax
call fcn.18001e250
mov dword [rbx + 0x70], r13d
add rsp, 0x68
pop r13
pop rbx
ret