Function at 0x14006aea0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140304470]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rsi, r8
mov r15, rcx
mov qword [rsp + 0x58], rcx
lea rbx, [rcx + 0x30]
mov qword [rsp + 0x60], rbx
mov qword [rbp - 0x80], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x78], 1
cmp byte [r15 + 0x198], 0
jne 0x14006b48a
lea r14, [r15 + 0x148]
mov rax, qword [r14]
xor edi, edi
mov dword [rax], edi
mov qword [r14 + 0x10], 0xffffffffffffffff
mov rax, qword [r15 + 0x160]
mov dword [rax], edi
mov qword [r15 + 0x170], 0xffffffffffffffff
mov rax, qword [rbx + 0x148]
mov dword [rax], edi
mov qword [rbx + 0x158], 0xffffffffffffffff
mov rbx, qword [r15 + 0x58]
mov ecx, edi
mov r8, qword [r14]
mov edx, dword [r8]
test edx, edx
je 0x14006af60
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x14006af79
inc ecx
cmp ecx, edx
jb 0x14006af51
inc edx
mov rcx, r14
call fcn.1400696b0
mov rcx, qword [r14]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rbx
mov rax, qword [r14]
inc dword [rax]
mov qword [rsp + 0x50], rdi
mov rbx, qword [r15 + 0x190]
test rbx, rbx
je 0x14006afa6
nop word [rax + rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x14006afa6
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14006af90
lea r13, [r15 + 0x70]
mov ecx, 3
mov qword [rsp + 0x40], rcx
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r13]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14006b071
lea rdi, [rbx]
mov rbx, qword [rbx]
mov r15, qword [r14]
mov edx, dword [r15]
inc edx
mov ecx, dword [r14 + 8]
cmp edx, ecx
jbe 0x14006b04c
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r12d, edx
lea rcx, [rdx*8 + 8]
call fcn.140219078
mov r15, rax
mov rcx, qword [r14]
mov edx, dword [rcx]
mov dword [rax], edx
xor r8d, r8d
mov rcx, qword [r14]
cmp dword [rcx], r8d
jbe 0x14006b040
nop word [rax + rax]
lea rdx, [r8*8]
mov rax, qword [r14]
mov rcx, qword [rdx + rax + 8]
mov qword [rdx + r15 + 8], rcx
inc r8d
mov rcx, qword [r14]
cmp r8d, dword [rcx]
jb 0x14006b020
call fcn.1402193d4
mov qword [r14], r15
mov dword [r14 + 8], r12d
mov rcx, qword [rdi + 0x10]
mov eax, dword [r15]
mov qword [r15 + rax*8 + 8], rcx
mov rax, qword [r14]
inc dword [rax]
cmp rbx, qword [r13]
jne 0x14006afd0
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
cmp qword [r14 + 0x10], rdi
cmova rdi, qword [r14 + 0x10]
mov qword [rsp + 0x50], rdi
add r13, 0x38
add r14, 0x18
sub rcx, 1
mov qword [rsp + 0x40], rcx
jne 0x14006afc0
mov rbx, qword [rsp + 0x58]
lea r13, [rbx + 0x160]
lea r12, [rbx + 0x110]
mov rdx, r12
mov rcx, r13
call fcn.1400694b0
mov rax, qword [rbx + 0x170]
cmp rax, rdi
cmova rdi, rax
lea r14, [rbx + 0x178]
mov qword [rsp + 0x68], r14
mov rdx, r12
mov rcx, r14
call fcn.1400694b0
mov r15, qword [rbx + 0x188]
cmp r15, rdi
cmovbe r15, rdi
mov ecx, 1
mov rbx, qword [rbx + 0x190]
test rbx, rbx
je 0x14006b116
nop dword [rax + rax]
mov rax, qword [rbx]
mov edx, ecx
mov rcx, rbx
call qword [rax + 0x18]
mov ecx, eax
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14006b100
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x48], edx
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [rsp + 0x4c], ecx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [r14]
mov rdi, qword [r13]
mov r14, qword [rsp + 0x58]
mov r14, qword [r14 + 0x148]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test r14, r14
jne 0x14006b1ad
test rdi, rdi
jne 0x14006b1ad
test rbx, rbx
jne 0x14006b1ad
mov eax, 0x10624dd3
imul dword [rsp + 0x4c]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, dword [rsp + 0x48], 0x3e8
add ecx, eax
mov r8d, 1
cmove ecx, r8d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x78], 1
jmp 0x14006b457
cmp dword [rsp + 0x48], 0
jne 0x14006b1cc
mov ecx, dword [rsp + 0x4c]
lea eax, [rcx - 1]
mov edx, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, edx
mov dword [rsp + 0x4c], ecx
lea ecx, [r15 + 1]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rdi
mov rdx, r14
call qword [sym.imp.WS2_32.dll_select]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14, qword [rsp + 0x58]
test edi, edi
jle 0x14006b30d
mov rdx, qword [r14 + 0x148]
mov rcx, qword [r14 + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14006b30d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x70], 0x400
mov rbx, qword [r14 + 0x58]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8d, [r15 + 1]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x14006b28a
cmp eax, 0xea
je 0x14006b28a
test ebx, ebx
jne 0x14006b30b
cmp dword [rsp + 0x40], 0x400
jne 0x14006b30b
mov r13d, 1
nop word [rax + rax]
mov rbx, qword [r14 + 0x58]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x14006b2fa
cmp eax, 0xea
je 0x14006b2fa
test ebx, ebx
jne 0x14006b304
cmp dword [rsp + 0x40], 0x400
je 0x14006b2a0
lea r13, [r14 + 0x160]
dec edi
lea rcx, [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x78], 1
test edi, edi
jle 0x14006b457
mov r8, rsi
mov rdx, r12
mov rcx, qword [rsp + 0x68]
call fcn.140069580
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.140069580
mov r13d, 2
lea r15, [r14 + 0xe0]
mov r12, qword [rsp + 0x68]
nop dword [rax]
nop word [rax + rax]
xor r14d, r14d
mov rcx, qword [r12]
cmp dword [rcx], r14d
jbe 0x14006b445
mov r8, qword [rcx + r14*8 + 8]
mov rcx, qword [r15 + 0x28]
test rcx, rcx
je 0x14006b435
xor edx, edx
mov rax, r8
div rcx
add rdx, rdx
mov rax, qword [r15 + 0x20]
mov rdi, qword [rax + rdx*8]
mov r9, qword [r15]
cmp rdi, r9
je 0x14006b435
mov rax, qword [rax + rdx*8 + 8]
mov rcx, qword [rax]
cmp rdi, rcx
je 0x14006b435
cmp qword [rdi + 0x10], r8
je 0x14006b3c5
mov rax, qword [rdi]
mov rdi, rax
cmp rax, rcx
jne 0x14006b3b2
jmp 0x14006b435
cmp rdi, r9
je 0x14006b435
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x14006b429
mov rax, qword [rbx + 0x50]
mov rcx, rbx
call rax
test eax, eax
je 0x14006b435
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14006b402
mov rax, qword [rcx + 0x20]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x14006b3fa
mov qword [rdi + 0x20], rax
mov qword [rcx + 0x20], 0
mov qword [rbx + 0x20], 0
mov rax, qword [rsi + 8]
test rax, rax
je 0x14006b419
mov qword [rax + 0x20], rbx
jmp 0x14006b41c
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov rbx, qword [rdi + 0x18]
test rbx, rbx
jne 0x14006b3d3
lea rcx, [r15 - 8]
mov rdx, rdi
call fcn.140033a50
inc r14d
mov rcx, qword [r12]
cmp r14d, dword [rcx]
jb 0x14006b370
sub r12, 0x18
sub r15, 0x38
sub r13, 1
jns 0x14006b360
mov rax, qword [rsp + 0x58]
mov rbx, qword [rax + 0x190]
test rbx, rbx
je 0x14006b485
nop dword [rax + rax]
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14006b470
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140218dc0
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret