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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0x158], ecx
mov eax, dword [ebp - 0x158]
cmp dword [eax + 0x1d8], 0
je 0x477c31
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x1d8]
push eax
mov ecx, dword [ebp - 0x158]
call fcn.004771e0
jmp 0x4780de
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x158]
cmp dword [eax + 0x148], 0
jne 0x477c84
mov dword [ebp - 0x134], 0x19a
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x130], ecx
push 0x4aec94
lea edx, [ebp - 0x130]
push edx
call sub.MSVCR90.dll__CxxThrowException
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x11c], 0
jmp 0x477ca9
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [ebp - 0x110]
jae 0x477cd6
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp + edx*4 - 0x10c]
cmp ecx, dword [eax + 0x14c]
jne 0x477cd4
jmp 0x477cd6
jmp 0x477c9a
mov edx, dword [ebp - 0x11c]
cmp edx, dword [ebp - 0x110]
jne 0x477d15
cmp dword [ebp - 0x110], 0x40
jae 0x477d15
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x14c]
mov dword [ebp + eax*4 - 0x10c], edx
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
xor ecx, ecx
jne 0x477c8e
lea edx, [ebp - 0x118]
push edx
push 0
push 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x14c]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x477e17
mov dword [ebp - 0x120], 0
jmp 0x477d6d
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
cmp ecx, dword [ebp - 0x110]
jae 0x477de8
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp + edx*4 - 0x10c]
cmp ecx, dword [eax + 0x14c]
jne 0x477de3
mov edx, dword [ebp - 0x110]
sub edx, 1
cmp dword [ebp - 0x120], edx
jae 0x477dd2
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp + ecx*4 - 0x108]
mov dword [ebp + eax*4 - 0x10c], edx
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x120], eax
jmp 0x477d96
mov ecx, dword [ebp - 0x110]
sub ecx, 1
mov dword [ebp - 0x110], ecx
jmp 0x477de8
jmp 0x477d5e
xor edx, edx
jne 0x477d52
mov dword [ebp - 0x13c], 0x6d
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x138], eax
push 0x4aec94
lea ecx, [ebp - 0x138]
push ecx
call sub.MSVCR90.dll__CxxThrowException
cmp dword [ebp - 4], 0
jne 0x477ee6
mov dword [ebp - 0x124], 0
jmp 0x477e3c
mov edx, dword [ebp - 0x124]
add edx, 1
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
cmp eax, dword [ebp - 0x110]
jae 0x477eb7
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x158]
mov eax, dword [ebp + ecx*4 - 0x10c]
cmp eax, dword [edx + 0x14c]
jne 0x477eb2
mov ecx, dword [ebp - 0x110]
sub ecx, 1
cmp dword [ebp - 0x124], ecx
jae 0x477ea1
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp + eax*4 - 0x108]
mov dword [ebp + edx*4 - 0x10c], ecx
mov edx, dword [ebp - 0x124]
add edx, 1
mov dword [ebp - 0x124], edx
jmp 0x477e65
mov eax, dword [ebp - 0x110]
sub eax, 1
mov dword [ebp - 0x110], eax
jmp 0x477eb7
jmp 0x477e2d
xor ecx, ecx
jne 0x477e21
mov dword [ebp - 0x144], 0x192
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x140], edx
push 0x4aec94
lea eax, [ebp - 0x140]
push eax
call sub.MSVCR90.dll__CxxThrowException
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x14c]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x478000
push 0
push 0x2800
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x148]
push edx
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 0x14c]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x478000
mov dword [ebp - 0x128], 0
jmp 0x477f56
mov edx, dword [ebp - 0x128]
add edx, 1
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x110]
jae 0x477fd1
mov ecx, dword [ebp - 0x128]
mov edx, dword [ebp - 0x158]
mov eax, dword [ebp + ecx*4 - 0x10c]
cmp eax, dword [edx + 0x14c]
jne 0x477fcc
mov ecx, dword [ebp - 0x110]
sub ecx, 1
cmp dword [ebp - 0x128], ecx
jae 0x477fbb
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp + eax*4 - 0x108]
mov dword [ebp + edx*4 - 0x10c], ecx
mov edx, dword [ebp - 0x128]
add edx, 1
mov dword [ebp - 0x128], edx
jmp 0x477f7f
mov eax, dword [ebp - 0x110]
sub eax, 1
mov dword [ebp - 0x110], eax
jmp 0x477fd1
jmp 0x477f47
xor ecx, ecx
jne 0x477f3b
mov dword [ebp - 0x14c], 0x67
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], edx
push 0x4aec94
lea eax, [ebp - 0x148]
push eax
call sub.MSVCR90.dll__CxxThrowException
mov dword [ebp - 0x12c], 0
jmp 0x47801b
mov ecx, dword [ebp - 0x12c]
add ecx, 1
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x12c]
cmp edx, dword [ebp - 0x110]
jae 0x478096
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp + eax*4 - 0x10c]
cmp edx, dword [ecx + 0x14c]
jne 0x478091
mov eax, dword [ebp - 0x110]
sub eax, 1
cmp dword [ebp - 0x12c], eax
jae 0x478080
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp + edx*4 - 0x108]
mov dword [ebp + ecx*4 - 0x10c], eax
mov ecx, dword [ebp - 0x12c]
add ecx, 1
mov dword [ebp - 0x12c], ecx
jmp 0x478044
mov edx, dword [ebp - 0x110]
sub edx, 1
mov dword [ebp - 0x110], edx
jmp 0x478096
jmp 0x47800c
xor eax, eax
jne 0x478000
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x148]
mov eax, dword [ebp - 4]
mov byte [edx + eax], 0
cmp dword [ebp - 4], 0
jne 0x4780de
mov dword [ebp - 0x154], 0x190
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x150], ecx
push 0x4aec94
lea edx, [ebp - 0x150]
push edx
call sub.MSVCR90.dll__CxxThrowException
mov esp, ebp
pop ebp
ret 4