Function at 0x14006a300
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 [0x1402cf480]
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 [rsp + 0x68], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x70], 1
cmp byte [r15 + 0x198], 0
jne 0x14006a91d
lea rdi, [r15 + 0x148]
mov rax, qword [rdi]
xor r14d, r14d
mov dword [rax], r14d
mov qword [rdi + 0x10], 0xffffffffffffffff
mov rax, qword [r15 + 0x160]
mov dword [rax], r14d
mov qword [r15 + 0x170], 0xffffffffffffffff
mov rax, qword [rbx + 0x148]
mov dword [rax], r14d
mov qword [rbx + 0x158], 0xffffffffffffffff
mov rbx, qword [r15 + 0x58]
mov ecx, r14d
mov r8, qword [rdi]
mov edx, dword [r8]
test edx, edx
je 0x14006a3cf
nop dword [rax + rax]
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x14006a3e8
inc ecx
cmp ecx, edx
jb 0x14006a3c0
inc edx
mov rcx, rdi
call fcn.140068d80
mov rcx, qword [rdi]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rbx
mov rax, qword [rdi]
inc dword [rax]
mov r13, r14
mov qword [rsp + 0x50], r14
mov rbx, qword [r15 + 0x190]
test rbx, rbx
je 0x14006a416
nop dword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x14006a416
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14006a400
mov r14, rdi
lea r12, [r15 + 0x70]
mov ecx, 3
mov qword [rsp + 0x40], rcx
nop word [rax + rax]
mov rax, qword [r12]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14006a4e0
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 0x14006a4bb
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r13d, edx
lea rcx, [rdx*8 + 8]
call fcn.1401fb140
mov r15, rax
mov rcx, qword [r14]
mov edx, dword [rcx]
mov dword [rax], edx
xor edx, edx
mov r8, qword [r14]
cmp dword [r8], edx
jbe 0x14006a4ac
nop word [rax + rax]
lea rcx, [rdx*8]
mov rax, qword [rcx + r8 + 8]
mov qword [r15 + rcx + 8], rax
inc edx
mov r8, qword [r14]
cmp edx, dword [r8]
jb 0x14006a490
mov rcx, r8
call fcn.1401fb48c
mov qword [r14], r15
mov dword [r14 + 8], r13d
mov ecx, dword [r15]
mov rax, qword [rdi + 0x10]
mov qword [r15 + rcx*8 + 8], rax
mov rax, qword [r14]
inc dword [rax]
cmp rbx, qword [r12]
jne 0x14006a440
mov r13, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
cmp qword [r14 + 0x10], r13
cmova r13, qword [r14 + 0x10]
mov qword [rsp + 0x50], r13
add r12, 0x38
add r14, 0x18
sub rcx, 1
mov qword [rsp + 0x40], rcx
jne 0x14006a430
mov r14, qword [rsp + 0x58]
lea r15, [r14 + 0x110]
lea r12, [r14 + 0x160]
mov rdx, r15
mov rcx, r12
call fcn.140068b70
mov rax, qword [r14 + 0x170]
cmp rax, r13
cmova r13, rax
mov rdx, r15
lea rcx, [r14 + 0x178]
call fcn.140068b70
mov rax, qword [r14 + 0x188]
cmp rax, r13
cmova r13, rax
mov ecx, 1
mov rbx, qword [r14 + 0x190]
test rbx, rbx
je 0x14006a576
nop
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 0x14006a560
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
lea rcx, [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x70], 0
call fcn.1400b35b0
mov rbx, qword [r14 + 0x178]
mov rdi, qword [r12]
mov r14, qword [r14 + 0x148]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test r14, r14
jne 0x14006a61b
test rdi, rdi
jne 0x14006a61b
test rbx, rbx
jne 0x14006a61b
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]
call fcn.1400b35b0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x70], 1
jmp 0x14006a8f2
cmp dword [rsp + 0x48], 0
jne 0x14006a63a
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, [r13 + 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 fcn.1400b35b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
js 0x14006a66f
call fcn.1400b35b0
test edi, edi
mov r14, qword [rsp + 0x58]
jle 0x14006a7aa
mov rdx, qword [r14 + 0x148]
mov rcx, qword [r14 + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14006a7aa
lea rax, [rbp - 0x70]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x78], 0x400
call fcn.1400b35b0
mov rbx, qword [r14 + 0x58]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r13d, r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x50], r13d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8d, [r13 + 1]
lea rdx, [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.1400b35b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x14006a705
cmp eax, 0x4d2
jne 0x14006a70a
call fcn.1400b35b0
test ebx, ebx
jne 0x14006a7a8
call fcn.1400b35b0
cmp dword [rsp + 0x40], 0x400
jne 0x14006a7a8
lea r12d, [rbx + 1]
nop dword [rax]
mov rbx, qword [r14 + 0x58]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x50], r13d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8d, r12d
lea rdx, [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.1400b35b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x14006a789
cmp eax, 0x4d2
jne 0x14006a78e
call fcn.1400b35b0
test ebx, ebx
jne 0x14006a7a1
call fcn.1400b35b0
cmp dword [rsp + 0x40], 0x400
je 0x14006a730
lea r12, [r14 + 0x160]
dec edi
lea rcx, [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x70], 1
test edi, edi
jle 0x14006a8f2
mov r8, rsi
mov rdx, r15
lea r13, [r14 + 0x178]
mov rcx, r13
call fcn.140068c50
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140068c50
mov r12d, 2
add r14, 0xe0
nop dword [rax]
nop word [rax + rax]
xor r15d, r15d
mov rcx, qword [r13]
cmp dword [rcx], r15d
jbe 0x14006a8e0
mov r8, qword [rcx + r15*8 + 8]
mov rcx, qword [r14 + 0x28]
test rcx, rcx
je 0x14006a8d0
xor edx, edx
mov rax, r8
div rcx
add rdx, rdx
mov rax, qword [r14 + 0x20]
mov rdi, qword [rax + rdx*8]
cmp rdi, qword [r14]
je 0x14006a8d0
mov rax, qword [rax + rdx*8 + 8]
mov rcx, qword [rax]
cmp rdi, rcx
je 0x14006a8d0
nop
cmp qword [rdi + 0x10], r8
je 0x14006a863
mov rax, qword [rdi]
mov rdi, rax
cmp rax, rcx
jne 0x14006a850
jmp 0x14006a8d0
cmp rdi, qword [r14]
je 0x14006a8d0
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x14006a8c4
mov rcx, rbx
call qword [rbx + 0x50]
test eax, eax
je 0x14006a8d0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14006a89d
mov rax, qword [rcx + 0x20]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x14006a895
mov qword [rdi + 0x20], rax
mov qword [rcx + 0x20], 0
mov qword [rbx + 0x20], 0
mov rax, qword [rsi + 8]
test rax, rax
je 0x14006a8b4
mov qword [rax + 0x20], rbx
jmp 0x14006a8b7
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov rbx, qword [rdi + 0x18]
test rbx, rbx
jne 0x14006a871
lea rcx, [r14 - 8]
mov rdx, rdi
call fcn.140033820
inc r15d
mov rcx, qword [r13]
cmp r15d, dword [rcx]
jb 0x14006a810
sub r14, 0x38
sub r13, 0x18
sub r12, 1
jns 0x14006a800
mov rbx, qword [rsp + 0x58]
mov rbx, qword [rbx + 0x190]
test rbx, rbx
je 0x14006a918
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14006a903
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.1401fb000
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret