Function at 0x4784b0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, 0x2930
call fcn.0047ab40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2944]
xor ebx, ebx
xor ebp, ebp
cmp esi, ebx
push edi
mov dword [esp + 0x14], ebx
je 0x4784fc
mov edi, dword [esp + 0x294c]
cmp edi, ebx
je 0x4784fc
push edi
mov ebx, edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, edi
mov ebp, eax
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebp
mov edi, dword [esp + 0x2944]
mov ecx, 1
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], ecx
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x44], eax
push 0
lea edx, [esp + 0x44]
push 0
inc eax
push edx
push eax
mov dword [esp + 0x38], 0
call sub.WS2_32.dll_select
test eax, eax
jl 0x47865c
jne 0x478554
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x14
mov dword [esp + 0x14], eax
jg 0x478682
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x3c]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x478500
mov eax, dword [edi + 0xc]
push 0
lea edx, [esp + 0x144]
push 0x2800
push edx
push eax
call sub.WS2_32.dll_recv
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x4786a5
jge 0x4785a3
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x47865c
jmp 0x478500
lea eax, [esi + ebx]
mov dword [esp + 0x14], 0
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x4785e8
mov ecx, ebx
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [esp + 0x1c]
add esp, 4
mov ecx, esi
lea esi, [esp + 0x140]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, edx
add eax, ebx
and ecx, 3
cmp eax, 0x14
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebp
jl 0x478500
mov esi, dword [esp + 0x295c]
mov ecx, dword [esp + 0x2954]
mov edx, dword [esp + 0x2960]
mov eax, dword [esp + 0x2950]
push esi
push ecx
push edx
push eax
push ebp
call fcn.00478410
add esp, 0x14
test eax, eax
je 0x4786cb
mov ecx, dword [esi]
add ecx, 0x14
cmp ebx, ecx
jge 0x4786f5
jmp 0x478500
test ebp, ebp
je 0x47866a
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
add edi, 0x34
xor edx, edx
or eax, 0xffffffff
mov dword [edi], edx
mov byte [edi + 4], dl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2930
ret
test ebp, ebp
je 0x478690
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
add edi, 0x34
mov dword [edi], eax
mov byte [edi + 4], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2930
ret
test ebp, ebp
je 0x4786b3
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
add edi, 0x34
xor ecx, ecx
or eax, 0xffffffff
mov dword [edi], ecx
mov byte [edi + 4], cl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2930
ret
test ebp, ebp
je 0x4786d9
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x2944]
xor eax, eax
add ecx, 0x34
pop edi
pop esi
pop ebp
mov dword [ecx], eax
pop ebx
mov byte [ecx + 4], al
add esp, 0x2930
ret
mov edx, dword [esi]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x295c]
mov edi, eax
add esp, 4
mov dword [ecx], eax
mov ecx, dword [esi]
mov edx, ecx
lea esi, [ebp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x295c]
mov esi, dword [esp + 0x2968]
sub ebx, dword [edi]
add ebx, 0xffffffec
test ebx, ebx
mov dword [esi], ebx
jle 0x478763
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x2968]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [esi]
mov edx, dword [edi]
mov edi, eax
mov eax, ecx
lea esi, [edx + ebp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
je 0x478771
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x2950]
lea eax, [esp + 0x28]
mov edx, dword [ecx]
push edx
push str.0000_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x2944]
pop edi
not ecx
dec ecx
pop esi
pop ebp
pop ebx
lea eax, [esp + ecx + 0x14]
mov ecx, dword [esp + ecx + 0x14]
mov eax, 1
mov dword [edx + 0x34], ecx
mov byte [edx + 0x38], 0
add esp, 0x2930
ret