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

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x60
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rcx
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 0
mov rax, qword [rcx]
mov rbx, rdx
mov edx, dword [rdx + 0x50]
xor r8d, r8d
call qword [rax + 0x28]
mov rcx, qword [rbp]
lea r9, [rsp + 0x20]
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
mov r8d, 0x20
call qword [rax + 0x18]
mov r11d, dword [rsp + 0x40]
test r11d, r11d
jne 0x180085870
or eax, 0xffffffff
jmp 0x180085b9d
movzx r8d, word [rsp + 0x30]
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x24], edi
test r8b, 4
je 0x1800858b1
mov rcx, qword [rbp]
lea r9, [rsp + 0x20]
lea r8d, [rdi + 5]
mov rax, qword [rcx]
lea rdx, [rsp + 0x24]
call qword [rax + 0x18]
mov r11d, dword [rsp + 0x40]
mov r8w, word [rsp + 0x30]
mov qword [rsp + 0x90], rsi
test r8b, 0x10
je 0x1800858e8
mov rcx, qword [rbp]
lea rsi, [rbx + 0x54]
lea r9, [rsp + 0x20]
mov rax, qword [rcx]
mov r8d, 4
mov rdx, rsi
call qword [rax + 0x18]
mov r11d, dword [rsp + 0x40]
mov r8w, word [rsp + 0x30]
jmp 0x1800858ef
lea rsi, [rbx + 0x54]
mov dword [rsi], r11d
movzx edx, word [rsp + 0x2c]
movzx r9d, word [rsp + 0x2e]
mov r12d, dword [rsp + 0x44]
mov eax, 0xf3c
movzx ecx, r8w
mov dword [rbx], edx
mov dword [rbx + 4], r9d
mov dword [rbx + 0xc], r11d
mov dword [rbx + 0x14], r12d
mov dword [rbx + 8], ecx
lea r14d, [rax - 0x64]
cmp dx, ax
jae 0x18008593a
cmp dx, r14w
jb 0x180085933
mov eax, 0xfa0
cmp r9w, ax
je 0x18008593a
mov eax, 0x2400
jmp 0x18008593f
mov eax, 0x12000
mov dword [rbx + 0x10], eax
mov eax, 0xf6e
cmp dx, ax
jb 0x180085953
mov dword [rbx + 0x10], 0x48000
movzx r10d, word [rsp + 0x32]
mov eax, dword [rsp + 0x34]
mov dword [rbx + 0x18], r10d
mov dword [rbx + 0x1c], eax
test cl, 1
je 0x180085970
mov ecx, 8
jmp 0x180085976
and ecx, 8
or ecx, 0x10
mov eax, ecx
mov dword [rbx + 0x20], ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov r9d, eax
mov dword [rbx + 0x24], eax
imul r9d, r10d
mov dword [rbx + 0x28], r9d
test r11d, r11d
jne 0x18008599b
xor edx, edx
jmp 0x1800859a6
lea edx, [r11 - 1]
imul edx, dword [rbx + 0x10]
add edx, r12d
mov dword [rbx + 0x40], edx
test r8b, 0x20
je 0x1800859b6
mov eax, 0x2c
jmp 0x1800859ba
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x3c]
mov dword [rbx + 0x2c], eax
imul r9d, edx
add eax, r9d
mov dword [rbx + 0x34], ecx
mov dword [rbx + 0x30], r9d
add eax, ecx
mov dword [rbx + 0x38], eax
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov ecx, dword [rbx + 0x1c]
movd xmm1, dword [rbx + 0x40]
movd xmm0, ecx
mov dword [rbx + 0x3c], eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x1800c3600]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si edx, xmm1
mov dword [rbx + 0x44], edx
test edx, edx
jg 0x180085a10
xor eax, eax
jmp 0x180085a30
movd xmm1, eax
movd xmm0, edx
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
mulsd xmm1, qword [0x1800c5248]
divsd xmm1, xmm0
cvttsd2si eax, xmm1
imul ecx, dword [rbx + 0x28]
mov dword [rbx + 0x48], eax
mov eax, 0x10624dd3
shl ecx, 3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
test byte [rsp + 0x30], 0x20
mov dword [rbx + 0x4c], edx
jne 0x180085ad2
mov ecx, dword [rsp + 0x38]
call fcn.18006a7f8
cmp dword [rbx + 0x8c], 0
mov r12, rax
je 0x180085a96
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x180085a96
cmp dword [rbx + 0x88], 0
je 0x180085a86
call fcn.18006a4d4
jmp 0x180085a8b
call fcn.18006a4d4
mov qword [rbx + 0x80], 0
mov dword [rbx + 0x8c], 1
mov dword [rbx + 0x88], 1
mov qword [rbx + 0x80], r12
mov rdx, r12
test r12, r12
je 0x180085b73
mov rcx, qword [rbp]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x20]
mov r10, qword [rcx]
call qword [r10 + 0x18]
movsxd rcx, dword [rsi]
mov eax, 4
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.18006a7f8
cmp dword [rbx + 0x6c], 0
mov r12, rax
je 0x180085b15
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x180085b15
cmp dword [rbx + 0x68], 0
je 0x180085b08
call fcn.18006a4d4
jmp 0x180085b0d
call fcn.18006a4d4
mov qword [rbx + 0x60], 0
mov dword [rbx + 0x6c], 1
mov dword [rbx + 0x68], 1
mov qword [rbx + 0x60], r12
mov rdx, r12
test r12, r12
je 0x180085b73
mov rcx, qword [rbp]
mov r8d, dword [rsi]
lea r9, [rsp + 0x20]
mov rax, qword [rcx]
shl r8d, 2
call qword [rax + 0x18]
cmp word [rsp + 0x2c], r14w
ja 0x180085b89
movsxd rcx, dword [rsi]
call fcn.18006a7f8
mov r9d, 1
lea rcx, [rbx + 0x70]
mov rdx, rax
mov r8d, r9d
call fcn.180081b80
mov rdx, qword [rbx + 0x70]
test rdx, rdx
jne 0x180085b77
mov eax, edi
jmp 0x180085b8b
mov rcx, qword [rbp]
mov r8d, dword [rsi]
lea r9, [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x18]
xor eax, eax
mov rsi, qword [rsp + 0x90]
mov r12, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18006a4f0
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret