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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rbx, qword [0x14036e540]
xor esi, esi
xor bpl, bpl
mov edi, esi
movsxd rax, dword [rbx + 0x1b60]
test eax, eax
jle 0x14003122f
mov r8, qword [rbx + 0x1b68]
lea rdx, [rax - 1]
lea rcx, [rdx + rdx*2]
add r8, 8
shl rcx, 4
add r8, rcx
nop
mov rax, qword [r8]
test rax, rax
je 0x140031225
test dword [rax + 0xc], 0x8000000
jne 0x1400312b4
sub r8, 0x30
sub rdx, 1
jns 0x140031210
mov qword [rsp + 0x80], r14
movaps xmmword [rsp + 0x40], xmm6
xorps xmm6, xmm6
cmp qword [rbx + 0x1bd0], rsi
je 0x14003128b
cmp qword [rbx + 0x1bc8], rsi
jne 0x14003128b
comiss xmm6, dword [rbx + 0x1d38]
movss xmm1, dword [rbx + 0x1be4]
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x1400742a0]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x1be4], xmm1
jb 0x14003128b
comiss xmm6, xmm1
jb 0x14003128b
mov qword [rbx + 0x1bd0], rsi
mov r9, qword [rbx + 0x1bc8]
mov r14d, 1
test r9, r9
jne 0x1400312cb
mov edx, r14d
lea ecx, [r9 + 3]
call fcn.14002f890
comiss xmm0, xmm6
jbe 0x1400312cb
movzx r8d, dl
jmp 0x1400312d3
mov qword [rbx + 0x1bc8], rsi
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
xor r8b, r8b
test r9, r9
jne 0x1400312f8
cmp byte [rbx + 0x140], sil
je 0x1400312f8
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x1400312f8
call fcn.140027b30
test al, al
je 0x1400312f8
test byte [rbx + 8], r14b
je 0x1400312f8
movzx r9d, r14b
jmp 0x1400312fb
xor r9b, r9b
test r8b, r8b
jne 0x140031309
test r9b, r9b
je 0x1400313a9
mov rax, qword [rbx + 0x1b80]
test rax, rax
jne 0x14003137e
mov r8d, dword [rbx + 0x19d8]
sub r8d, r14d
js 0x1400313a9
movsxd r10, dword [rbx + 0x19d8]
movsxd rcx, r8d
nop
cmp rcx, r10
jge 0x1400313a9
cmp rcx, 0xffffffff80000001
je 0x1400313a9
mov rax, qword [rbx + 0x19e0]
mov rdx, qword [rax + rcx*8]
cmp byte [rdx + 0x7e], sil
je 0x140031361
cmp rdx, qword [rdx + 0x370]
jne 0x140031361
test dword [rdx + 0xc], 0x80000
je 0x14003136b
dec r8d
sub rcx, r14
jns 0x140031330
jmp 0x1400313a9
mov rax, qword [rbx + 0x19e0]
movsxd rcx, r8d
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x1400313a9
xor r9b, r14b
mov qword [rbx + 0x1bd0], rax
mov qword [rbx + 0x1bc8], rax
movzx eax, r9b
mov byte [rbx + 0x1be8], al
add eax, 3
mov dword [rbx + 0x1bac], eax
mov qword [rbx + 0x1be0], rsi
mov r10, qword [rbx + 0x1bc8]
movss xmm0, dword [rbx + 0x18]
mov r8, r10
movss xmm5, dword [0x140074250]
movaps xmmword [rsp + 0x30], xmm7
addss xmm0, dword [rbx + 0x1be0]
movss dword [rbx + 0x1be0], xmm0
test r10, r10
je 0x1400314a8
cmp dword [rbx + 0x1bac], 4
jne 0x1400314a8
subss xmm0, dword [0x140074208]
divss xmm0, dword [0x1400741fc]
comiss xmm6, xmm0
jbe 0x140031405
movaps xmm1, xmm6
jmp 0x14003140c
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm7, dword [rbx + 0x1be4]
mov edx, 4
maxss xmm7, xmm1
lea ecx, [rdx + 9]
movss dword [rbx + 0x1be4], xmm7
call fcn.14002f890
comiss xmm0, xmm6
mov r9d, esi
lea ecx, [rdx + 8]
seta r9b
call fcn.14002f890
comiss xmm0, xmm6
mov ecx, esi
mov r8, r10
seta cl
sub ecx, r9d
je 0x140031468
call fcn.140031080
mov r8, qword [rbx + 0x1bc8]
movaps xmm7, xmm5
mov dword [rbx + 0x1be4], 0x3f800000
movss xmm0, dword [rbx + 0x350]
comiss xmm0, xmm6
ja 0x1400314a8
comiss xmm5, xmm7
seta al
and byte [rbx + 0x1be8], al
je 0x14003149c
cmp qword [rbx + 0x1b80], rsi
je 0x14003149f
movzx ebp, r14b
mov qword [rbx + 0x1bc8], rsi
jmp 0x140031527
mov rdi, r8
mov qword [rbx + 0x1bc8], rsi
jmp 0x140031527
test r8, r8
je 0x140031527
cmp dword [rbx + 0x1bac], 3
jne 0x140031527
movss xmm0, dword [rbx + 0x1be0]
subss xmm0, dword [0x140074208]
divss xmm0, dword [0x1400741fc]
comiss xmm6, xmm0
jbe 0x1400314d8
movaps xmm5, xmm6
jmp 0x1400314dc
minss xmm5, xmm0
movss xmm0, dword [rbx + 0x1be4]
maxss xmm0, xmm5
movss dword [rbx + 0x1be4], xmm0
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x14003151c
call fcn.140027b30
test al, al
je 0x14003151c
cmp byte [rbx + 0x141], sil
mov ecx, 0xffffffff
cmovne ecx, r14d
call fcn.140031080
mov r8, qword [rbx + 0x1bc8]
cmp byte [rbx + 0x140], sil
cmove rdi, r8
mov edx, r14d
mov ecx, reloc.WS2_32.dll_recv
call fcn.14002f890
comiss xmm0, xmm6
movaps xmm7, xmmword [rsp + 0x30]
jbe 0x140031544
mov byte [rbx + 0x1be8], dl
cmp dword [rbx + 0x1a68], esi
je 0x140031559
cmp byte [rbx + 0x1a75], sil
je 0x1400315e6
cmp byte [rbx + 0x1be8], sil
je 0x1400315e6
mov edx, 2
lea ecx, [rdx + 0xe]
call fcn.14002f890
comiss xmm0, xmm6
jbe 0x1400315e6
lea rax, [rbx + 0x128]
test rax, rax
jne 0x14003158b
lea rax, [rbx + 0x128]
movss xmm0, dword [rax]
movss xmm1, dword [0x140074340]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x1400315ac
comiss xmm2, xmm1
jb 0x1400315ac
movzx ecx, r14b
jmp 0x1400315ae
xor cl, cl
lea rax, [rbx + 0x3c4]
test rax, rax
jne 0x1400315c1
lea rax, [rbx + 0x128]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x1400315da
comiss xmm2, xmm1
jb 0x1400315da
movzx eax, r14b
jmp 0x1400315dc
xor al, al
cmp cl, al
movzx ebp, bpl
cmove ebp, r14d
mov r11, qword [rbx + 0x1bc8]
test r11, r11
je 0x140031795
test byte [r11 + 0xc], 4
jne 0x140031795
mov eax, dword [rbx + 0x1bac]
cmp eax, 3
jne 0x140031623
cmp byte [rbx + 0x141], sil
jne 0x140031795
mov edx, r14d
lea rcx, [rsp + 0x70]
jmp 0x140031633
cmp eax, 4
jne 0x140031795
mov edx, eax
lea rcx, [rsp + 0x78]
movaps xmm3, xmm6
movss dword [rsp + 0x20], xmm6
call fcn.14002fa20
movss xmm3, dword [rax]
ucomiss xmm3, xmm6
movss xmm4, dword [rax + 4]
jp 0x14003165c
jne 0x14003165c
ucomiss xmm4, xmm6
jp 0x14003165c
je 0x140031795
mov rcx, qword [r11 + 0x370]
movss xmm1, dword [rbx + 0xc0]
movss xmm0, dword [rbx + 0x18]
minss xmm1, dword [rbx + 0xc4]
mulss xmm0, dword [0x140074304]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
mov eax, dword [rcx + 0xb0]
cvtdq2ps xmm2, xmm2
mulss xmm3, xmm2
mulss xmm4, xmm2
addss xmm3, dword [rcx + 0x10]
addss xmm4, dword [rcx + 0x14]
test r14b, al
je 0x140031772
movss xmm0, dword [rcx + 0x10]
and eax, 0xfffffff1
movss xmm1, dword [rcx + 0x14]
mov dword [rcx + 0xb0], eax
mov dword [rcx + 0xbc], 0x7f7fffff
mov dword [rcx + 0xc0], 0x7f7fffff
cvttss2si eax, xmm3
movd xmm2, eax
cvtdq2ps xmm2, xmm2
cvttss2si eax, xmm4
movss dword [rcx + 0x10], xmm2
subss xmm2, xmm0
movd xmm3, eax
cvtdq2ps xmm3, xmm3
movaps xmm0, xmm2
movss dword [rcx + 0x14], xmm3
subss xmm3, xmm1
addss xmm0, dword [rcx + 0xd0]
movaps xmm1, xmm3
addss xmm1, dword [rcx + 0xd4]
movss dword [rcx + 0xd0], xmm0
movaps xmm0, xmm2
addss xmm0, dword [rcx + 0xe8]
addss xmm2, dword [rcx + 0xe0]
movss dword [rcx + 0xd4], xmm1
movaps xmm1, xmm3
addss xmm1, dword [rcx + 0xec]
addss xmm3, dword [rcx + 0xe4]
movss dword [rcx + 0xe8], xmm0
movss dword [rcx + 0xe0], xmm2
movss dword [rcx + 0xec], xmm1
movss dword [rcx + 0xe4], xmm3
mov r11, qword [rbx + 0x1bc8]
mov byte [rbx + 0x1bf7], r14b
test dword [r11 + 0xc], 0x100
jne 0x140031795
comiss xmm6, dword [rbx + 0x2ed8]
jb 0x140031795
mov eax, dword [rbx + 0x1c]
mov dword [rbx + 0x2ed8], eax
movaps xmm6, xmmword [rsp + 0x40]
test rdi, rdi
je 0x140031897
mov rax, qword [rbx + 0x1b80]
test rax, rax
je 0x1400317bc
cmp rdi, qword [rax + 0x370]
je 0x140031890
mov ecx, dword [rbx + 0x1a68]
test ecx, ecx
setne al
mov byte [rbx + 0x1a74], al
test ecx, ecx
je 0x1400317de
mov dword [rbx + 0x1a70], esi
mov word [rbx + 0x1a76], si
mov dword [rbx + 0x1a68], esi
mov qword [rbx + 0x1a7c], rsi
mov byte [rbx + 0x1a75], sil
mov qword [rbx + 0x1a90], rsi
mov byte [rbx + 0x1a78], sil
mov word [rbx + 0x1bf6], 0x100
mov rax, qword [rdi + 0x388]
test rax, rax
cmovne rdi, rax
xor edx, edx
mov rcx, rdi
call fcn.14002e2f0
mov rcx, rdi
call fcn.14002cd00
cmp dword [rdi + 0x390], esi
jne 0x140031880
mov eax, dword [rdi + 0xc]
mov rdx, qword [0x14036e540]
mov dword [rdx + 0x1b88], esi
and eax, 0x40000
jne 0x140031880
movsxd rcx, dword [rdx + 0x1bec]
mov rax, qword [rdx + 0x1b80]
movaps xmm0, xmmword [0x140074970]
mov dword [rax + rcx*4 + 0x390], esi
mov word [rdx + 0x1bf9], r14w
mov dword [rdx + 0x1bfc], esi
movups xmmword [rdx + 0x1c00], xmm0
mov byte [rdx + 0x1bf8], r14b
cmp dword [rdi + 0x140], 2
jne 0x140031890
mov dword [rbx + 0x1bec], r14d
mov qword [rbx + 0x1bc8], rsi
mov r14, qword [rsp + 0x80]
test bpl, bpl
je 0x140031927
mov rbp, qword [rbx + 0x1b80]
test rbp, rbp
je 0x140031927
lea rcx, [rbp + 0x368]
mov rdi, rbp
cmp qword [rcx], rsi
je 0x1400318ea
test byte [rdi + 0x140], 2
jne 0x1400318ea
mov eax, dword [rdi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x1400318ea
mov rdi, qword [rcx]
lea rcx, [rdi + 0x368]
cmp qword [rcx], rsi
jne 0x1400318c3
cmp rdi, rbp
je 0x140031905
mov rcx, rdi
call fcn.14002cd00
mov qword [rdi + 0x388], rbp
mov rbp, qword [rbx + 0x1b80]
mov word [rbx + 0x1bf6], 0x100
test byte [rbp + 0x140], 2
je 0x140031920
mov esi, dword [rbx + 0x1bec]
xor esi, 1
mov ecx, esi
call fcn.14002f690
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret