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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035b0f
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x160
push ebx
push esi
push edi
mov eax, dword [0x1004c024]
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 0x1001ee1b
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.1001e860
jmp 0x1001ee0f
mov dword [ebp - 4], 0xffffffff
jmp 0x1001f2f2
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 0x1001ee5f
push 0x5ac
push 0x1003e338
push 0x1003e378
call dword [sym.imp.MSVCR80.dll__wassert]
add esp, 0xc
mov ecx, dword [ebp - 0x170]
cmp dword [ecx + 0x148], 0
jne 0x1001ee97
push 0x19a
lea ecx, [ebp - 0x14c]
call fcn.10007900
mov edx, dword [eax]
mov dword [ebp - 0x148], edx
push 0x10046434
lea eax, [ebp - 0x148]
push eax
call sub.MSVCR80.dll__CxxThrowException
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x12c], 0
jmp 0x1001eebc
mov ecx, dword [ebp - 0x12c]
add ecx, 1
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x12c]
cmp edx, dword [ebp - 0x120]
jae 0x1001eee9
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x170]
mov edx, dword [ebp + eax*4 - 0x11c]
cmp edx, dword [ecx + 0x14c]
jne 0x1001eee7
jmp 0x1001eee9
jmp 0x1001eead
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebp - 0x120]
jne 0x1001ef28
cmp dword [ebp - 0x120], 0x40
jae 0x1001ef28
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 0x1001eea1
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 0x1001f029
mov dword [ebp - 0x130], 0
jmp 0x1001ef80
mov ecx, dword [ebp - 0x130]
add ecx, 1
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x130]
cmp edx, dword [ebp - 0x120]
jae 0x1001effb
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x170]
mov edx, dword [ebp + eax*4 - 0x11c]
cmp edx, dword [ecx + 0x14c]
jne 0x1001eff6
mov eax, dword [ebp - 0x120]
sub eax, 1
cmp dword [ebp - 0x130], eax
jae 0x1001efe5
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 0x1001efa9
mov edx, dword [ebp - 0x120]
sub edx, 1
mov dword [ebp - 0x120], edx
jmp 0x1001effb
jmp 0x1001ef71
xor eax, eax
jne 0x1001ef65
push 0x6d
lea ecx, [ebp - 0x154]
call fcn.10007900
mov ecx, dword [eax]
mov dword [ebp - 0x150], ecx
push 0x10046434
lea edx, [ebp - 0x150]
push edx
call sub.MSVCR80.dll__CxxThrowException
cmp dword [ebp - 0x14], 0
jne 0x1001f0fa
mov dword [ebp - 0x134], 0
jmp 0x1001f04e
mov eax, dword [ebp - 0x134]
add eax, 1
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
cmp ecx, dword [ebp - 0x120]
jae 0x1001f0c9
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x170]
mov ecx, dword [ebp + edx*4 - 0x11c]
cmp ecx, dword [eax + 0x14c]
jne 0x1001f0c4
mov edx, dword [ebp - 0x120]
sub edx, 1
cmp dword [ebp - 0x134], edx
jae 0x1001f0b3
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 0x1001f077
mov ecx, dword [ebp - 0x120]
sub ecx, 1
mov dword [ebp - 0x120], ecx
jmp 0x1001f0c9
jmp 0x1001f03f
xor edx, edx
jne 0x1001f033
push 0x192
lea ecx, [ebp - 0x15c]
call fcn.10007900
mov eax, dword [eax]
mov dword [ebp - 0x158], eax
push 0x10046434
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 0x1001f212
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 0x1001f212
mov dword [ebp - 0x138], 0
jmp 0x1001f169
mov eax, dword [ebp - 0x138]
add eax, 1
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
cmp ecx, dword [ebp - 0x120]
jae 0x1001f1e4
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x170]
mov ecx, dword [ebp + edx*4 - 0x11c]
cmp ecx, dword [eax + 0x14c]
jne 0x1001f1df
mov edx, dword [ebp - 0x120]
sub edx, 1
cmp dword [ebp - 0x138], edx
jae 0x1001f1ce
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 0x1001f192
mov ecx, dword [ebp - 0x120]
sub ecx, 1
mov dword [ebp - 0x120], ecx
jmp 0x1001f1e4
jmp 0x1001f15a
xor edx, edx
jne 0x1001f14e
push 0x67
lea ecx, [ebp - 0x164]
call fcn.10007900
mov eax, dword [eax]
mov dword [ebp - 0x160], eax
push 0x10046434
lea ecx, [ebp - 0x160]
push ecx
call sub.MSVCR80.dll__CxxThrowException
mov dword [ebp - 0x13c], 0
jmp 0x1001f22d
mov edx, dword [ebp - 0x13c]
add edx, 1
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0x13c]
cmp eax, dword [ebp - 0x120]
jae 0x1001f2a8
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x170]
mov eax, dword [ebp + ecx*4 - 0x11c]
cmp eax, dword [edx + 0x14c]
jne 0x1001f2a3
mov ecx, dword [ebp - 0x120]
sub ecx, 1
cmp dword [ebp - 0x13c], ecx
jae 0x1001f292
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 0x1001f256
mov eax, dword [ebp - 0x120]
sub eax, 1
mov dword [ebp - 0x120], eax
jmp 0x1001f2a8
jmp 0x1001f21e
xor ecx, ecx
jne 0x1001f212
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 0x1001f2f2
push 0x190
lea ecx, [ebp - 0x16c]
call fcn.10007900
mov edx, dword [eax]
mov dword [ebp - 0x168], edx
push 0x10046434
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