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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10033c67
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x160
push ebx
push esi
push edi
mov eax, dword [0x10048024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x170], ecx
mov eax, dword [ebp - 0x170]
cmp dword [eax + 0x1b0], 0
je 0x1001edcb
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0x1b0]
push eax
mov ecx, dword [ebp - 0x170]
call fcn.1001e810
jmp 0x1001edbf
mov dword [ebp - 4], 0xffffffff
jmp 0x1001f2a2
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], 0
mov edx, dword [ebp - 0x170]
cmp dword [edx + 0x148], 0
jne 0x1001ee0f
push 0x5a3
push 0x1003be28
push 0x1003be68
call dword [sym.imp.MSVCR80.dll__wassert]
add esp, 0xc
mov ecx, dword [ebp - 0x170]
cmp dword [ecx + 0x148], 0
jne 0x1001ee47
push 0x19a
lea ecx, [ebp - 0x14c]
call fcn.10009f00
mov edx, dword [eax]
mov dword [ebp - 0x148], edx
push 0x10042bf4
lea eax, [ebp - 0x148]
push eax
call sub.MSVCR80.dll__CxxThrowException
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x12c], 0
jmp 0x1001ee6c
mov ecx, dword [ebp - 0x12c]
add ecx, 1
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x12c]
cmp edx, dword [ebp - 0x120]
jae 0x1001ee99
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x170]
mov edx, dword [ebp + eax*4 - 0x11c]
cmp edx, dword [ecx + 0x14c]
jne 0x1001ee97
jmp 0x1001ee99
jmp 0x1001ee5d
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebp - 0x120]
jne 0x1001eed8
cmp dword [ebp - 0x120], 0x40
jae 0x1001eed8
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0x14c]
mov dword [ebp + ecx*4 - 0x11c], eax
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
xor edx, edx
jne 0x1001ee51
lea eax, [ebp - 0x128]
push eax
push 0
push 0
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0x14c]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x1001efd9
mov dword [ebp - 0x130], 0
jmp 0x1001ef30
mov ecx, dword [ebp - 0x130]
add ecx, 1
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x130]
cmp edx, dword [ebp - 0x120]
jae 0x1001efab
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x170]
mov edx, dword [ebp + eax*4 - 0x11c]
cmp edx, dword [ecx + 0x14c]
jne 0x1001efa6
mov eax, dword [ebp - 0x120]
sub eax, 1
cmp dword [ebp - 0x130], eax
jae 0x1001ef95
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp + edx*4 - 0x118]
mov dword [ebp + ecx*4 - 0x11c], eax
mov ecx, dword [ebp - 0x130]
add ecx, 1
mov dword [ebp - 0x130], ecx
jmp 0x1001ef59
mov edx, dword [ebp - 0x120]
sub edx, 1
mov dword [ebp - 0x120], edx
jmp 0x1001efab
jmp 0x1001ef21
xor eax, eax
jne 0x1001ef15
push 0x6d
lea ecx, [ebp - 0x154]
call fcn.10009f00
mov ecx, dword [eax]
mov dword [ebp - 0x150], ecx
push 0x10042bf4
lea edx, [ebp - 0x150]
push edx
call sub.MSVCR80.dll__CxxThrowException
cmp dword [ebp - 0x14], 0
jne 0x1001f0aa
mov dword [ebp - 0x134], 0
jmp 0x1001effe
mov eax, dword [ebp - 0x134]
add eax, 1
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
cmp ecx, dword [ebp - 0x120]
jae 0x1001f079
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x170]
mov ecx, dword [ebp + edx*4 - 0x11c]
cmp ecx, dword [eax + 0x14c]
jne 0x1001f074
mov edx, dword [ebp - 0x120]
sub edx, 1
cmp dword [ebp - 0x134], edx
jae 0x1001f063
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp + ecx*4 - 0x118]
mov dword [ebp + eax*4 - 0x11c], edx
mov eax, dword [ebp - 0x134]
add eax, 1
mov dword [ebp - 0x134], eax
jmp 0x1001f027
mov ecx, dword [ebp - 0x120]
sub ecx, 1
mov dword [ebp - 0x120], ecx
jmp 0x1001f079
jmp 0x1001efef
xor edx, edx
jne 0x1001efe3
push 0x192
lea ecx, [ebp - 0x15c]
call fcn.10009f00
mov eax, dword [eax]
mov dword [ebp - 0x158], eax
push 0x10042bf4
lea ecx, [ebp - 0x158]
push ecx
call sub.MSVCR80.dll__CxxThrowException
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 0x14c]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001f1c2
push 0
push 0x1c00
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0x148]
push eax
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx + 0x14c]
push edx
call sub.WS2_32.dll_recv
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x1001f1c2
mov dword [ebp - 0x138], 0
jmp 0x1001f119
mov eax, dword [ebp - 0x138]
add eax, 1
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
cmp ecx, dword [ebp - 0x120]
jae 0x1001f194
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x170]
mov ecx, dword [ebp + edx*4 - 0x11c]
cmp ecx, dword [eax + 0x14c]
jne 0x1001f18f
mov edx, dword [ebp - 0x120]
sub edx, 1
cmp dword [ebp - 0x138], edx
jae 0x1001f17e
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x138]
mov edx, dword [ebp + ecx*4 - 0x118]
mov dword [ebp + eax*4 - 0x11c], edx
mov eax, dword [ebp - 0x138]
add eax, 1
mov dword [ebp - 0x138], eax
jmp 0x1001f142
mov ecx, dword [ebp - 0x120]
sub ecx, 1
mov dword [ebp - 0x120], ecx
jmp 0x1001f194
jmp 0x1001f10a
xor edx, edx
jne 0x1001f0fe
push 0x67
lea ecx, [ebp - 0x164]
call fcn.10009f00
mov eax, dword [eax]
mov dword [ebp - 0x160], eax
push 0x10042bf4
lea ecx, [ebp - 0x160]
push ecx
call sub.MSVCR80.dll__CxxThrowException
mov dword [ebp - 0x13c], 0
jmp 0x1001f1dd
mov edx, dword [ebp - 0x13c]
add edx, 1
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0x13c]
cmp eax, dword [ebp - 0x120]
jae 0x1001f258
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x170]
mov eax, dword [ebp + ecx*4 - 0x11c]
cmp eax, dword [edx + 0x14c]
jne 0x1001f253
mov ecx, dword [ebp - 0x120]
sub ecx, 1
cmp dword [ebp - 0x13c], ecx
jae 0x1001f242
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp + eax*4 - 0x118]
mov dword [ebp + edx*4 - 0x11c], ecx
mov edx, dword [ebp - 0x13c]
add edx, 1
mov dword [ebp - 0x13c], edx
jmp 0x1001f206
mov eax, dword [ebp - 0x120]
sub eax, 1
mov dword [ebp - 0x120], eax
jmp 0x1001f258
jmp 0x1001f1ce
xor ecx, ecx
jne 0x1001f1c2
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0x148]
mov ecx, dword [ebp - 0x14]
mov byte [eax + ecx], 0
cmp dword [ebp - 0x14], 0
jne 0x1001f2a2
push 0x190
lea ecx, [ebp - 0x16c]
call fcn.10009f00
mov edx, dword [eax]
mov dword [ebp - 0x168], edx
push 0x10042bf4
lea eax, [ebp - 0x168]
push eax
call sub.MSVCR80.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4