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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100425d3
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x100590e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x11c], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x11c], eax
jne 0x1001a818
push dword [ebp + 0x18]
mov dword [ebx], 0
push dword [ebp + 0xc]
push eax
push dword [esi + 0x124]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1001a67a
cmp eax, 0xffffffff
jne 0x1001a80f
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x1001a681
call edi
mov ecx, dword [ebp + 0x18]
push eax
mov eax, dword [esi]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x34]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
push eax
push str._CSockstream__read_failed__2___local:__s____peer:__s__._iReturn:__d__buflen:__ld__flag:__d__errno:__d
push 8
call fcn.1001dae0
add esp, 0x20
xor al, al
jmp 0x1001a81a
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x1001a6a6
push 0x179
call edi
push eax
push str._CSockstream__read_failed__d__3__d
push 8
call fcn.1001dae0
add esp, 0x10
xor al, al
jmp 0x1001a81a
cmp dword [esi + 0x128], 0
je 0x1001a73b
push 0x20
mov byte [esi + 0x11c], 1
call fcn.1001fec7
add esp, 4
mov dword [ebp - 0x11c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1001a6e9
push esi
push 0
push dword [esi + 0x124]
mov ecx, eax
call fcn.10019680
mov ecx, eax
jmp 0x1001a6eb
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x118], ecx
test ecx, ecx
je 0x1001a702
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x128]
lea edx, [ebp - 0x118]
push edx
mov dword [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], 2
test eax, eax
je 0x1001a818
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1001a818
mov eax, dword [esi + 0x124]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], 1
cmp ecx, 0xffffffff
jne 0x1001a765
push 0
push 0
push 0
lea ecx, [ebp - 0x114]
push ecx
jmp 0x1001a7a8
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x124], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x124]
push eax
push 0
lea eax, [ebp - 0x114]
push 0
push eax
mov eax, dword [esi + 0x124]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x118], eax
test eax, eax
jle 0x1001a7f3
lea eax, [ebp - 0x114]
push eax
push dword [esi + 0x124]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001a7ed
mov ecx, dword [ebp + 0x18]
mov eax, dword [esi]
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov eax, dword [eax + 0x80]
push ecx
push dword [ebp - 0x11c]
mov ecx, esi
call eax
jmp 0x1001a81a
mov eax, dword [ebp - 0x118]
push 0x19a
push eax
call edi
push eax
push str._CSockstream__read_failed__d__select__d__4__d
push 8
call fcn.1001dae0
add esp, 0x14
xor al, al
jmp 0x1001a81a
mov byte [esi + 0x11c], 0
mov dword [ebx], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001ff0d
mov esp, ebp
pop ebp
ret 0x14