Function at 0x4010a0
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports

Disassembly:
jmp 0x40ad00
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40e566
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
push edi
call fcn.004010dc
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0xa4]
mov ebp, eax
xor ebx, ebx
mov eax, dword [ebp + 0x1d8]
push ebx
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
je 0x40ad5b
cmp eax, 0xffffffff
je 0x40ad5b
sub edi, eax
je 0x40aeae
add esi, eax
jmp 0x40ad36
mov cl, byte [esp + 0x13]
mov edi, str.Socket_binary_read_failed
mov byte [esp + 0x14], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], ebx
push ecx
push str.Socket_binary_read_failed
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], ebx
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_char_const___unsigned_int_]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x24]
push edx
mov dword [esp + 0xa0], ebx
call fcn.00401276
mov eax, dword [esp + 0x18]
mov byte [esp + 0x9c], 2
cmp eax, ebx
je 0x40add0
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40adc7
cmp al, 0xff
je 0x40adc7
dec al
mov byte [ecx], al
jmp 0x40add0
push ecx
call fcn.0040c5b6
add esp, 4
mov edi, str.C:UsersUserDesktopVC_65.2.20WinBattle_srcWinBattle_srccommon_socket.cpp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], ebx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 0x17f
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 0x40ae2a
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov eax, ecx
mov esi, str.C:UsersUserDesktopVC_65.2.20WinBattle_srcWinBattle_srccommon_socket.cpp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ebp
mov byte [ecx + ebp], bl
mov edx, dword [esp + 0x28]
mov al, byte [esp + 0x2c]
push ebx
lea ecx, [esp + 0x68]
mov dword [esp + 0x64], edx
mov byte [esp + 0x68], 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 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 + 0x2c]
mov edx, dword [ecx]
lea ecx, [esp + 0x64]
push edx
push ebx
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_]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x9c], 3
push ecx
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x84]
push edx
mov byte [esp + 0xa0], 4
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [esp + 0x5c]
push 0x410c88
push eax
mov byte [esp + 0xa4], 2
mov dword [esp + 0x64], 0x4101b4
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [esp + 0xa8]
mov eax, dword [ebp + 0x3c]
add eax, ecx
mov ecx, dword [esp + 0x94]
pop edi
mov dword [ebp + 0x3c], eax
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 8