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

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
push r13
sub rsp, 0x58
mov rbx, qword [0x1801ad7e0]
xor r13d, r13d
mov qword [rax + 0x18], r12
mov edi, r13d
mov qword [rax + 0x20], r14
xor r12b, r12b
mov qword [rax - 0x28], r15
movaps xmmword [rax - 0x38], xmm6
mov eax, dword [rbx + 0x1dd8]
sub eax, 1
js 0x18004c770
mov r8, qword [rbx + 0x1de0]
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 0x18004c766
test dword [r9 + 0xc], 0x8000000
jne 0x18004c7fa
sub r8, 0x30
sub rdx, 1
jns 0x18004c750
mov r9, r13
xorps xmm6, xmm6
cmp qword [rbx + 0x1f38], rdi
je 0x18004c7c2
cmp qword [rbx + 0x1f30], rdi
jne 0x18004c7c2
comiss xmm6, dword [rbx + 0x1f74]
movss xmm0, dword [rbx + 0x18]
movss xmm1, dword [rbx + 0x1f4c]
mulss xmm0, dword [0x180192704]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x1f4c], xmm1
jb 0x18004c7c2
comiss xmm6, xmm1
jb 0x18004c7c2
mov qword [rbx + 0x1f38], r13
movzx r15d, byte [rbx + 8]
mov eax, 1
and r15b, 1
mov qword [rsp + 0x88], rbp
test r9, r9
jne 0x18004c806
cmp qword [rbx + 0x1f30], rdi
jne 0x18004c806
mov edx, eax
lea ecx, [rax + 2]
call fcn.18004a630
comiss xmm0, xmm6
jbe 0x18004c806
movzx esi, dl
jmp 0x18004c817
mov qword [rbx + 0x1f30], r13
jmp 0x18004c773
xor sil, sil
test r9, r9
jne 0x18004c83a
cmp qword [rbx + 0x1f30], rdi
jne 0x18004c83a
test r15b, r15b
je 0x18004c83a
cmp byte [rbx + 0x140], dil
je 0x18004c83a
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x18004c83a
call fcn.180041510
test al, al
je 0x18004c83a
mov bpl, 1
jmp 0x18004c83d
xor bpl, bpl
mov r14d, 0xffffffff
test sil, sil
jne 0x18004c84d
test bpl, bpl
je 0x18004c8a6
mov rax, qword [rbx + 0x1e08]
test rax, rax
jne 0x18004c873
mov ecx, dword [rbx + 0x1bc0]
mov r8d, r14d
dec ecx
mov edx, 0x80000001
call fcn.18004c5f0
test rax, rax
je 0x18004c8a6
mov rax, qword [rax + 0x340]
mov qword [rbx + 0x1f38], rax
mov qword [rbx + 0x1f30], rax
movzx eax, bpl
xor eax, 1
mov qword [rbx + 0x1f48], r13
add eax, 2
mov byte [rbx + 0x1f50], sil
mov dword [rbx + 0x1e44], eax
movss xmm0, dword [rbx + 0x18]
addss xmm0, dword [rbx + 0x1f48]
movss xmm5, dword [0x180192628]
movss dword [rbx + 0x1f48], xmm0
cmp qword [rbx + 0x1f30], rdi
je 0x18004c992
cmp dword [rbx + 0x1e44], 3
jne 0x18004c992
subss xmm0, dword [0x1801925c4]
movaps xmmword [rsp + 0x30], xmm7
divss xmm0, dword [0x1801925ac]
comiss xmm6, xmm0
jbe 0x18004c8fc
xorps xmm1, xmm1
jmp 0x18004c903
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm7, dword [rbx + 0x1f4c]
mov edx, 4
maxss xmm7, xmm1
lea ecx, [rdx + 9]
movss dword [rbx + 0x1f4c], xmm7
call fcn.18004a630
comiss xmm0, xmm6
mov r9d, r13d
lea ecx, [rdx + 8]
seta r9b
call fcn.18004a630
comiss xmm0, xmm6
mov ecx, r13d
seta cl
sub ecx, r9d
je 0x18004c956
call fcn.18004c680
mov dword [rbx + 0x1f4c], 0x3f800000
movaps xmm7, xmm5
movss xmm0, dword [rbx + 0x350]
comiss xmm0, xmm6
ja 0x18004c98d
comiss xmm5, xmm7
seta al
and byte [rbx + 0x1f50], al
je 0x18004c97f
cmp qword [rbx + 0x1e08], rdi
je 0x18004c986
mov r12b, 1
jmp 0x18004c986
mov rdi, qword [rbx + 0x1f30]
mov qword [rbx + 0x1f30], r13
movaps xmm7, xmmword [rsp + 0x30]
cmp qword [rbx + 0x1f30], r13
je 0x18004ca23
cmp dword [rbx + 0x1e44], 2
jne 0x18004ca23
movss xmm0, dword [rbx + 0x1f48]
subss xmm0, dword [0x1801925c4]
divss xmm0, dword [0x1801925ac]
comiss xmm6, xmm0
jbe 0x18004c9ca
xorps xmm5, xmm5
jmp 0x18004c9ce
minss xmm5, xmm0
movss xmm0, dword [rbx + 0x1f4c]
maxss xmm0, xmm5
movss dword [rbx + 0x1f4c], xmm0
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x18004ca0c
call fcn.180041510
mov ebp, 1
test al, al
je 0x18004ca11
cmp byte [rbx + 0x141], r13b
cmovne r14d, ebp
mov ecx, r14d
call fcn.18004c680
jmp 0x18004ca11
mov ebp, 1
cmp byte [rbx + 0x140], r13b
jne 0x18004ca28
mov rdi, qword [rbx + 0x1f30]
jmp 0x18004ca28
mov ebp, 1
mov r14, qword [rsp + 0x98]
test r15b, r15b
mov r15, qword [rsp + 0x50]
je 0x18004ca5d
cmp dword [rbx + 0x3c0], 4
jne 0x18004ca5d
test byte [rbx + 0x3c4], 4
jne 0x18004ca5d
mov byte [rbx + 0x1f50], 1
mov dword [rbx + 0x1e44], 2
movzx eax, byte [rbx + 0x1f50]
test al, al
je 0x18004cb50
cmp dword [rbx + 0x1e44], 2
jne 0x18004cb50
cmp dword [rbx + 0x1550], r13d
jg 0x18004ca9d
cmp byte [rbx + 0x140], r13b
jne 0x18004ca9d
cmp byte [rbx + 0x141], r13b
jne 0x18004ca9d
cmp byte [rbx + 0x143], r13b
je 0x18004caa6
mov byte [rbx + 0x1f50], r13b
xor al, al
test byte [rbx + 0x3c0], 4
jne 0x18004cb40
test byte [rbx + 0x3c4], 4
je 0x18004cb40
test al, al
je 0x18004cb40
cmp dword [rbx + 0x1c5c], r13d
je 0x18004cad6
cmp byte [rbx + 0x1c69], r13b
je 0x18004cb40
lea rax, [rbx + 0x3c8]
test rax, rax
jne 0x18004cae9
lea rax, [rbx + 0x128]
movss xmm0, dword [rax]
movss xmm1, dword [0x180192804]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x18004cb08
comiss xmm2, xmm1
jb 0x18004cb08
mov cl, 1
jmp 0x18004cb0a
xor cl, cl
lea rax, [rbx + 0x128]
test rax, rax
jne 0x18004cb1d
lea rax, [rbx + 0x128]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x18004cb34
comiss xmm2, xmm1
jb 0x18004cb34
mov al, 1
jmp 0x18004cb36
xor al, al
cmp al, cl
movzx r12d, r12b
cmove r12d, ebp
cmp byte [rbx + 0x142], r13b
jne 0x18004cb50
mov byte [rbx + 0x1f50], r13b
mov rsi, qword [rbx + 0x1f30]
test rsi, rsi
je 0x18004cc55
test byte [rsi + 0xc], 4
jne 0x18004cc55
mov eax, dword [rbx + 0x1e44]
cmp eax, 2
jne 0x18004cb86
cmp byte [rbx + 0x141], r13b
jne 0x18004cc55
mov edx, ebp
jmp 0x18004cb92
cmp eax, 3
jne 0x18004cc55
lea edx, [rax + 1]
xorps xmm3, xmm3
movss dword [rsp + 0x20], xmm6
xor r8d, r8d
lea rcx, [rsp + 0x80]
call fcn.18004a7b0
movss xmm4, dword [rax]
ucomiss xmm4, xmm6
movss xmm3, dword [rax + 4]
jp 0x18004cbc6
jne 0x18004cbc6
ucomiss xmm3, xmm6
jp 0x18004cbc6
je 0x18004cc55
mov r9, qword [rsi + 0x340]
lea rdx, [rsp + 0x80]
movss xmm1, dword [rbx + 0xc0]
mov r8d, ebp
movss xmm0, dword [rbx + 0x18]
mov rcx, r9
minss xmm1, dword [rbx + 0xc4]
mulss xmm0, dword [0x180192798]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mulss xmm4, xmm2
mulss xmm3, xmm2
addss xmm4, dword [r9 + 0x10]
addss xmm3, dword [r9 + 0x14]
movss dword [rsp + 0x80], xmm4
movss dword [rsp + 0x84], xmm3
call fcn.180046f90
test dword [r9 + 0xc], 0x100
jne 0x18004cc4e
comiss xmm6, dword [rbx + 0x3094]
jb 0x18004cc4e
mov eax, dword [rbx + 0x1c]
mov dword [rbx + 0x3094], eax
mov byte [rbx + 0x1e53], 1
movaps xmm6, xmmword [rsp + 0x40]
test rdi, rdi
je 0x18004ccd5
mov rax, qword [rbx + 0x1e08]
test rax, rax
je 0x18004cc74
cmp rdi, qword [rax + 0x340]
je 0x18004ccce
call fcn.18003ca60
mov word [rbx + 0x1e52], 0x100
mov rax, qword [rdi + 0x360]
test rax, rax
je 0x18004cc99
cmp byte [rax + 0x8f], r13b
cmovne rdi, rax
xor edx, edx
mov rcx, rdi
call fcn.180048ab0
mov rcx, rdi
call fcn.1800468f0
cmp dword [rdi + 0x368], r13d
jne 0x18004ccbe
xor edx, edx
mov rcx, rdi
call fcn.18004a400
cmp word [rdi + 0x12a], 2
jne 0x18004ccce
mov dword [rbx + 0x1e48], ebp
mov qword [rbx + 0x1f30], r13
mov rbp, qword [rsp + 0x88]
test r12b, r12b
mov r12, qword [rsp + 0x90]
je 0x18004cd8c
cmp qword [rbx + 0x1e08], r13
je 0x18004cd8c
call fcn.18003ca60
mov rdi, qword [rbx + 0x1e08]
lea rcx, [rdi + 0x338]
cmp qword [rcx], r13
je 0x18004cd3a
test byte [rdi + 0x128], 2
jne 0x18004cd3a
mov eax, dword [rdi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x18004cd3a
mov rdi, qword [rcx]
lea rcx, [rdi + 0x338]
cmp qword [rcx], r13
jne 0x18004cd13
mov rsi, qword [rbx + 0x1e08]
cmp rdi, rsi
je 0x18004cd55
mov rcx, rdi
call fcn.1800468f0
mov qword [rdi + 0x360], rsi
mov rax, qword [rbx + 0x1e08]
test byte [rax + 0x128], 2
je 0x18004cd70
mov ecx, dword [rbx + 0x1e48]
xor ecx, 1
jmp 0x18004cd73
mov ecx, r13d
cmp ecx, dword [rbx + 0x1e48]
je 0x18004cd8c
cmp ecx, 1
jne 0x18004cd87
mov dword [rax + 0x36c], r13d
call fcn.18004a350
add rsp, 0x58
pop r13
pop rdi
pop rsi
pop rbx
ret