Function at 0x42e2ad
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 0x59a8fe
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 0x42e631
cmp byte [esi + 0x60], 0
jne 0x42e631
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 0x42e60f
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 0x42e551
mov ecx, dword [esi + 0xf0]
add ecx, eax
mov dword [esi + 0xf0], ecx
cmp byte [esi + 0xe8], bl
je 0x42e4f6
mov edi, ebx
cmp dword [esi + 0xf0], 5
jge 0x42e373
mov dword [esp + 0x14], ebx
jmp 0x42e3a4
mov eax, dword [esi + 0xf8]
mov edi, dword [eax]
cmp edi, dword [esi + 0xec]
jg 0x42e39c
cmp edi, 1
jl 0x42e39c
xor ecx, ecx
lea eax, [edi + 4]
cmp dword [esi + 0xf0], eax
setge cl
mov dword [esp + 0x14], ecx
jmp 0x42e3a4
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 0x42e451
dec eax
jne 0x42e4d2
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, 0x5e65b8
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 0x42e4d2
cmp dword [esi + 0x14], ebx
je 0x42e4d2
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 0x42e4d2
cmp byte [esi + 0x68], 0
je 0x42e496
lea ecx, [esi + 0x6c]
cmp dword [ecx + 0x14], 0x10
jb 0x42e462
mov ecx, dword [ecx]
lea edx, [esi + 0x84]
cmp dword [edx + 0x14], 0x10
jb 0x42e470
mov edx, dword [edx]
mov eax, dword [esi + 0xf8]
push edi
push dword [esi + 0xfc]
add eax, 4
push eax
call fcn.0041e21e
push eax
push dword [esi + 0xfc]
push esi
call dword [esi + 8]
add esp, 0x18
jmp 0x42e4a7
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 0x42e4d2
mov ecx, dword [esi + 0xf8]
push eax
lea eax, [ecx + 4]
add eax, edi
push eax
push ecx
call fcn.00559d00
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 0x42e364
jmp 0x42e627
cmp byte [esi + 0x68], bl
je 0x42e538
lea eax, [esi + 0x6c]
cmp dword [eax + 0x14], 0x10
jb 0x42e506
mov eax, dword [eax]
lea edx, [esi + 0x84]
cmp dword [edx + 0x14], 0x10
jb 0x42e514
mov edx, dword [edx]
push ecx
push dword [esi + 0xfc]
mov ecx, eax
push dword [esi + 0xf8]
call fcn.0041e21e
push eax
push dword [esi + 0xfc]
push esi
call dword [esi + 8]
add esp, 0x18
jmp 0x42e546
push ecx
push dword [esi + 0xf8]
push esi
call dword [esi + 8]
add esp, 0xc
mov dword [esi + 0xf0], ebx
jmp 0x42e627
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
je 0x42e627
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 0x42e5fe
cmp dword [esi + 0x14], ebx
je 0x42e5fe
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 0x42e627
jne 0x42e627
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.00559b09
mov esp, ebp
pop ebp
ret