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

Disassembly:
push 0xffffffffffffffff
push 0x10036c68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x534
mov al, byte [esp + 3]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
lea ecx, [esp + 0x18]
push edi
mov dword [esp + 0x3c], edi
mov byte [esp + 0x1c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov cl, byte [esp + 0x13]
push edi
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
mov dword [esp + 0x550], edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x54c], 1
cmp eax, edi
jbe 0x1001f5fa
jmp 0x1001f4cc
xor edi, edi
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], edx
push ecx
mov dword [esp + 0x48], eax
push edi
lea edx, [esp + 0x48]
push edi
inc eax
push edx
push eax
mov dword [esp + 0x54], 1
mov dword [esp + 0x50], edi
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x1001f641
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x40]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x1001f659
mov eax, dword [ebx + 4]
push edi
lea edx, [esp + 0x148]
push 0x400
push edx
push eax
call sub.WSOCK32.dll_recv
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1001f671
cmp ebp, edi
je 0x1001f5fa
push 1
push ebp
lea ecx, [esp + 0x30]
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 0x1001f57a
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x144]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [eax + ebp], 0
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x30]
mov edi, eax
cmp ecx, edi
jae 0x1001f58e
mov edi, ecx
sub eax, dword [esp + 0x20]
cmp eax, edi
ja 0x1001f59c
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test edi, edi
jbe 0x1001f5ec
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebp, [edx + edi]
push ebp
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 0x1001f5ec
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x1001f5c6
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, edi
push ebp
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [esp + 0x20]
test eax, eax
ja 0x1001f4ca
xor edi, edi
mov esi, dword [esp + 0x554]
mov cl, byte [esp + 0x18]
mov byte [esi], cl
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0x18]
mov eax, dword [edx]
push eax
push edi
push ecx
mov ecx, esi
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 + 0x2c]
cmp ecx, edi
je 0x1001f693
mov al, byte [ecx - 1]
test al, al
je 0x1001f689
cmp al, 0xff
je 0x1001f689
dec al
mov byte [ecx - 1], al
jmp 0x1001f693
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
call sub.WSOCK32.dll_WSAGetLastError
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0x10040ca8
push eax
call sub.MSVCRT.dll__CxxThrowException
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edi
cmp ecx, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
je 0x1001f6c3
mov al, byte [ecx - 1]
test al, al
je 0x1001f6b9
cmp al, 0xff
je 0x1001f6b9
dec al
mov byte [ecx - 1], al
jmp 0x1001f6c3
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x544]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x540
ret 8