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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x112c
call fcn.10026bf0
mov dword [ebp - 0x112c], ecx
mov byte [ebp - 8], 0
xor eax, eax
mov dword [ebp - 7], eax
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x1128], 0
jmp 0x1001ca2b
mov ecx, dword [ebp - 0x1128]
add ecx, 1
mov dword [ebp - 0x1128], ecx
mov edx, dword [ebp - 0x1128]
cmp edx, dword [ebp - 0x110]
jae 0x1001ca4f
mov eax, dword [ebp - 0x1128]
mov ecx, dword [ebp + eax*4 - 0x10c]
cmp ecx, dword [ebp + 8]
jne 0x1001ca4d
jmp 0x1001ca4f
jmp 0x1001ca1c
mov edx, dword [ebp - 0x1128]
cmp edx, dword [ebp - 0x110]
jne 0x1001ca85
cmp dword [ebp - 0x110], 0x40
jae 0x1001ca85
mov eax, dword [ebp - 0x1128]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x10c], ecx
mov edx, dword [ebp - 0x110]
add edx, 1
mov dword [ebp - 0x110], edx
xor eax, eax
test eax, eax
jne 0x1001ca10
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1124], ecx
mov dword [ebp - 0x1120], 0
lea edx, [ebp - 0x1124]
push edx
push 0
push 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x1001cada
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffea
jmp 0x1001cc9e
cmp dword [ebp - 0xc], 0
jne 0x1001caf4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffe9
jmp 0x1001cc9e
mov dword [ebp - 0x111c], 0
mov dword [ebp - 0x1118], 0
push 0x1000
push 0
lea ecx, [ebp - 0x1114]
push ecx
call fcn.10025800
add esp, 0xc
push 0
push 4
lea edx, [ebp - 0x1114]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xc], eax
push 4
lea ecx, [ebp - 0x1114]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.10025860
add esp, 0xc
push 4
lea eax, [ebp - 0x1114]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.10025860
add esp, 0xc
mov edx, dword [ebp - 0x111c]
add edx, 4
mov dword [ebp - 0x111c], edx
lea eax, [ebp - 8]
push eax
call fcn.10026b9d
add esp, 4
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jg 0x1001cb8c
or eax, 0xffffffff
jmp 0x1001cc9e
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x114], ecx
push 0x1000
push 0
lea edx, [ebp - 0x1114]
push edx
call fcn.10025800
add esp, 0xc
mov eax, 1
test eax, eax
je 0x1001cc9e
push 0x1000
push 0
lea ecx, [ebp - 0x1114]
push ecx
call fcn.10025800
add esp, 0xc
call fcn.10026f2a
mov dword [eax], 0
push 0
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x1114]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xc], eax
call fcn.10026f2a
cmp dword [eax], 0xb
je 0x1001cc68
cmp dword [ebp - 0xc], 0
jg 0x1001cc1a
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffe8
jmp 0x1001cc9e
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1114]
push ecx
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x111c]
push edx
call fcn.10025860
add esp, 0xc
mov eax, dword [ebp - 0x111c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x111c], eax
mov ecx, dword [ebp - 0x111c]
cmp ecx, dword [ebp + 0xc]
jl 0x1001cc59
mov eax, dword [ebp - 0x111c]
jmp 0x1001cc9e
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x111c]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x1118]
add eax, 1
mov dword [ebp - 0x1118], eax
cmp dword [ebp - 0x1118], 0x64
jle 0x1001cc91
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffe7
jmp 0x1001cc9e
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001cbab
mov esp, ebp
pop ebp
ret 0x10