Function at 0x42fb40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
cmp eax, 0xffffffff
mov ebx, eax
je 0x42fce6
cmp edi, eax
jge 0x42fd10
add esi, 0x10
lea ecx, [ebp - 0x1c]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x277
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call dbg.android::base::LogMessage::LogMessage(char const*, unsigned int, android::base::LogId, android::base::LogSeverity, char const*, int)
lea ecx, [ebp - 0x1c]
sub esp, 0x18
call dbg.android::base::LogMessage::stream()
mov dword [esp + 4], 0x56ebfa
mov dword [esp], eax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov dword [esp + 4], 0x56ec09
mov dword [esp], eax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov dword [esp + 4], 0x56ec10
mov dword [esp], eax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov dword [esp + 4], 0x56ec12
mov dword [esp], eax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov dword [esp + 4], 0x56ec10
mov dword [esp], eax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov dword [esp + 4], 0x56ec15
mov dword [esp], eax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov dword [esp + 4], 0x56ec19
mov dword [esp], eax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov dword [esp], ebx
mov ecx, eax
call dbg.std::ostream::operator<<(int)
sub esp, 4
mov dword [esp + 4], str.__len
mov dword [esp], eax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov dword [esp], edi
mov ecx, eax
call dbg.std::ostream::operator<<(int)
sub esp, 4
mov dword [esp + 4], 0x56ec2a
mov dword [esp], eax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov dword [esp + 4], str.Tried_to_write
mov dword [esp], eax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov dword [esp], edi
mov ecx, eax
call dbg.std::ostream::operator<<(int)
sub esp, 4
mov dword [esp + 4], str._bytes_to
mov dword [esp], eax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov dword [esp + 4], esi
mov dword [esp], eax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov dword [esp + 4], str.__but
mov dword [esp], eax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov dword [esp], ebx
mov ecx, eax
call dbg.std::ostream::operator<<(int)
sub esp, 4
mov dword [esp + 4], str._bytes_reportedly_written
mov dword [esp], eax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
lea ecx, [ebp - 0x1c]
call dbg.android::base::LogMessage::~LogMessage()
jmp 0x42fb87
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov edi, eax
je 0x42fd08
test byte [0x5a4058], 0x80
je 0x42fd08
call dbg.android::base::GetMinimumLogSeverity()
cmp eax, 1
jle 0x42fd1a
mov eax, edi
call dbg._socket_set_errno
nop
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x30], eax
call eax
mov eax, dword [eax]
mov dword [esp + 4], edi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call dbg.android::base::SystemErrorCodeToString(int)
or eax, 0xffffffff
mov ecx, dword [ebp - 0x20]
cmp dword [esi + 4], 0
je 0x42fd6a
cmp esi, 0x5a4180
jb 0x42fd6a
cmp esi, 0x5bc180
mov eax, ebx
jae 0x42fd6a
sub esi, 0x5a4180
sar esi, 4
imul eax, esi, 0xaaaaaaab
add eax, 0x800
lea edx, [ebp - 0x1c]
mov dword [esp], edx
lea esi, [ebp - 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], str.send_fd__d_failed:__s
mov dword [ebp - 0x34], edx
call dbg.android::base::StringPrintf(char const*, ::)
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x270
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call dbg.android::base::LogMessage::LogMessage(char const*, unsigned int, android::base::LogId, android::base::LogSeverity, char const*, int)
mov ecx, esi
sub esp, 0x18
call dbg.android::base::LogMessage::stream()
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx - 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], edx
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)
mov ecx, esi
call dbg.android::base::LogMessage::~LogMessage()
mov eax, dword [ebp - 0x1c]
mov dword [esp], esi
lea ecx, [eax - 0xc]
call dbg.std::string::_Rep::_M_dispose(std::allocator<char> const&)
mov edx, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x20]
mov dword [esp], edx
lea ecx, [eax - 0xc]
call dbg.std::string::_Rep::_M_dispose(std::allocator<char> const&)
mov eax, dword [ebp - 0x30]
push edx
call eax
mov edx, dword [ebp - 0x2c]
mov dword [eax], edx
jmp 0x42fd08