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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov rbx, qword [0x180366cb0]
xor esi, esi
xor bpl, bpl
mov edi, esi
mov eax, dword [rbx + 0x1bc0]
sub eax, 1
js 0x18008a03f
mov r8, qword [rbx + 0x1bc8]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
nop dword [rax + rax]
mov rax, qword [r8]
test rax, rax
je 0x18008a035
test dword [rax + 0xc], 0x8000000
jne 0x18008a0c1
sub r8, 0x30
sub rdx, 1
jns 0x18008a020
mov qword [rsp + 0x50], r14
movaps xmmword [rsp + 0x40], xmm6
xorps xmm6, xmm6
cmp qword [rbx + 0x1d00], rsi
je 0x18008a098
cmp qword [rbx + 0x1cf8], rsi
jne 0x18008a098
comiss xmm6, dword [rbx + 0x1da0]
movss xmm1, dword [rbx + 0x1d14]
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x18015ffe4]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x1d14], xmm1
jb 0x18008a098
comiss xmm6, xmm1
jb 0x18008a098
mov qword [rbx + 0x1d00], rsi
mov r9, qword [rbx + 0x1cf8]
mov r14d, 1
test r9, r9
jne 0x18008a0d1
mov edx, r14d
lea ecx, [r9 + 3]
call fcn.180088110
comiss xmm0, xmm6
jbe 0x18008a0d1
movzx r8d, dl
jmp 0x18008a0d9
mov qword [rbx + 0x1cf8], rsi
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor r8b, r8b
test r9, r9
jne 0x18008a0fe
cmp byte [rbx + 0x148], sil
je 0x18008a0fe
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x18008a0fe
call fcn.180080b50
test al, al
je 0x18008a0fe
test byte [rbx + 8], r14b
je 0x18008a0fe
movzx r9d, r14b
jmp 0x18008a101
xor r9b, r9b
test r8b, r8b
jne 0x18008a10f
test r9b, r9b
je 0x18008a1a7
mov rax, qword [rbx + 0x1be0]
test rax, rax
jne 0x18008a175
movsxd rcx, dword [rbx + 0x1a28]
lea edx, [rcx - 1]
test edx, edx
js 0x18008a1a7
movsxd rax, edx
mov r10, rcx
nop
cmp rax, r10
jge 0x18008a1a7
cmp rax, 0xffffffff80000001
je 0x18008a1a7
mov r8, qword [rbx + 0x1a30]
mov rcx, qword [r8 + rax*8]
cmp byte [rcx + 0x7e], sil
je 0x18008a160
cmp rcx, qword [rcx + 0x368]
jne 0x18008a160
test dword [rcx + 0xc], 0x80000
je 0x18008a169
dec edx
sub rax, r14
jns 0x18008a130
jmp 0x18008a1a7
movsxd rax, edx
mov rax, qword [r8 + rax*8]
test rax, rax
je 0x18008a1a7
mov rax, qword [rax + 0x368]
xor r9b, r14b
mov qword [rbx + 0x1d00], rax
mov qword [rbx + 0x1cf8], rax
movzx eax, r9b
mov byte [rbx + 0x1d18], al
add eax, 3
mov dword [rbx + 0x1c10], eax
mov qword [rbx + 0x1d10], rsi
mov r10, qword [rbx + 0x1cf8]
movss xmm0, dword [rbx + 0x18]
mov r8, r10
movss xmm5, dword [0x18015ff98]
movaps xmmword [rsp + 0x30], xmm7
addss xmm0, dword [rbx + 0x1d10]
movss dword [rbx + 0x1d10], xmm0
test r10, r10
je 0x18008a2a6
cmp dword [rbx + 0x1c10], 4
jne 0x18008a2a6
subss xmm0, dword [0x18015ff4c]
divss xmm0, dword [0x18015ff40]
comiss xmm6, xmm0
jbe 0x18008a203
movaps xmm1, xmm6
jmp 0x18008a20a
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm7, dword [rbx + 0x1d14]
mov edx, 4
maxss xmm7, xmm1
lea ecx, [rdx + 9]
movss dword [rbx + 0x1d14], xmm7
call fcn.180088110
comiss xmm0, xmm6
mov r9d, esi
lea ecx, [rdx + 8]
seta r9b
call fcn.180088110
comiss xmm0, xmm6
mov ecx, esi
mov r8, r10
seta cl
sub ecx, r9d
je 0x18008a266
call fcn.180089e90
mov r8, qword [rbx + 0x1cf8]
movaps xmm7, xmm5
mov dword [rbx + 0x1d14], 0x3f800000
movss xmm0, dword [rbx + 0x358]
comiss xmm0, xmm6
ja 0x18008a2a6
comiss xmm5, xmm7
seta al
and byte [rbx + 0x1d18], al
je 0x18008a29a
cmp qword [rbx + 0x1be0], rsi
je 0x18008a29d
movzx ebp, r14b
mov qword [rbx + 0x1cf8], rsi
jmp 0x18008a325
mov rdi, r8
mov qword [rbx + 0x1cf8], rsi
jmp 0x18008a325
test r8, r8
je 0x18008a325
cmp dword [rbx + 0x1c10], 3
jne 0x18008a325
movss xmm0, dword [rbx + 0x1d10]
subss xmm0, dword [0x18015ff4c]
divss xmm0, dword [0x18015ff40]
comiss xmm6, xmm0
jbe 0x18008a2d6
movaps xmm5, xmm6
jmp 0x18008a2da
minss xmm5, xmm0
movss xmm0, dword [rbx + 0x1d14]
maxss xmm0, xmm5
movss dword [rbx + 0x1d14], xmm0
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x18008a31a
call fcn.180080b50
test al, al
je 0x18008a31a
cmp byte [rbx + 0x149], sil
mov ecx, 0xffffffff
cmovne ecx, r14d
call fcn.180089e90
mov r8, qword [rbx + 0x1cf8]
cmp byte [rbx + 0x148], sil
cmove rdi, r8
mov edx, r14d
mov ecx, reloc.WS2_32.dll_recv
call fcn.180088110
comiss xmm0, xmm6
movaps xmm7, xmmword [rsp + 0x30]
jbe 0x18008a342
mov byte [rbx + 0x1d18], dl
cmp dword [rbx + 0x1ab8], esi
je 0x18008a357
cmp byte [rbx + 0x1ac5], sil
je 0x18008a3e4
cmp byte [rbx + 0x1d18], sil
je 0x18008a3e4
mov edx, 2
lea ecx, [rdx + 0xe]
call fcn.180088110
comiss xmm0, xmm6
jbe 0x18008a3e4
lea rax, [rbx + 0x3cc]
test rax, rax
jne 0x18008a389
lea rax, [rbx + 0x130]
movss xmm0, dword [rax]
movss xmm1, dword [0x18016007c]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x18008a3aa
comiss xmm2, xmm1
jb 0x18008a3aa
movzx ecx, r14b
jmp 0x18008a3ac
xor cl, cl
lea rax, [rbx + 0x130]
test rax, rax
jne 0x18008a3bf
lea rax, [rbx + 0x130]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x18008a3d8
comiss xmm2, xmm1
jb 0x18008a3d8
movzx eax, r14b
jmp 0x18008a3da
xor al, al
cmp al, cl
movzx ebp, bpl
cmove ebp, r14d
mov r11, qword [rbx + 0x1cf8]
test r11, r11
je 0x18008a4f0
test byte [r11 + 0xc], 4
jne 0x18008a4f0
mov eax, dword [rbx + 0x1c10]
cmp eax, 3
jne 0x18008a424
cmp byte [rbx + 0x149], sil
jne 0x18008a4f0
mov edx, r14d
lea rcx, [rsp + 0x88]
jmp 0x18008a437
cmp eax, 4
jne 0x18008a4f0
mov edx, eax
lea rcx, [rsp + 0x90]
movaps xmm3, xmm6
movss dword [rsp + 0x20], xmm6
call fcn.180088290
movss xmm4, dword [rax]
ucomiss xmm4, xmm6
movss xmm3, dword [rax + 4]
jp 0x18008a460
jne 0x18008a460
ucomiss xmm3, xmm6
jp 0x18008a460
je 0x18008a4f0
movss xmm1, dword [rbx + 0xc0]
lea rdx, [rsp + 0x80]
movss xmm0, dword [rbx + 0x18]
mov r8d, r14d
minss xmm1, dword [rbx + 0xc4]
mov rcx, qword [r11 + 0x368]
mulss xmm0, dword [0x180160050]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mulss xmm4, xmm2
mulss xmm3, xmm2
addss xmm4, dword [rcx + 0x10]
addss xmm3, dword [rcx + 0x14]
movss dword [rsp + 0x80], xmm4
movss dword [rsp + 0x84], xmm3
call fcn.180086210
mov rax, qword [rbx + 0x1cf8]
mov byte [rbx + 0x1c33], r8b
test dword [rax + 0xc], 0x100
jne 0x18008a4f0
comiss xmm6, dword [rbx + 0x2f6c]
jb 0x18008a4f0
mov eax, dword [rbx + 0x1c]
mov dword [rbx + 0x2f6c], eax
movaps xmm6, xmmword [rsp + 0x40]
test rdi, rdi
je 0x18008a5b4
mov rax, qword [rbx + 0x1be0]
test rax, rax
je 0x18008a517
cmp rdi, qword [rax + 0x368]
je 0x18008a5ad
mov ecx, dword [rbx + 0x1ab8]
test ecx, ecx
setne al
mov byte [rbx + 0x1ac4], al
test ecx, ecx
je 0x18008a539
mov dword [rbx + 0x1ac0], esi
mov word [rbx + 0x1ac6], si
mov dword [rbx + 0x1ab8], esi
mov byte [rbx + 0x1ac5], sil
mov qword [rbx + 0x1ae8], rsi
mov byte [rbx + 0x1ac8], sil
mov qword [rbx + 0x1acc], rsi
mov qword [rbx + 0x1ad8], rsi
mov word [rbx + 0x1c32], 0x100
mov rax, qword [rdi + 0x380]
test rax, rax
cmovne rdi, rax
xor edx, edx
mov rcx, rdi
call fcn.180086f90
mov rcx, rdi
call fcn.180085d60
cmp dword [rdi + 0x388], esi
jne 0x18008a59d
xor edx, edx
mov rcx, rdi
call fcn.180087f40
cmp dword [rdi + 0x144], 2
jne 0x18008a5ad
mov dword [rbx + 0x1c28], r14d
mov qword [rbx + 0x1cf8], rsi
mov r14, qword [rsp + 0x50]
test bpl, bpl
je 0x18008a644
mov rbp, qword [rbx + 0x1be0]
test rbp, rbp
je 0x18008a644
lea rcx, [rbp + 0x360]
mov rdi, rbp
cmp qword [rcx], rsi
je 0x18008a61b
nop dword [rax]
test byte [rdi + 0x144], 2
jne 0x18008a607
mov eax, dword [rdi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x18008a607
mov rdi, qword [rcx]
lea rcx, [rdi + 0x360]
cmp qword [rcx], rsi
jne 0x18008a5e0
cmp rdi, rbp
je 0x18008a61b
mov rcx, rdi
call fcn.180085d60
mov qword [rdi + 0x380], rbp
mov rax, qword [rbx + 0x1be0]
mov word [rbx + 0x1c32], 0x100
test byte [rax + 0x144], 2
je 0x18008a63d
mov esi, dword [rbx + 0x1c28]
xor esi, 1
mov ecx, esi
call fcn.180087eb0
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret