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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push 1
push 0x47c0c0
call fcn.00486e90
add esp, 8
mov ebx, eax
push 0x2000
push 2
call fcn.00485e90
add esp, 8
mov dword [ebp - 0x20], eax
push 0x1a
push 3
call fcn.00485e90
add esp, 8
mov dword [ebp - 0x24], eax
push 0x1a
push 4
call fcn.00485e90
add esp, 8
mov dword [ebp - 0x28], eax
mov byte [ebp - 0xd], 0
xor edi, edi
xor esi, esi
test ebx, ebx
je 0x47cf0e
cmp dword [ebx], 0xf0123a42
je 0x47cf60
push 1
call fcn.00485f30
pop ecx
mov dword [ebp - 0x2c], eax
push 2
call fcn.00485f30
pop ecx
mov dword [ebp - 0x30], eax
push 3
call fcn.00485f30
pop ecx
mov dword [ebp - 0x34], eax
push 4
call fcn.00485f30
pop ecx
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 4
mov eax, dword [ebp + 8]
push eax
push 0
push 0xbc4
push 1
call fcn.004769a0
add esp, 0x24
jmp 0x47d188
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x47cf73
push eax
call fcn.00489ae0
pop ecx
mov dword [ebp - 0x1c], eax
jmp 0x47cf7a
mov dword [ebp - 0x1c], 0x50
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x47cf8d
push eax
call fcn.00489ae0
pop ecx
mov dword [ebp - 4], eax
jmp 0x47cf94
mov dword [ebp - 4], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0x5e0848
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00455e40
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
dec eax
cmp esi, eax
jne 0x47cfe7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00455e90
add esp, 8
mov dword [ebp - 0xc], eax
push ebx
call fcn.0047bab0
pop ecx
test eax, eax
je 0x47d008
push 0
push 1
lea eax, [ebp - 0xd]
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.WSOCK32.dll_recv]
mov edi, eax
jmp 0x47d040
mov eax, dword [ebx + 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x47d03b
push eax
call fcn.004827c0
pop ecx
call fcn.00488df0
push eax
call fcn.00489810
pop ecx
test eax, eax
je 0x47d03b
mov eax, dword [ebx + 0x28]
cmp eax, 0xffffffff
je 0x47d039
cmp dword [ebp - 0x18], eax
jge 0x47d03b
jmp 0x47d07a
mov edi, 0xfffffffe
test edi, edi
jle 0x47d08d
movsx eax, byte [ebp - 0xd]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + edx]
cmp eax, edx
jne 0x47d067
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
cmp byte [edx + eax], 0
jne 0x47d06e
jmp 0x47d08d
mov dword [ebp - 0x14], 0
mov eax, esi
inc esi
mov edx, dword [ebp - 0xc]
mov cl, byte [ebp - 0xd]
mov byte [edx + eax], cl
mov eax, dword [ebp - 4]
test eax, eax
je 0x47cfc6
cmp esi, eax
jl 0x47cfc6
test edi, edi
jg 0x47d10e
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x47d0a9
push edi
mov eax, dword [ebp - 0x20]
push eax
call fcn.0048a010
add esp, 8
test edi, edi
jne 0x47d0c0
mov dword [ebx + 0xc], 0xfffffffe
mov dword [ebx + 8], str.Connection_closed
jmp 0x47d0de
cmp edi, 0xfffffffe
jne 0x47d0d5
or dword [ebx + 0xc], 0xffffffff
mov dword [ebx + 8], str.Timeout
jmp 0x47d0de
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
push eax
call fcn.00491010
pop ecx
mov dword [ebx + 8], eax
push 0
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
mov eax, dword [ebp - 0xc]
push eax
call fcn.00455f20
pop ecx
call fcn.00488df0
push eax
call fcn.0048bf20
pop ecx
jmp 0x47d188
mov eax, dword [ebp - 4]
test eax, eax
je 0x47d119
cmp esi, eax
jge 0x47d148
dec esi
mov dword [ebx + 0x20], esi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x47d131
push esi
mov eax, dword [ebp - 0x20]
push eax
call fcn.0048a010
add esp, 8
call fcn.00488df0
mov edx, esi
push edx
mov edx, dword [ebp - 0xc]
push edx
push eax
call fcn.0048c540
add esp, 0xc
jmp 0x47d188
mov dword [ebx + 0xc], 0xfffffffd
mov dword [ebx + 8], str.Buffer_overrun
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x47d16e
push 0xfffffffffffffffe
mov eax, dword [ebp - 0x20]
push eax
call fcn.0048a010
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
call fcn.00455f20
pop ecx
call fcn.00488df0
push 0
push eax
call fcn.0048c2e0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret