Function at 0x40122b
Capabilities:
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
jmp 0x40af60
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40e5a6
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_send]
cmp eax, ebx
je 0x40afbb
cmp eax, 0xffffffff
je 0x40afbb
sub edi, eax
je 0x40b10e
add esi, eax
jmp 0x40af96
mov cl, byte [esp + 0x13]
mov edi, str.Socket_binary_write_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_write_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 0x40b030
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40b027
cmp al, 0xff
je 0x40b027
dec al
mov byte [ecx], al
jmp 0x40b030
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], 0x19a
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 0x40b08a
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 + 0x40]
add eax, ecx
mov ecx, dword [esp + 0x94]
pop edi
mov dword [ebp + 0x40], eax
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 8