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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 1
call fcn.00486e00
pop ecx
mov ebx, eax
push 0x400
push 2
call fcn.00485e90
add esp, 8
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x47cc57
cmp dword [ebx], 0xf0123a42
jne 0x47cc57
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47cc57
push 2
call fcn.00486fa0
pop ecx
and eax, 0x2000
jne 0x47cc8b
push 1
call fcn.00485f30
pop ecx
mov dword [ebp - 0x18], eax
push 2
call fcn.00485f30
pop ecx
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp + 8]
push eax
push 0
push 0xbc4
push 1
call fcn.004769a0
add esp, 0x1c
jmp 0x47ce60
mov eax, dword [ebp - 0x10]
push eax
call fcn.0048a840
pop ecx
mov dword [ebp - 0x10], eax
push eax
call fcn.004894a0
pop ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.004894c0
pop ecx
mov edi, eax
or eax, 0xffffffff
push eax
push 3
call fcn.00485e90
add esp, 8
test eax, eax
je 0x47ccd7
or eax, 0xffffffff
push eax
push 3
call fcn.00485e90
add esp, 8
mov eax, dword [eax]
and eax, 0xfffbffff
jne 0x47ccdc
mov dword [ebp - 4], edi
jmp 0x47ccef
push 3
call fcn.00486ac0
pop ecx
mov dword [ebp - 4], eax
cmp edi, dword [ebp - 4]
jge 0x47ccef
mov dword [ebp - 4], edi
xor esi, esi
mov dword [ebp - 0xc], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0x5e0848
cmp dword [ebp + 0xc], 1
jne 0x47cd31
mov eax, dword [ebp - 4]
sub eax, esi
cmp dword [ebx + 0x34], eax
jle 0x47cd23
mov eax, dword [ebp - 4]
sub eax, esi
mov dword [ebp - 0x18], eax
jmp 0x47cd29
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
jmp 0x47cd37
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push ebx
call fcn.0047bab0
pop ecx
test eax, eax
je 0x47cd6f
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
add eax, esi
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.WSOCK32.dll_recv]
mov edi, eax
test edi, edi
jle 0x47cd60
add esi, edi
cmp dword [ebp + 0xc], 0
jne 0x47cdeb
jmp 0x47cdf8
mov eax, dword [ebx + 0x24]
add dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x47cdc9
push eax
call fcn.004827c0
pop ecx
call fcn.00488df0
push eax
call fcn.00489810
pop ecx
test eax, eax
je 0x47cda0
mov eax, dword [ebx + 0x28]
cmp eax, 0xffffffff
je 0x47cdc2
cmp dword [ebp - 0xc], eax
jl 0x47cdc2
or dword [ebx + 0xc], 0xffffffff
mov dword [ebx + 8], str.Timeout
call fcn.00488df0
push esi
push eax
call fcn.0048a010
add esp, 8
jmp 0x47ce60
mov edi, 1
jmp 0x47cdeb
or dword [ebx + 0xc], 0xffffffff
mov dword [ebx + 8], str.Timeout
call fcn.00488df0
push esi
push eax
call fcn.0048a010
add esp, 8
jmp 0x47ce60
cmp esi, dword [ebp - 4]
jge 0x47cdf8
test edi, edi
jg 0x47cd09
mov dword [ebx + 0x20], esi
test edi, edi
jne 0x47ce21
mov dword [ebx + 0xc], 0xfffffffe
mov dword [ebx + 8], str.Connection_closed
call fcn.00488df0
push edi
push eax
call fcn.0048a010
add esp, 8
jmp 0x47ce60
test edi, edi
jge 0x47ce51
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebx + 0xc], eax
push eax
call fcn.00491010
pop ecx
mov dword [ebx + 8], eax
push 0
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
call fcn.00488df0
push edi
push eax
call fcn.0048a010
add esp, 8
jmp 0x47ce60
call fcn.00488df0
push esi
push eax
call fcn.0048a010
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret