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

Disassembly:
mov r11, rsp
push rbp
push rdi
sub rsp, 0x88
mov rax, qword [0x1401d0680]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, qword [0x1401d4a78]
mov rdi, rbp
mov eax, dword [rbp + 0x3f60]
cmp dword [rbp + 0x3f64], eax
je 0x140085aed
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
xor esi, esi
mov ebx, esi
mov qword [r11 + 0x18], r12
mov qword [r11 + 0x20], r14
mov qword [r11 - 0x18], r15
movaps xmmword [rsp + 0x70], xmm6
cmp dword [rbp + 0x55b0], esi
jle 0x140085504
mov ebp, esi
nop
mov rax, qword [rdi + 0x55b8]
cmp dword [rax + rbp + 4], 2
jne 0x1400854ef
movsxd rdx, ebx
mov rcx, rdi
shl rdx, 5
add rdx, rax
call qword [rax + rbp + reloc.WS2_32.dll_recv]
inc ebx
add rbp, 0x20
cmp ebx, dword [rdi + 0x55b0]
jl 0x1400854d0
mov rbp, qword [0x1401d4a78]
cmp dword [rbp + 0x3fb0], 2
jl 0x140085525
nop dword [rax]
call fcn.140084d50
cmp dword [rbp + 0x3fb0], 1
jg 0x140085510
mov rbp, qword [0x1401d4a78]
mov r14, qword [rdi + 0xc8]
test r14, r14
je 0x140085578
mov rax, qword [rdi + 0x5508]
cmp rax, qword [rdi + 0x5518]
jne 0x140085551
mov rax, qword [rdi + 0x5510]
cmp rax, qword [rdi + 0x5520]
je 0x140085578
mov ecx, dword [rdi + 0x5528]
call fcn.140086bf0
test rax, rax
jne 0x14008556b
mov rax, qword [rbp + 0x4210]
mov rax, qword [rax]
lea rdx, [rdi + 0x5508]
mov rcx, rax
call r14
mov rax, qword [rdi + 0x3fe0]
mov byte [rdi + 0x3f71], sil
test rax, rax
je 0x14008559b
cmp byte [rax + 0xcd], sil
jne 0x14008559b
mov byte [rax + 0xcb], sil
call fcn.140084d50
mov rcx, qword [0x1401d4a78]
mov rbx, rcx
cmp qword [rcx + 0x43d0], rsi
je 0x1400855bf
call fcn.14008e7b0
mov rcx, qword [0x1401d4a78]
cmp qword [rbx + 0x4268], rsi
je 0x1400855fb
cmp byte [rcx + 0x42c5], sil
je 0x1400855fb
cmp dword [rcx + 0x4318], esi
jne 0x1400855fb
cmp dword [rcx + 0x4378], esi
jne 0x1400855fb
mov eax, dword [rbx + 0x42c8]
test al, 0xf
je 0x1400855fb
test al, al
js 0x1400855fb
call fcn.14008d8a0
mov rcx, qword [0x1401d4a78]
mov r14d, esi
xorps xmm6, xmm6
cmp dword [rdi + 0x5530], esi
jle 0x14008577f
movaps xmmword [rsp + 0x60], xmm7
mov r15, rsi
movss xmm7, dword [0x1401526f0]
nop dword [rax]
mov rax, qword [rdi + 0x5538]
mov rbp, qword [r15 + rax + 8]
test rbp, rbp
je 0x140085766
mov eax, dword [rdi + 0x3f60]
cmp dword [rbp + 0xb0], eax
jne 0x140085766
movzx eax, byte [rbp + 0xc8]
test al, 1
je 0x140085766
mov rdx, qword [rbp + 0x88]
test rdx, rdx
je 0x140085766
cmp qword [rbp + 0x20], rsi
jne 0x140085766
test al, 4
jne 0x140085766
movss xmm0, dword [rcx + 0x3948]
movss xmm3, dword [rbp + 0x48]
addss xmm0, xmm0
movss xmm1, dword [rbp + 0x4c]
movaps xmm4, xmm3
addss xmm4, dword [rbp + 0x50]
movaps xmm2, xmm1
addss xmm3, xmm6
addss xmm2, dword [rbp + 0x54]
addss xmm0, dword [rcx + 0x3d50]
lea rcx, [rsp + 0x40]
movss dword [rsp + 0x48], xmm4
movss dword [rsp + 0x40], xmm3
movss dword [rsp + 0x4c], xmm2
addss xmm0, xmm1
movss dword [rsp + 0x44], xmm0
movss xmm2, dword [rdx + 0x4c]
movss xmm0, dword [rdx + 0x48]
movaps xmm3, xmm2
addss xmm3, dword [rdx + 0x54]
movaps xmm1, xmm0
addss xmm1, dword [rdx + 0x50]
movss dword [rsp + 0x34], xmm2
lea rdx, [rsp + 0x30]
movaps xmm2, xmm7
movss dword [rsp + 0x30], xmm0
movss dword [rsp + 0x3c], xmm3
movss dword [rsp + 0x38], xmm1
call fcn.1400a0160
mov rcx, qword [rbp + 0x88]
xor r8d, r8d
mov ebx, eax
mov rdx, qword [rcx + 0x2c0]
lea rcx, [rdx + 0xa8]
call fcn.1400a55c0
mov rcx, qword [rbp + 0x88]
lea r8, [rsp + 0x48]
mov r9d, dword [rbp + 0x80]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x28], ebx
movss xmm0, dword [rcx + 0x80]
mov rcx, qword [rcx + 0x2c0]
movss dword [rsp + 0x20], xmm0
call fcn.14009f8e0
mov rcx, qword [0x1401d4a78]
inc r14d
add r15, 0x10
cmp r14d, dword [rdi + 0x5530]
jl 0x140085620
movaps xmm7, xmmword [rsp + 0x60]
cmp qword [rcx + 0x4220], rsi
je 0x1400857a0
mov dword [rcx + 0x4218], 0x3f800000
mov qword [rcx + 0x4220], rsi
mov rcx, qword [0x1401d4a78]
cmp byte [rdi + 0x43fc], sil
je 0x140085825
mov eax, dword [rdi + 0x4424]
inc eax
cmp eax, dword [rdi + 0x3f60]
jge 0x1400857d7
test byte [rdi + 0x4400], 0x20
jne 0x1400857d3
movsxd rax, dword [rdi + 0x4408]
cmp byte [rax + rcx + 0xda4], sil
jne 0x1400857d7
mov al, 1
jmp 0x1400857d9
xor al, al
cmp byte [rdi + 0x444a], sil
jne 0x1400857e6
test al, al
je 0x1400857eb
call fcn.14007bc30
cmp byte [rdi + 0x43fc], sil
je 0x140085825
mov eax, dword [rdi + 0x3f60]
cmp dword [rdi + 0x4404], eax
jge 0x140085825
test byte [rdi + 0x4400], 1
jne 0x140085825
lea rcx, [0x140179970]
mov byte [rdi + 0x43fd], 1
call fcn.140095d10
mov byte [rdi + 0x43fd], sil
mov eax, dword [rdi + 0x3f60]
mov dword [rdi + 0x3f64], eax
mov byte [rdi + 0x3f70], sil
call fcn.140098510
mov r15, qword [0x1401d4a78]
lea r14, [r15 + 0x38d8]
mov ecx, dword [r14 + 4]
test ecx, ecx
jns 0x14008586b
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, r14
test eax, eax
cmovg edx, eax
call fcn.14009c4f0
mov dword [r14], esi
mov r12d, esi
cmp dword [r15 + 0x4208], esi
jle 0x140085936
mov rbp, rsi
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r15 + 0x4210]
mov rbx, qword [rax + rbp*8]
movsd xmm0, qword [rbx + 8]
movsd qword [rbx + 0x70], xmm0
mov eax, dword [r15 + 0x3f60]
cmp dword [rbx + 0x64], eax
jl 0x1400858bd
comiss xmm6, dword [rbx + 0x10]
jae 0x1400858bd
comiss xmm6, dword [rbx + 0x14]
jb 0x1400858c2
test rbp, rbp
jg 0x140085923
mov rax, qword [rbx + 0x88]
test rax, rax
je 0x1400858e0
cmp byte [rax + 0xcb], sil
je 0x140085923
cmp byte [rax + 0xd2], sil
jne 0x140085923
mov r8d, dword [r14]
mov ecx, dword [r14 + 4]
cmp r8d, ecx
jne 0x140085915
inc r8d
test ecx, ecx
je 0x1400858fe
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140085903
mov eax, 8
cmp eax, r8d
mov rcx, r14
cmovg r8d, eax
mov edx, r8d
call fcn.14009c4f0
movsxd rcx, dword [r14]
mov rax, qword [r14 + 8]
mov qword [rax + rcx*8], rbx
inc dword [r14]
inc r12d
inc rbp
cmp r12d, dword [r15 + 0x4208]
jl 0x140085890
mov rax, qword [r15 + 0x4210]
movaps xmm6, xmmword [rsp + 0x70]
mov r15, qword [rsp + 0x80]
mov r12, qword [rsp + 0xb0]
mov rcx, qword [rax]
mov word [rcx + 0x58], si
mov byte [rcx + 0x5a], sil
mov ecx, dword [rdi + 0x3fa4]
test ecx, ecx
jns 0x140085983
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x3fa0]
test eax, eax
cmovg edx, eax
call fcn.14009c4f0
mov dword [rdi + 0x3fa0], esi
lea rcx, [rdi + 0x3fa0]
mov edx, dword [rdi + 0x3f80]
call fcn.14009c4f0
mov ecx, dword [rdi + 0x3f80]
mov ebp, esi
test ecx, ecx
je 0x1400859e9
mov rbx, rsi
nop word [rax + rax]
mov rax, qword [rdi + 0x3f88]
mov rdx, qword [rbx + rax]
cmp byte [rdx + 0xcb], sil
je 0x1400859cd
test dword [rdx + 0xc], 0x1000000
jne 0x1400859d9
lea rcx, [rdi + 0x3fa0]
call fcn.1400763f0
mov ecx, dword [rdi + 0x3f80]
inc ebp
add rbx, 8
cmp ebp, ecx
jne 0x1400859b0
mov eax, dword [rdi + 0x3fa0]
mov r14, qword [rsp + 0xb8]
mov dword [rdi + 0x3f80], eax
mov eax, dword [rdi + 0x3f84]
mov dword [rdi + 0x3fa0], ecx
mov ecx, dword [rdi + 0x3fa4]
mov dword [rdi + 0x3fa4], eax
mov rax, qword [rdi + 0x3f88]
mov dword [rdi + 0x3f84], ecx
mov rcx, qword [rdi + 0x3fa8]
mov qword [rdi + 0x3fa8], rax
mov eax, dword [rdi + 0x3fd0]
mov dword [rdi + 0xf0], eax
mov rax, qword [rdi + 0x50]
mov qword [rdi + 0x3f88], rcx
mov byte [rax + 0x18], sil
mov qword [rdi + 0xdac], rsi
mov ecx, dword [rdi + 0x3804]
test ecx, ecx
jns 0x140085a78
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x3800]
test eax, eax
cmovg edx, eax
call fcn.14009c3b0
mov dword [rdi + 0x3800], esi
xorps xmm0, xmm0
movups xmmword [rdi + 0xdbc], xmm0
movups xmmword [rdi + 0xdcc], xmm0
movups xmmword [rdi + 0xddc], xmm0
movups xmmword [rdi + 0xdec], xmm0
movups xmmword [rdi + 0xdfc], xmm0
cmp dword [rdi + 0x55b0], esi
jle 0x140085add
mov rbx, rsi
nop
mov rax, qword [rdi + 0x55b8]
cmp dword [rbx + rax + 4], 3
jne 0x140085acf
movsxd rdx, esi
mov rcx, rdi
shl rdx, 5
add rdx, rax
call qword [rbx + rax + reloc.WS2_32.dll_recv]
inc esi
add rbx, 0x20
cmp esi, dword [rdi + 0x55b0]
jl 0x140085ab0
mov rbx, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140147480
add rsp, 0x88
pop rdi
pop rbp
ret