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

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x58
mov rbx, qword [0x1400aec40]
xor r15d, r15d
mov qword [rsp + 0x98], r12
mov esi, r15d
mov qword [rsp + 0x50], r14
xor r14b, r14b
movaps xmmword [rsp + 0x40], xmm6
mov eax, dword [rbx + 0x1d18]
sub eax, 1
js 0x140015580
mov r8, qword [rbx + 0x1d20]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
mov r9, qword [r8]
test r9, r9
je 0x140015576
test dword [r9 + 0xc], 0x8000000
jne 0x140015600
sub r8, 0x30
sub rdx, 1
jns 0x140015560
lea rdi, [rbx + 0x1ea0]
mov r9, r15
mov r10, qword [rdi]
xorps xmm6, xmm6
cmp qword [rbx + 0x1ea8], rsi
je 0x1400155d8
test r10, r10
jne 0x1400155d8
comiss xmm6, dword [rbx + 0x1eec]
movss xmm1, dword [rbx + 0x1ebc]
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x1400a3e38]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x1ebc], xmm1
jb 0x1400155d8
comiss xmm6, xmm1
jb 0x1400155d8
mov qword [rbx + 0x1ea8], r15
mov r12d, 1
test r9, r9
jne 0x140015612
test r10, r10
jne 0x140015612
mov edx, r12d
lea ecx, [r12 + 2]
call fcn.140013210
comiss xmm0, xmm6
jbe 0x140015612
movzx r8d, dl
jmp 0x14001561f
lea rdi, [rbx + 0x1ea0]
mov r10, r15
mov qword [rdi], r15
jmp 0x14001558d
xor r8b, r8b
test r9, r9
jne 0x140015644
test r10, r10
jne 0x140015644
cmp byte [rbx + 0x13c], sil
je 0x140015644
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x140015644
call fcn.14000a0a0
test al, al
je 0x140015644
test byte [rbx + 8], r12b
je 0x140015644
movzx r10d, r12b
jmp 0x140015647
xor r10b, r10b
test r8b, r8b
jne 0x140015655
test r10b, r10b
je 0x1400156f6
mov rax, qword [rbx + 0x1d70]
test rax, rax
jne 0x1400156c8
movsxd rcx, dword [rbx + 0x1b48]
lea edx, [rcx - 1]
test edx, edx
js 0x1400156f6
movsxd rax, edx
mov r11, rcx
nop dword [rax]
cmp rax, r11
jge 0x1400156f6
cmp rax, 0xffffffff80000001
je 0x1400156f6
mov r9, qword [rbx + 0x1b50]
mov rcx, qword [r9 + rax*8]
cmp byte [rcx + 0xbf], sil
je 0x1400156b3
cmp rcx, qword [rcx + 0x3f0]
jne 0x1400156b3
test dword [rcx + 0xc], 0x80000
je 0x1400156bc
dec edx
sub rax, r12
jns 0x140015680
jmp 0x1400156f6
movsxd rax, edx
mov rax, qword [r9 + rax*8]
test rax, rax
je 0x1400156f6
mov rax, qword [rax + 0x3f0]
xor r10b, r12b
mov qword [rbx + 0x1ea8], rax
mov qword [rdi], rax
movzx eax, r10b
mov byte [rbx + 0x1ec0], al
add eax, 3
mov dword [rbx + 0x1da4], eax
mov qword [rbx + 0x1eb8], r15
movss xmm0, dword [rbx + 0x1eb8]
mov r10, qword [rdi]
movss xmm5, dword [0x1400a3ddc]
mov r8, r10
movaps xmmword [rsp + 0x30], xmm7
addss xmm0, dword [rbx + 0x18]
movss dword [rbx + 0x1eb8], xmm0
test r10, r10
je 0x1400157e6
cmp dword [rbx + 0x1da4], 4
jne 0x1400157e6
subss xmm0, dword [0x1400a3d84]
divss xmm0, dword [0x1400a3d70]
comiss xmm6, xmm0
jbe 0x14001574e
movaps xmm1, xmm6
jmp 0x140015755
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm7, dword [rbx + 0x1ebc]
mov edx, 4
maxss xmm7, xmm1
lea ecx, [rdx + 9]
movss dword [rbx + 0x1ebc], xmm7
call fcn.140013210
comiss xmm0, xmm6
mov r9d, r15d
lea ecx, [rdx + 8]
seta r9b
call fcn.140013210
comiss xmm0, xmm6
mov ecx, r15d
mov r8, r10
seta cl
sub ecx, r9d
je 0x1400157ae
call fcn.1400153c0
mov r8, qword [rdi]
movaps xmm7, xmm5
mov dword [rbx + 0x1ebc], 0x3f800000
movss xmm0, dword [rbx + 0x34c]
comiss xmm0, xmm6
ja 0x1400157e6
comiss xmm5, xmm7
seta al
and byte [rbx + 0x1ec0], al
je 0x1400157de
cmp qword [rbx + 0x1d70], rsi
je 0x1400157e1
movzx r14d, r12b
mov qword [rdi], r15
jmp 0x140015861
mov rsi, r8
mov qword [rdi], r15
jmp 0x140015861
test r8, r8
je 0x140015861
cmp dword [rbx + 0x1da4], 3
jne 0x140015861
movss xmm0, dword [rbx + 0x1eb8]
subss xmm0, dword [0x1400a3d84]
divss xmm0, dword [0x1400a3d70]
comiss xmm6, xmm0
jbe 0x140015816
movaps xmm5, xmm6
jmp 0x14001581a
minss xmm5, xmm0
movss xmm0, dword [rbx + 0x1ebc]
maxss xmm0, xmm5
movss dword [rbx + 0x1ebc], xmm0
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x140015856
call fcn.14000a0a0
test al, al
je 0x140015856
cmp byte [rbx + 0x13d], sil
mov ecx, 0xffffffff
cmovne ecx, r12d
call fcn.1400153c0
mov r8, qword [rdi]
cmp byte [rbx + 0x13c], sil
cmove rsi, r8
mov edx, r12d
mov ecx, 0x10
call fcn.140013210
comiss xmm0, xmm6
movaps xmm7, xmmword [rsp + 0x30]
jbe 0x14001587e
mov byte [rbx + 0x1ec0], dl
cmp dword [rbx + 0x1be8], r15d
je 0x140015894
cmp byte [rbx + 0x1bf5], r15b
je 0x140015921
cmp byte [rbx + 0x1ec0], r15b
je 0x140015921
mov edx, 2
lea ecx, [rdx + 0xe]
call fcn.140013210
comiss xmm0, xmm6
jbe 0x140015921
lea rax, [rbx + 0x120]
test rax, rax
jne 0x1400158c6
lea rax, [rbx + 0x120]
movss xmm0, dword [rax]
movss xmm1, dword [0x1400a3ecc]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x1400158e7
comiss xmm2, xmm1
jb 0x1400158e7
movzx ecx, r12b
jmp 0x1400158e9
xor cl, cl
lea rax, [rbx + 0x3c0]
test rax, rax
jne 0x1400158fc
lea rax, [rbx + 0x120]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140015915
comiss xmm2, xmm1
jb 0x140015915
movzx eax, r12b
jmp 0x140015917
xor al, al
cmp cl, al
movzx r14d, r14b
cmove r14d, r12d
mov r11, qword [rdi]
test r11, r11
je 0x140015aca
test byte [r11 + 0xc], 4
jne 0x140015aca
mov eax, dword [rbx + 0x1da4]
cmp eax, 3
jne 0x14001595d
cmp byte [rbx + 0x13d], r15b
jne 0x140015aca
mov edx, r12d
lea rcx, [rsp + 0x80]
jmp 0x140015970
cmp eax, 4
jne 0x140015aca
mov edx, eax
lea rcx, [rsp + 0x88]
movaps xmm3, xmm6
movss dword [rsp + 0x20], xmm6
call fcn.140013390
movss xmm3, dword [rax]
ucomiss xmm3, xmm6
movss xmm4, dword [rax + 4]
jp 0x140015999
jne 0x140015999
ucomiss xmm4, xmm6
jp 0x140015999
je 0x140015aca
mov rcx, qword [r11 + 0x3e8]
movss xmm1, dword [rbx + 0xc0]
movss xmm0, dword [rbx + 0x18]
minss xmm1, dword [rbx + 0xc4]
mulss xmm0, dword [0x1400a3e94]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
mov eax, dword [rcx + 0xe4]
cvtdq2ps xmm2, xmm2
mulss xmm3, xmm2
mulss xmm4, xmm2
addss xmm3, dword [rcx + 0x48]
addss xmm4, dword [rcx + 0x4c]
test r12b, al
je 0x140015aa8
movss xmm0, dword [rcx + 0x48]
and eax, 0xfffffff1
movss xmm1, dword [rcx + 0x4c]
mov dword [rcx + 0xe4], eax
mov dword [rcx + 0xf4], 0x7f7fffff
mov dword [rcx + 0xf8], 0x7f7fffff
cvttss2si eax, xmm3
movd xmm2, eax
cvtdq2ps xmm2, xmm2
cvttss2si eax, xmm4
movss dword [rcx + 0x48], xmm2
subss xmm2, xmm0
movd xmm3, eax
cvtdq2ps xmm3, xmm3
movaps xmm0, xmm2
movss dword [rcx + 0x4c], xmm3
subss xmm3, xmm1
addss xmm0, dword [rcx + 0x118]
movaps xmm1, xmm3
addss xmm1, dword [rcx + 0x11c]
movss dword [rcx + 0x118], xmm0
movaps xmm0, xmm2
addss xmm0, dword [rcx + 0x130]
addss xmm2, dword [rcx + 0x128]
movss dword [rcx + 0x11c], xmm1
movaps xmm1, xmm3
addss xmm1, dword [rcx + 0x134]
addss xmm3, dword [rcx + 0x12c]
movss dword [rcx + 0x130], xmm0
movss dword [rcx + 0x128], xmm2
movss dword [rcx + 0x134], xmm1
movss dword [rcx + 0x12c], xmm3
test dword [rcx + 0xc], 0x100
jne 0x140015ac3
comiss xmm6, dword [rbx + 0x2fbc]
jb 0x140015ac3
mov eax, dword [rbx + 0x1c]
mov dword [rbx + 0x2fbc], eax
mov byte [rbx + 0x1dc7], r12b
movaps xmm6, xmmword [rsp + 0x40]
test rsi, rsi
je 0x140015c75
mov rax, qword [rbx + 0x1d70]
mov qword [rsp + 0x90], rbp
test rax, rax
je 0x140015aff
cmp rsi, qword [rax + 0x3f0]
je 0x140015c6a
mov rbp, qword [rax + 0x30]
jmp 0x140015b02
mov rbp, r15
mov ecx, dword [rbx + 0x1be8]
test ecx, ecx
setne al
mov byte [rbx + 0x1bf4], al
test ecx, ecx
je 0x140015b26
mov dword [rbx + 0x1bf0], r15d
mov word [rbx + 0x1bf7], r15w
mov dword [rbx + 0x1be8], r15d
mov word [rbx + 0x1bf5], r15w
mov qword [rbx + 0x1c18], r15
mov byte [rbx + 0x1bf9], r15b
mov qword [rbx + 0x1bfc], r15
mov qword [rbx + 0x1c08], r15
mov word [rbx + 0x1dc6], 0x100
mov rax, qword [rsi + 0x408]
test rax, rax
je 0x140015b74
cmp byte [rax + 0xc0], r15b
je 0x140015b74
mov rsi, rax
jmp 0x140015bcb
mov rdx, qword [rsi + 0x450]
test rdx, rdx
je 0x140015bcb
mov rdx, qword [rdx + 0x38]
test rdx, rdx
je 0x140015bcb
movsxd r8, dword [rdx]
mov rcx, r15
test r8, r8
jle 0x140015bcb
mov rdx, qword [rdx + 8]
test rcx, rcx
je 0x140015ba5
mov eax, dword [rdx + 0x14]
cmp dword [rcx + 0x14], eax
jge 0x140015bb9
mov rax, qword [rdx + 8]
test rax, rax
je 0x140015bb9
cmp byte [rax + 0xc0], r15b
cmovne rcx, rdx
add rdx, 0x30
sub r8, r12
jne 0x140015b98
test rcx, rcx
je 0x140015bcb
mov rsi, qword [rcx + 8]
xor edx, edx
mov rcx, rsi
call fcn.140011b50
mov rcx, rsi
call fcn.140010420
mov ecx, dword [rsi + 0x410]
test ecx, ecx
jne 0x140015c43
mov rdx, qword [0x1400aec40]
test dword [rsi + 0xc], 0x40000
mov dword [rdx + 0x1d7c], r15d
jne 0x140015c3d
movsxd rcx, dword [rdx + 0x1dbc]
xorps xmm0, xmm0
mov rax, qword [rdx + 0x1d70]
mov dword [rdx + 0x1d78], r15d
mov dword [rax + rcx*4 + 0x410], r15d
mov word [rdx + 0x1dc9], r12w
mov dword [rdx + 0x1dcc], r15d
movups xmmword [rdx + 0x1dd0], xmm0
mov byte [rdx + 0x1dc8], r12b
jmp 0x140015c43
mov dword [rdx + 0x1d78], ecx
cmp dword [rsi + 0x188], 2
jne 0x140015c53
mov dword [rbx + 0x1dbc], r12d
mov rcx, qword [rsi + 0x30]
cmp rcx, rbp
je 0x140015c6a
mov rax, qword [rbx + 0x1590]
test rax, rax
je 0x140015c6a
call rax
mov rbp, qword [rsp + 0x90]
mov qword [rdi], r15
mov r12, qword [rsp + 0x98]
test r14b, r14b
mov r14, qword [rsp + 0x50]
je 0x140015d38
mov rsi, qword [rbx + 0x1d70]
test rsi, rsi
je 0x140015d38
lea rcx, [rsi + 0x3e0]
mov rdi, rsi
cmp qword [rcx], r15
je 0x140015ceb
nop word [rax + rax]
test byte [rdi + 0x188], 2
jne 0x140015cd7
mov eax, dword [rdi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x140015cd7
mov rdi, qword [rcx]
lea rcx, [rdi + 0x3e0]
cmp qword [rcx], r15
jne 0x140015cb0
cmp rdi, rsi
je 0x140015ceb
mov rcx, rdi
call fcn.140010420
mov qword [rdi + 0x408], rsi
mov rax, qword [rbx + 0x1d70]
mov word [rbx + 0x1dc6], 0x100
test byte [rax + 0x188], 2
je 0x140015d30
mov ecx, dword [rbx + 0x1dbc]
xor ecx, 1
cmp ecx, 1
jne 0x140015d33
cmp qword [rdi + 0x450], r15
jne 0x140015d33
mov dword [rax + 0x414], r15d
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
jmp fcn.140012f50
mov ecx, r15d
call fcn.140012f50
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret