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

Disassembly:
push 0xffffffffffffffff
push 0x10036c8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0x14], ebp
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x13c], ebp
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ecx
push edx
mov dword [esp + 0x38], eax
push ebp
lea ecx, [esp + 0x38]
push ebp
inc eax
push ecx
push eax
mov dword [esp + 0x44], 1
mov dword [esp + 0x40], ebp
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x1001f7ec
mov eax, dword [edi + 4]
lea edx, [esp + 0x30]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x1001f804
mov edx, dword [edi + 4]
push ebp
lea ecx, [esp + 0x17]
push 1
push ecx
push edx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x1001f81c
cmp eax, ebp
je 0x1001f834
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [esp + 0x20]
mov bl, byte [esp + 0x13]
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, 1
ja 0x1001f7ac
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov edx, dword [esp + 0x20]
push ebp
lea ecx, [esp + 0x1c]
lea esi, [edx + 1]
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1001f7e0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
movsx eax, bl
add edx, ecx
mov ah, al
mov byte [edx], al
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
mov byte [edx + esi], 0
cmp byte [esp + 0x13], 0xa
je 0x1001f834
jmp 0x1001f722
call sub.WSOCK32.dll_WSAGetLastError
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0x10040ca8
push eax
call sub.MSVCRT.dll__CxxThrowException
call sub.WSOCK32.dll_WSAGetLastError
lea ecx, [esp + 0x14]
push 0x10040ca8
push ecx
mov dword [esp + 0x1c], eax
call sub.MSVCRT.dll__CxxThrowException
call sub.WSOCK32.dll_WSAGetLastError
lea edx, [esp + 0x14]
push 0x10040ca8
push edx
mov dword [esp + 0x1c], eax
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [esp + 0x144]
mov al, byte [esp + 0x18]
mov byte [esi], al
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x18]
mov edx, dword [ecx]
mov ecx, esi
push edx
push ebp
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x1001f885
mov al, byte [ecx - 1]
test al, al
je 0x1001f87b
cmp al, 0xff
je 0x1001f87b
dec al
mov byte [ecx - 1], al
jmp 0x1001f885
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x134]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret 4