Function at 0x4326b0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov eax, 0x56fe18
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
call dbg._fh_alloc
test eax, eax
mov ebx, eax
je 0x432bc6
mov ecx, dword [0x5a416c]
test ecx, ecx
je 0x432848
xor eax, eax
mov dword [ebp + eax - 0x38], 0
add eax, 4
cmp eax, 0x20
jb 0x4326dd
mov eax, dword [ebp + 0x10]
mov dword [hints.ai_flags], eax
call dbg.GetSocketProtocolFromSocketType
mov dword [esp + 8], 0x56f106
mov dword [esp + 4], 0x10
mov dword [hints.ai_family], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x48]
mov dword [esp], eax
call dbg.snprintf
lea eax, [ebp - 0x54]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x38]
mov dword [esp + 8], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
sub esp, 0x10
test eax, eax
jne 0x432a82
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x54], 0
mov eax, dword [esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x432852
mov dword [ebx + 0xc], eax
mov ecx, dword [esi + 0x10]
mov dword [esp + 8], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x432912
mov eax, dword [ebx + 4]
mov edi, 0xffffffff
test eax, eax
je 0x4327e0
cmp ebx, 0x5a4180
jb 0x4327e0
cmp ebx, 0x5bc180
jae 0x4327e0
mov edi, ebx
sub edi, 0x5a4180
sar edi, 4
imul edi, edi, 0xaaaaaaab
add edi, 0x800
nop
lea esi, [esi]
cmp dword [ebp + 0x10], 1
mov ecx, 0x56eeca
mov edx, dword [ebp + 0xc]
mov eax, str.udp:
mov dword [esp + 0xc], edi
cmove eax, ecx
add ebx, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], str._d_net_client:_s_d_
mov dword [esp + 4], 0x20
mov dword [esp], ebx
call dbg.snprintf
test byte [0x5a4058], 0x80
je 0x432832
call dbg.android::base::GetMinimumLogSeverity()
cmp eax, 1
jle 0x432bfc
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._init_winsock____clone_.part.130_
jmp 0x4326db
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x50]
mov dword [esp], edx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x64], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x60], eax
call dbg.android::base::SystemErrorCodeToString(int)
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], str.cannot_create_socket:__s
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.android::base::StringPrintf(char const*, ::)
mov ecx, dword [ebp + 0x18]
mov dword [esp], edi
call dbg.std::string::swap(std::string&)
mov eax, dword [ebp - 0x4c]
lea ecx, [eax - 0xc]
sub esp, 4
cmp ecx, 0x566310
jne 0x432cc5
mov eax, dword [ebp - 0x50]
lea ecx, [eax - 0xc]
cmp ecx, 0x566310
jne 0x432ce6
test byte [0x5a4058], 0x80
je 0x432992
call dbg.android::base::GetMinimumLogSeverity()
mov edx, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x5c], edx
cmp eax, 1
jle 0x432d04
mov eax, dword [ebp - 0x60]
call dbg._socket_set_errno
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
sub esp, 4
mov esi, dword [ebp - 0x5c]
call esi
mov edi, dword [eax]
mov eax, ebx
call dbg._fh_close
call esi
mov dword [eax], edi
lea esp, [ebp - 0xc]
mov edi, 0xffffffff
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x50]
mov dword [esp], edx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x64], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x60], eax
call dbg.android::base::SystemErrorCodeToString(int)
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], str.cannot_connect_to__s:_s:__s
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.android::base::StringPrintf(char const*, ::)
mov ecx, dword [ebp + 0x18]
mov dword [esp], edi
call dbg.std::string::swap(std::string&)
mov eax, dword [ebp - 0x4c]
lea ecx, [eax - 0xc]
sub esp, 4
cmp ecx, 0x566310
jne 0x432dae
mov eax, dword [ebp - 0x50]
lea ecx, [eax - 0xc]
cmp ecx, 0x566310
jne 0x432d90
test byte [0x5a4058], 0x80
jne 0x4329a0
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x5c], eax
jmp 0x4328dd
call dbg.android::base::GetMinimumLogSeverity()
mov edx, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x5c], edx
cmp eax, 1
jg 0x4328dd
call edx
mov ecx, dword [ebp + 0x18]
cmp dword [ebp + 0x10], 1
mov ecx, dword [ecx]
mov edx, dword [eax]
mov eax, 0x56eebd
mov dword [ebp - 0x68], edx
mov edx, ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x48]
mov dword [esp + 0x10], edx
mov dword [esp + 4], str.could_not_connect_to__s:_s:_s:__s
mov dword [ebp - 0x6c], ecx
mov ecx, 0x56eec1
cmove eax, ecx
mov ecx, dword [ebp - 0x6c]
mov dword [esp + 8], eax
mov dword [esp], edi
mov dword [esp + 0xc], ecx
call dbg.android::base::StringPrintf(char const*, ::)
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x37a
mov edi, dword [ebp - 0x64]
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
mov ecx, edi
call dbg.android::base::LogMessage::LogMessage(char const*, unsigned int, android::base::LogId, android::base::LogSeverity, char const*, int)
mov ecx, edi
sub esp, 0x18
call dbg.android::base::LogMessage::stream()
mov ecx, dword [ebp - 0x4c]
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, edi
call dbg.android::base::LogMessage::~LogMessage()
mov ecx, dword [ebp - 0x4c]
mov dword [esp], edi
sub ecx, 0xc
call dbg.std::string::_Rep::_M_dispose(std::allocator<char> const&)
mov eax, dword [ebp - 0x5c]
push edx
call eax
mov edx, dword [ebp - 0x68]
mov dword [eax], edx
jmp 0x4328dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edi, [ebp - 0x4c]
mov esi, eax
lea eax, [ebp - 0x50]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [ebp - 0x64], eax
call dbg.android::base::SystemErrorCodeToString(int)
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], str.cannot_resolve_host__s_and_port__s:__s
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.android::base::StringPrintf(char const*, ::)
mov ecx, dword [ebp + 0x18]
mov dword [esp], edi
call dbg.std::string::swap(std::string&)
mov eax, dword [ebp - 0x4c]
lea ecx, [eax - 0xc]
sub esp, 4
cmp ecx, 0x566310
jne 0x432d6f
mov eax, dword [ebp - 0x50]
lea ecx, [eax - 0xc]
cmp ecx, 0x566310
jne 0x432d51
test byte [0x5a4058], 0x80
jne 0x432b15
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x5c], eax
mov eax, esi
call dbg._socket_set_errno
jmp 0x4328f1
call dbg.android::base::GetMinimumLogSeverity()
mov edx, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x5c], edx
cmp eax, 1
jg 0x432b09
call edx
mov edx, dword [eax]
mov dword [ebp - 0x60], edx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov dword [esp], edi
mov dword [esp + 4], 0x56ef9a
mov dword [esp + 8], eax
call dbg.android::base::StringPrintf(char const*, ::)
mov edi, dword [ebp - 0x64]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov ecx, edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x35d
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, edi
sub esp, 0x18
call dbg.android::base::LogMessage::stream()
mov ecx, dword [ebp - 0x4c]
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, edi
call dbg.android::base::LogMessage::~LogMessage()
mov edx, dword [ebp - 0x4c]
mov dword [esp], edi
lea ecx, [edx - 0xc]
call dbg.std::string::_Rep::_M_dispose(std::allocator<char> const&)
mov eax, dword [ebp - 0x5c]
push ecx
call eax
mov edx, dword [ebp - 0x60]
mov dword [eax], edx
jmp 0x432b09
call dword [sym.imp.msvcrt.dll__errno]
mov edi, 0xffffffff
mov eax, dword [eax]
mov dword [esp], eax
call dbg.adb_strerror(int)
mov dword [esp], eax
mov ebx, eax
call sym._strlen
mov ecx, dword [ebp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dbg.std::string::assign(char const*, unsigned int)
sub esp, 8
jmp 0x43283e
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x5c], eax
call eax
mov ebx, dword [ebp + 0xc]
mov ecx, 0x56eec1
cmp dword [ebp + 0x10], 1
mov edx, dword [eax]
mov eax, 0x56eebd
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp + 8]
cmove eax, ecx
mov dword [esp + 0x14], edi
lea ecx, [ebp - 0x4c]
mov dword [esp + 0x10], eax
mov dword [ebp - 0x60], edx
mov eax, dword [ebx]
lea ebx, [ebp - 0x50]
mov dword [esp], ecx
mov dword [esp + 4], str.host__s_port__d_type__s___fd__d
mov dword [esp + 8], eax
call dbg.android::base::StringPrintf(char const*, ::)
mov ecx, ebx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x383
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, ebx
sub esp, 0x18
call dbg.android::base::LogMessage::stream()
mov ecx, dword [ebp - 0x4c]
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, ebx
call dbg.android::base::LogMessage::~LogMessage()
mov ecx, dword [ebp - 0x4c]
mov dword [esp], ebx
sub ecx, 0xc
call dbg.std::string::_Rep::_M_dispose(std::allocator<char> const&)
push eax
mov eax, dword [ebp - 0x5c]
call eax
mov edx, dword [ebp - 0x60]
mov dword [eax], edx
jmp 0x432832
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4328a7
lea eax, [ebp - 0x55]
mov dword [esp], eax
call dbg.std::string::_Rep::_M_destroy(std::allocator<char> const&)
push eax
jmp 0x4328a7
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4328b9
mov dword [esp], edi
call dbg.std::string::_Rep::_M_destroy(std::allocator<char> const&)
push eax
jmp 0x4328b9
call edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax]
mov eax, dword [ecx]
mov dword [esp + 4], 0x56ef9a
mov dword [esp], edi
mov dword [ebp - 0x68], edx
mov dword [esp + 8], eax
call dbg.android::base::StringPrintf(char const*, ::)
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x36c
jmp 0x432a2c
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x432af8
mov dword [esp], edi
call dbg.std::string::_Rep::_M_destroy(std::allocator<char> const&)
push eax
jmp 0x432af8
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x432ae6
lea eax, [ebp - 0x55]
mov dword [esp], eax
call dbg.std::string::_Rep::_M_destroy(std::allocator<char> const&)
push edx
jmp 0x432ae6
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x432989
mov dword [esp], edi
call dbg.std::string::_Rep::_M_destroy(std::allocator<char> const&)
push eax
jmp 0x432989
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x432977
lea eax, [ebp - 0x55]
mov dword [esp], eax
call dbg.std::string::_Rep::_M_destroy(std::allocator<char> const&)
push eax
jmp 0x432977