Function at 0x18006db40
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1e8
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x1800f8370]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x1f0]
movzx eax, byte [rax + 0x8d]
test eax, eax
je 0x18006db82
jmp 0x18006e074
mov rax, qword [rsp + 0x1f0]
movzx eax, byte [rax + 0x8c]
test eax, eax
je 0x18006db9a
jmp 0x18006e074
mov rax, qword [rsp + 0x1f0]
add rax, 0x98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x1f0]
mov ecx, dword [rcx + 0x11c]
mov eax, dword [rax + 0x110]
sub eax, ecx
test eax, eax
jle 0x18006dfe4
mov rax, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x1f0]
mov ecx, dword [rcx + 0x11c]
mov eax, dword [rax + 0x110]
sub eax, ecx
mov rcx, qword [rsp + 0x1f0]
movsxd rcx, dword [rcx + 0x11c]
mov rdx, qword [rsp + 0x1f0]
add rcx, qword [rdx + 0x128]
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x1f0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jle 0x18006dec7
mov rax, qword [rsp + 0x1f0]
mov eax, dword [rax + 0x11c]
add eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x1f0]
mov dword [rcx + 0x11c], eax
mov rax, qword [rsp + 0x1f0]
movzx eax, byte [rax + 0x114]
test eax, eax
je 0x18006de7f
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x1f0]
call fcn.18006d430
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0xf0]
call fcn.180019620
nop
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 1
je 0x18006dccc
cmp dword [rsp + 0x30], 2
je 0x18006dd77
jmp 0x18006de65
mov eax, dword [rsp + 0x20]
add eax, 4
mov r8d, eax
mov rax, qword [rsp + 0x1f0]
mov rdx, qword [rax + 0x128]
mov rcx, qword [rsp + 0x1f0]
mov rax, qword [rsp + 0x1f0]
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, dword [rsp + 0x20]
add eax, 4
mov rcx, qword [rsp + 0x1f0]
mov ecx, dword [rcx + 0x11c]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x1f0]
mov dword [rcx + 0x11c], eax
mov rax, qword [rsp + 0x1f0]
cmp dword [rax + 0x11c], 0
jle 0x18006dd72
mov rax, qword [rsp + 0x1f0]
movsxd rax, dword [rax + 0x11c]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x1f0]
mov rdx, qword [rdx + 0x128]
lea rcx, [rdx + rcx + 4]
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x1f0]
mov rcx, qword [rax + 0x128]
call fcn.18007cf80
jmp 0x18006de65
mov dword [rsp + 0xf0], 1
mov dword [rsp + 0xf4], 0
mov byte [rsp + 0xf8], 1
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x1b0]
call fcn.18001db00
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x80]
lea rdx, [0x1800d0400]
lea rcx, [rsp + 0x170]
call fcn.18000df20
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x100]
call fcn.18000e300
lea rcx, [rsp + 0x170]
call fcn.180007220
nop
lea rcx, [rsp + 0x1b0]
call fcn.180007220
mov rax, qword [rsp + 0x1f0]
movzx eax, byte [rax + 0x8d]
test eax, eax
jne 0x18006de65
mov rax, qword [rsp + 0x1f0]
cmp qword [rax + 0x28], 0
je 0x18006de65
lea rax, [rsp + 0x90]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x58]
call fcn.1800195b0
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x1f0]
mov rax, qword [rsp + 0x1f0]
call qword [rax + 0x28]
nop
lea rcx, [rsp + 0xf0]
call fcn.180019bc0
cmp dword [rsp + 0x28], 1
je 0x18006dc84
jmp 0x18006dec2
mov rax, qword [rsp + 0x1f0]
mov r8d, dword [rax + 0x11c]
mov rax, qword [rsp + 0x1f0]
mov rdx, qword [rax + 0x128]
mov rcx, qword [rsp + 0x1f0]
mov rax, qword [rsp + 0x1f0]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [rsp + 0x1f0]
mov dword [rax + 0x11c], 0
jmp 0x18006dfe2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x2733
je 0x18006dfe2
lea rcx, [rsp + 0x120]
call fcn.180019620
nop
mov dword [rsp + 0x120], 1
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x124], eax
mov byte [rsp + 0x128], 1
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x150]
call fcn.18001db00
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov r8, qword [rsp + 0x38]
lea rdx, str.recv_error:
lea rcx, [rsp + 0x190]
call fcn.18000df20
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x130]
call fcn.18000e300
lea rcx, [rsp + 0x190]
call fcn.180007220
nop
lea rcx, [rsp + 0x150]
call fcn.180007220
mov rax, qword [rsp + 0x1f0]
movzx eax, byte [rax + 0x8d]
test eax, eax
jne 0x18006dfd5
mov rax, qword [rsp + 0x1f0]
cmp qword [rax + 0x28], 0
je 0x18006dfd5
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x70]
call fcn.1800195b0
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x1f0]
mov rax, qword [rsp + 0x1f0]
call qword [rax + 0x28]
nop
lea rcx, [rsp + 0x120]
call fcn.180019bc0
jmp 0x18006e05d
mov rax, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x1f0]
mov ecx, dword [rcx + 0x11c]
mov eax, dword [rax + 0x110]
sub eax, ecx
test eax, eax
jne 0x18006e05d
mov rax, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x1f0]
mov ecx, dword [rcx + 0x11c]
mov eax, dword [rax + 0x110]
sub eax, ecx
mov rcx, qword [rsp + 0x1f0]
movsxd rcx, dword [rcx + 0x11c]
mov rdx, qword [rsp + 0x1f0]
add rcx, qword [rdx + 0x128]
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x1f0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
mov rax, qword [rsp + 0x1f0]
add rax, 0x98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.18007e510
add rsp, 0x1e8
ret