Function at 0x42e17a
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59a72b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x610490]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x610490]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x61], 0
jne 0x42e4fe
cmp byte [esi + 0x60], 0
jne 0x42e4fe
lea eax, [esi + 0x9c]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xe4]
mov ecx, dword [esi + 0xf0]
sub eax, ecx
test eax, eax
jle 0x42e4dc
xor ebx, ebx
push ebx
push eax
mov eax, dword [esi + 0xf8]
add eax, ecx
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x42e41e
mov ecx, dword [esi + 0xf0]
add ecx, eax
mov dword [esi + 0xf0], ecx
cmp byte [esi + 0xe8], bl
je 0x42e3c3
mov edi, ebx
cmp dword [esi + 0xf0], 5
jge 0x42e240
mov dword [esp + 0x14], ebx
jmp 0x42e271
mov eax, dword [esi + 0xf8]
mov edi, dword [eax]
cmp edi, dword [esi + 0xec]
jg 0x42e269
cmp edi, 1
jl 0x42e269
xor ecx, ecx
lea eax, [edi + 4]
cmp dword [esi + 0xf0], eax
setge cl
mov dword [esp + 0x14], ecx
jmp 0x42e271
mov dword [esp + 0x14], 2
lea ecx, [esp + 0x50]
call fcn.00404ee2
mov eax, dword [esp + 0x14]
mov dword [esp + 0xa8], ebx
dec eax
je 0x42e31e
dec eax
jne 0x42e39f
mov edx, edi
mov dword [esp + 0x50], 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], ebx
mov byte [esp + 0x58], 1
call fcn.00404abc
push eax
mov edx, 0x5e65c8
mov byte [esp + 0xac], 1
lea ecx, [esp + 0x24]
call fcn.00404c2b
pop ecx
push eax
lea ecx, [esp + 0x60]
call fcn.00407163
push ebx
push 1
lea ecx, [esp + 0x28]
call fcn.0040412f
push ebx
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], bl
call fcn.0040412f
cmp byte [esi + 0x61], 0
jne 0x42e39f
cmp dword [esi + 0x14], ebx
je 0x42e39f
sub esp, 0x24
lea eax, [esp + 0x74]
mov ecx, esp
push eax
call fcn.0040540c
push esi
call dword [esi + 0x14]
add esp, 0x28
jmp 0x42e39f
cmp byte [esi + 0x68], 0
je 0x42e363
lea ecx, [esi + 0x6c]
cmp dword [ecx + 0x14], 0x10
jb 0x42e32f
mov ecx, dword [ecx]
lea edx, [esi + 0x84]
cmp dword [edx + 0x14], 0x10
jb 0x42e33d
mov edx, dword [edx]
mov eax, dword [esi + 0xf8]
push edi
push dword [esi + 0xfc]
add eax, 4
push eax
call fcn.0041e0ea
push eax
push dword [esi + 0xfc]
push esi
call dword [esi + 8]
add esp, 0x18
jmp 0x42e374
lea eax, [edi + 4]
push eax
push dword [esi + 0xf8]
push esi
call dword [esi + 8]
add esp, 0xc
push 0xfffffffffffffffc
pop eax
sub eax, edi
add dword [esi + 0xf0], eax
mov eax, dword [esi + 0xf0]
test eax, eax
jle 0x42e39f
mov ecx, dword [esi + 0xf8]
push eax
lea eax, [ecx + 4]
add eax, edi
push eax
push ecx
call fcn.00559bc0
add esp, 0xc
or dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0x5c]
push ebx
push 1
call fcn.0040412f
cmp dword [esp + 0x14], 1
je 0x42e231
jmp 0x42e4f4
cmp byte [esi + 0x68], bl
je 0x42e405
lea eax, [esi + 0x6c]
cmp dword [eax + 0x14], 0x10
jb 0x42e3d3
mov eax, dword [eax]
lea edx, [esi + 0x84]
cmp dword [edx + 0x14], 0x10
jb 0x42e3e1
mov edx, dword [edx]
push ecx
push dword [esi + 0xfc]
mov ecx, eax
push dword [esi + 0xf8]
call fcn.0041e0ea
push eax
push dword [esi + 0xfc]
push esi
call dword [esi + 8]
add esp, 0x18
jmp 0x42e413
push ecx
push dword [esi + 0xf8]
push esi
call dword [esi + 8]
add esp, 0xc
mov dword [esi + 0xf0], ebx
jmp 0x42e4f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
je 0x42e4f4
lea ecx, [esp + 0x74]
call fcn.00404ee2
mov dword [esp + 0xa8], 2
lea ecx, [esp + 0x20]
mov edx, edi
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], edi
mov byte [esp + 0x7c], 1
call fcn.00404abc
push eax
mov edx, str.recv_error:
mov byte [esp + 0xac], 3
lea ecx, [esp + 0x3c]
call fcn.00404c2b
pop ecx
push eax
lea ecx, [esp + 0x84]
call fcn.00407163
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.0040412f
push ebx
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0xb0], 2
call fcn.0040412f
cmp byte [esi + 0x61], 0
jne 0x42e4cb
cmp dword [esi + 0x14], ebx
je 0x42e4cb
sub esp, 0x24
lea eax, [esp + 0x98]
mov ecx, esp
push eax
call fcn.0040540c
push esi
call dword [esi + 0x14]
add esp, 0x28
push ebx
push 1
lea ecx, [esp + 0x88]
call fcn.0040412f
jmp 0x42e4f4
jne 0x42e4f4
mov eax, dword [esi + 0xf8]
xor ebx, ebx
push ebx
push ebx
add eax, ecx
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_recv]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.005599c5
mov esp, ebp
pop ebp
ret