Function at 0x140031970
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 [0x1401cf2a8]
xor esi, esi
xor bpl, bpl
mov qword [rsp + 0x80], r14
movaps xmmword [rsp + 0x40], xmm6
mov edi, esi
mov eax, dword [rbx + 0x1bf0]
sub eax, 1
js 0x1400319e0
mov r8, qword [rbx + 0x1bf8]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
nop dword [rax + rax]
mov r9, qword [r8]
test r9, r9
je 0x1400319d6
test dword [r9 + 0xc], 0x8000000
jne 0x140031a5d
sub r8, 0x30
sub rdx, 1
jns 0x1400319c0
mov r9, rsi
xorps xmm6, xmm6
cmp qword [rbx + 0x1d48], rsi
je 0x140031a32
cmp qword [rbx + 0x1d40], rsi
jne 0x140031a32
comiss xmm6, dword [rbx + 0x1de8]
movss xmm1, dword [rbx + 0x1d5c]
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x140116778]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x1d5c], xmm1
jb 0x140031a32
comiss xmm6, xmm1
jb 0x140031a32
mov qword [rbx + 0x1d48], rsi
mov r14d, 1
test r9, r9
jne 0x140031a69
cmp qword [rbx + 0x1d40], rsi
jne 0x140031a69
mov edx, r14d
lea ecx, [r14 + 2]
call fcn.14002f670
comiss xmm0, xmm6
jbe 0x140031a69
movzx r8d, dl
jmp 0x140031a7a
mov qword [rbx + 0x1d40], rsi
jmp 0x1400319e3
xor r8b, r8b
test r9, r9
jne 0x140031a9f
cmp qword [rbx + 0x1d40], rsi
jne 0x140031a9f
cmp byte [rbx + 0x148], sil
je 0x140031a9f
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x140031a9f
call fcn.1400278d0
test al, al
je 0x140031a9f
test byte [rbx + 8], r14b
je 0x140031a9f
movzx r9d, r14b
jmp 0x140031aa2
xor r9b, r9b
test r8b, r8b
jne 0x140031ab0
test r9b, r9b
je 0x140031b4e
mov rax, qword [rbx + 0x1c10]
test rax, rax
jne 0x140031b1c
movsxd rcx, dword [rbx + 0x1a48]
lea edx, [rcx - 1]
test edx, edx
js 0x140031b4e
movsxd rax, edx
mov r10, rcx
cmp rax, r10
jge 0x140031b4e
cmp rax, 0xffffffff80000001
je 0x140031b4e
mov r8, qword [rbx + 0x1a50]
mov rcx, qword [r8 + rax*8]
cmp byte [rcx + 0x86], sil
je 0x140031b07
cmp rcx, qword [rcx + 0x3c0]
jne 0x140031b07
test dword [rcx + 0xc], 0x80000
je 0x140031b10
dec edx
sub rax, r14
jns 0x140031ad4
jmp 0x140031b4e
movsxd rax, edx
mov rax, qword [r8 + rax*8]
test rax, rax
je 0x140031b4e
mov rax, qword [rax + 0x3c0]
xor r9b, r14b
mov qword [rbx + 0x1d48], rax
mov qword [rbx + 0x1d40], rax
movzx eax, r9b
mov byte [rbx + 0x1d60], al
add eax, 3
mov dword [rbx + 0x1c44], eax
mov qword [rbx + 0x1d58], rsi
movss xmm0, dword [rbx + 0x18]
addss xmm0, dword [rbx + 0x1d58]
movss xmm5, dword [0x140116704]
movss dword [rbx + 0x1d58], xmm0
cmp qword [rbx + 0x1d40], rsi
je 0x140031cbb
cmp dword [rbx + 0x1c44], 4
jne 0x140031c3a
subss xmm0, dword [0x1401166b8]
movaps xmmword [rsp + 0x30], xmm7
divss xmm0, dword [0x1401166ac]
comiss xmm6, xmm0
jbe 0x140031ba4
movaps xmm1, xmm6
jmp 0x140031bab
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm7, dword [rbx + 0x1d5c]
mov edx, 4
maxss xmm7, xmm1
lea ecx, [rdx + 9]
movss dword [rbx + 0x1d5c], xmm7
call fcn.14002f670
comiss xmm0, xmm6
mov r9d, esi
lea ecx, [rdx + 8]
seta r9b
call fcn.14002f670
comiss xmm0, xmm6
mov ecx, esi
seta cl
sub ecx, r9d
je 0x140031bfd
call fcn.140031820
mov dword [rbx + 0x1d5c], 0x3f800000
movaps xmm7, xmm5
movss xmm0, dword [rbx + 0x358]
comiss xmm0, xmm6
ja 0x140031c35
comiss xmm5, xmm7
seta al
and byte [rbx + 0x1d60], al
je 0x140031c27
cmp qword [rbx + 0x1c10], rsi
je 0x140031c2e
movzx ebp, r14b
jmp 0x140031c2e
mov rdi, qword [rbx + 0x1d40]
mov qword [rbx + 0x1d40], rsi
movaps xmm7, xmmword [rsp + 0x30]
cmp qword [rbx + 0x1d40], rsi
je 0x140031cbb
cmp dword [rbx + 0x1c44], 3
jne 0x140031cbb
movss xmm0, dword [rbx + 0x1d58]
subss xmm0, dword [0x1401166b8]
divss xmm0, dword [0x1401166ac]
comiss xmm6, xmm0
jbe 0x140031c6e
movaps xmm5, xmm6
jmp 0x140031c72
minss xmm5, xmm0
movss xmm0, dword [rbx + 0x1d5c]
maxss xmm0, xmm5
movss dword [rbx + 0x1d5c], xmm0
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x140031cab
call fcn.1400278d0
test al, al
je 0x140031cab
cmp byte [rbx + 0x149], sil
mov ecx, 0xffffffff
cmovne ecx, r14d
call fcn.140031820
cmp byte [rbx + 0x148], sil
jne 0x140031cbb
mov rdi, qword [rbx + 0x1d40]
mov edx, r14d
mov ecx, reloc.WS2_32.dll_recv
call fcn.14002f670
comiss xmm0, xmm6
jbe 0x140031cd3
mov byte [rbx + 0x1d60], dl
cmp dword [rbx + 0x1ae0], esi
je 0x140031ce8
cmp byte [rbx + 0x1aed], sil
je 0x140031d75
cmp byte [rbx + 0x1d60], sil
je 0x140031d75
mov edx, 2
lea ecx, [rdx + 0xe]
call fcn.14002f670
comiss xmm0, xmm6
jbe 0x140031d75
lea rax, [rbx + 0x3cc]
test rax, rax
jne 0x140031d1a
lea rax, [rbx + 0x130]
movss xmm0, dword [rax]
movss xmm1, dword [0x1401167e4]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140031d3b
comiss xmm2, xmm1
jb 0x140031d3b
movzx ecx, r14b
jmp 0x140031d3d
xor cl, cl
lea rax, [rbx + 0x130]
test rax, rax
jne 0x140031d50
lea rax, [rbx + 0x130]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140031d69
comiss xmm2, xmm1
jb 0x140031d69
movzx eax, r14b
jmp 0x140031d6b
xor al, al
cmp al, cl
movzx ebp, bpl
cmove ebp, r14d
mov r11, qword [rbx + 0x1d40]
test r11, r11
je 0x140031f1c
test byte [r11 + 0xc], 4
jne 0x140031f1c
mov eax, dword [rbx + 0x1c44]
cmp eax, 3
jne 0x140031db2
cmp byte [rbx + 0x149], sil
jne 0x140031f1c
mov edx, r14d
lea rcx, [rsp + 0x70]
jmp 0x140031dc2
cmp eax, 4
jne 0x140031f1c
mov edx, eax
lea rcx, [rsp + 0x78]
movaps xmm3, xmm6
movss dword [rsp + 0x20], xmm6
call fcn.14002f7f0
movss xmm4, dword [rax]
ucomiss xmm4, xmm6
movss xmm3, dword [rax + 4]
jp 0x140031deb
jne 0x140031deb
ucomiss xmm3, xmm6
jp 0x140031deb
je 0x140031f1c
mov rcx, qword [r11 + 0x3c0]
movss xmm1, dword [rbx + 0xc0]
movss xmm0, dword [rbx + 0x18]
minss xmm1, dword [rbx + 0xc4]
mulss xmm0, dword [0x1401167c0]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
mov eax, dword [rcx + 0xac]
cvtdq2ps xmm2, xmm2
mulss xmm4, xmm2
mulss xmm3, xmm2
addss xmm4, dword [rcx + 0x10]
addss xmm3, dword [rcx + 0x14]
test r14b, al
je 0x140031efa
movss xmm0, dword [rcx + 0x10]
and eax, 0xfffffff1
movss xmm1, dword [rcx + 0x14]
mov dword [rcx + 0xac], eax
mov dword [rcx + 0xb8], 0x7f7fffff
mov dword [rcx + 0xbc], 0x7f7fffff
cvttss2si eax, xmm4
movd xmm2, eax
cvtdq2ps xmm2, xmm2
cvttss2si eax, xmm3
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 + 0xd8]
movaps xmm1, xmm3
addss xmm1, dword [rcx + 0xdc]
movss dword [rcx + 0xd8], xmm0
movaps xmm0, xmm2
addss xmm0, dword [rcx + 0xf0]
addss xmm2, dword [rcx + 0xe8]
movss dword [rcx + 0xdc], xmm1
movaps xmm1, xmm3
addss xmm1, dword [rcx + 0xf4]
addss xmm3, dword [rcx + 0xec]
movss dword [rcx + 0xf0], xmm0
movss dword [rcx + 0xe8], xmm2
movss dword [rcx + 0xf4], xmm1
movss dword [rcx + 0xec], xmm3
test dword [rcx + 0xc], 0x100
jne 0x140031f15
comiss xmm6, dword [rbx + 0x3034]
jb 0x140031f15
mov eax, dword [rbx + 0x1c]
mov dword [rbx + 0x3034], eax
mov byte [rbx + 0x1c67], r14b
movaps xmm6, xmmword [rsp + 0x40]
test rdi, rdi
je 0x140031fe9
mov rax, qword [rbx + 0x1c10]
test rax, rax
je 0x140031f43
cmp rdi, qword [rax + 0x3c0]
je 0x140031fe2
mov ecx, dword [rbx + 0x1ae0]
test ecx, ecx
setne al
mov byte [rbx + 0x1aec], al
test ecx, ecx
je 0x140031f65
mov dword [rbx + 0x1ae8], esi
mov word [rbx + 0x1aef], si
mov dword [rbx + 0x1ae0], esi
mov word [rbx + 0x1aed], si
mov qword [rbx + 0x1b10], rsi
mov byte [rbx + 0x1af1], sil
mov qword [rbx + 0x1af4], rsi
mov qword [rbx + 0x1b00], rsi
mov word [rbx + 0x1c66], 0x100
mov rax, qword [rdi + 0x3d8]
test rax, rax
je 0x140031fae
cmp byte [rax + 0x87], sil
cmovne rdi, rax
xor edx, edx
mov rcx, rdi
call fcn.14002e350
mov rcx, rdi
call fcn.14002cd00
cmp dword [rdi + 0x3e0], esi
jne 0x140031fd2
xor edx, edx
mov rcx, rdi
call fcn.14002f490
cmp dword [rdi + 0x148], 2
jne 0x140031fe2
mov dword [rbx + 0x1c5c], r14d
mov qword [rbx + 0x1d40], rsi
mov r14, qword [rsp + 0x80]
test bpl, bpl
je 0x14003207d
mov rdi, qword [rbx + 0x1c10]
test rdi, rdi
je 0x14003207d
lea rcx, [rdi + 0x3b8]
cmp qword [rcx], rsi
je 0x140032039
test byte [rdi + 0x148], 2
jne 0x140032039
mov eax, dword [rdi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x140032039
mov rdi, qword [rcx]
lea rcx, [rdi + 0x3b8]
cmp qword [rcx], rsi
jne 0x140032012
mov rbp, qword [rbx + 0x1c10]
cmp rdi, rbp
je 0x140032054
mov rcx, rdi
call fcn.14002cd00
mov qword [rdi + 0x3d8], rbp
mov rax, qword [rbx + 0x1c10]
mov word [rbx + 0x1c66], 0x100
test byte [rax + 0x148], 2
je 0x140032076
mov esi, dword [rbx + 0x1c5c]
xor esi, 1
mov ecx, esi
call fcn.14002f400
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret