Function at 0x426a50
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov eax, 0x529430
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
call fcn.00423a40
test eax, eax
mov esi, eax
je 0x426eb3
mov ebx, dword [0x5551ac]
test ebx, ebx
je 0x426bd6
xor eax, eax
mov dword [ebp + eax - 0x38], 0
add eax, 4
cmp eax, 0x20
jb 0x426a7d
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x48]
mov dword [ebp - 0x30], eax
call fcn.00423bd0
mov dword [esp + 8], 0x52867e
mov dword [esp + 4], 0x10
mov dword [esp], edi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00423ba0
lea eax, [ebp - 0x54]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x38]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], edi
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 0x426e18
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0x54], 0
mov eax, dword [ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x426be0
mov dword [esi + 0xc], eax
mov edx, dword [ebx + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebx + 0x18]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x426ca0
mov edx, dword [esi + 4]
mov edi, 0xffffffff
test edx, edx
je 0x426b78
cmp esi, 0x5551c0
jb 0x426b78
cmp esi, 0x56f1c0
jae 0x426b78
mov edx, esi
sub edx, 0x5551c0
sar edx, 2
imul edx, edx, 0xc4ec4ec5
lea edi, [edx + 0x800]
cmp dword [ebp + 0x10], 1
mov ecx, 0x528530
mov eax, str.udp:
mov dword [esp + 0xc], edi
cmove eax, ecx
mov ecx, dword [ebp + 0xc]
add esi, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._d_net_client:_s_d_
mov dword [esp + 4], 0x20
mov dword [esp + 0x14], ecx
mov dword [esp], esi
call fcn.00423ba0
test byte [0x55503c], 0x80
jne 0x426ee9
mov dword [esp], ebx
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 fcn.00424490
jmp 0x426a7b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea eax, [ebp - 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x64], eax
call fcn.0042ecc0
lea eax, [ebp - 0x4c]
mov edi, eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], str.cannot_create_socket:__s
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.0042e9a0
mov ecx, dword [ebp + 0x18]
mov dword [esp], edi
call fcn.004e25a0
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x5c]
lea ecx, [eax - 0xc]
mov dword [ebp - 0x68], ecx
sub esp, 4
cmp ecx, 0x51ef30
jne 0x426fb8
mov eax, dword [ebp - 0x50]
lea ecx, [eax - 0xc]
cmp ecx, 0x51ef30
mov dword [ebp - 0x5c], ecx
jne 0x4270a8
test byte [0x55503c], 0x80
jne 0x426ff2
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x5c], eax
mov eax, edx
call fcn.00423500
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
sub esp, 4
mov edi, dword [ebp - 0x5c]
call edi
mov ebx, dword [eax]
mov eax, esi
call fcn.004239c0
call edi
mov edi, 0xffffffff
mov dword [eax], ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea eax, [ebp - 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x64], eax
call fcn.0042ecc0
lea eax, [ebp - 0x4c]
mov ecx, eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0xc], edi
mov dword [ebp - 0x60], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], ecx
mov dword [esp + 4], str.cannot_connect_to__s:_s:__s
mov dword [esp + 8], eax
call fcn.0042e9a0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp + 0x18]
mov dword [esp], eax
call fcn.004e25a0
mov eax, dword [ebp - 0x4c]
lea edx, [eax - 0xc]
mov dword [ebp - 0x68], edx
sub esp, 4
cmp edx, 0x51ef30
mov edx, dword [ebp - 0x5c]
jne 0x427149
mov eax, dword [ebp - 0x50]
lea ecx, [eax - 0xc]
cmp ecx, 0x51ef30
mov dword [ebp - 0x5c], ecx
jne 0x4270fe
test byte [0x55503c], 0x80
je 0x426c64
mov dword [ebp - 0x68], edx
call fcn.0042d960
mov ecx, dword [sym.imp.msvcrt.dll__errno]
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x5c], ecx
cmp eax, 2
jg 0x426c6c
mov dword [ebp - 0x70], edx
call ecx
mov edx, dword [ebp + 0x18]
cmp dword [ebp + 0x10], 1
mov edx, dword [edx]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], ecx
mov ecx, 0x528535
mov eax, dword [eax]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov dword [esp + 4], str.could_not_connect_to__s:_s:_s:__s
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov eax, 0x528531
cmove eax, ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x60]
mov dword [esp], edx
call fcn.0042e9a0
mov edi, dword [ebp - 0x64]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov ecx, edi
mov dword [esp + 4], 0x40c
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042da30
mov ecx, edi
sub esp, 0x14
call fcn.0042dbb0
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 fcn.0050d650
mov ecx, edi
call fcn.0042dc40
mov edx, dword [ebp - 0x4c]
mov dword [esp], edi
lea ecx, [edx - 0xc]
call fcn.004e2330
mov eax, dword [ebp - 0x5c]
push ecx
call eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x70]
mov dword [eax], ecx
jmp 0x426c6c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea eax, [ebp - 0x50]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [ebp - 0x64], eax
call fcn.0042ecc0
lea eax, [ebp - 0x4c]
mov ecx, eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0xc], edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], ecx
mov dword [esp + 4], str.cannot_resolve_host__s_and_port__s:__s
mov dword [esp + 8], eax
call fcn.0042e9a0
mov ecx, dword [ebp + 0x18]
mov dword [esp], edi
call fcn.004e25a0
mov eax, dword [ebp - 0x4c]
lea edi, [eax - 0xc]
sub esp, 4
cmp edi, 0x51ef30
jne 0x42728a
mov eax, dword [ebp - 0x50]
lea edi, [eax - 0xc]
cmp edi, 0x51ef30
jne 0x427258
test byte [0x55503c], 0x80
jne 0x4271ab
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x5c], eax
mov eax, ebx
call fcn.00423500
jmp 0x426c7f
call dword [sym.imp.msvcrt.dll__errno]
mov edi, 0xffffffff
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00425970
mov dword [esp], eax
mov ebx, eax
call sub.msvcrt.dll_strlen
mov ecx, dword [ebp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004e2b90
sub esp, 8
jmp 0x426bcc
call fcn.0042d960
cmp eax, 2
jg 0x426bc0
mov eax, dword [sym.imp.msvcrt.dll__errno]
lea esi, [ebp - 0x50]
mov dword [ebp - 0x5c], eax
call eax
mov edx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 1
mov ecx, dword [eax]
mov eax, 0x528531
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x60], ecx
mov ecx, 0x528535
cmove eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [edx]
lea ecx, [ebp - 0x4c]
mov dword [esp], ecx
mov dword [esp + 4], str.host__s_port__d_type__s___fd__d
mov dword [esp + 8], eax
call fcn.0042e9a0
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x415
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042da30
mov ecx, esi
sub esp, 0x14
call fcn.0042dbb0
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 fcn.0050d650
mov ecx, esi
call fcn.0042dc40
mov edx, dword [ebp - 0x4c]
mov dword [esp], esi
lea ecx, [edx - 0xc]
call fcn.004e2330
push eax
mov eax, dword [ebp - 0x5c]
call eax
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
jmp 0x426bc0
cmp dword [0x5192a8], 0
jne 0x4270de
mov ecx, dword [eax - 4]
lea edi, [ecx - 1]
mov dword [eax - 4], edi
mov eax, ecx
test eax, eax
jg 0x426c42
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x55]
mov dword [esp], eax
mov dword [ebp - 0x5c], edx
call fcn.004e2310
mov edx, dword [ebp - 0x5c]
push eax
jmp 0x426c42
mov dword [ebp - 0x68], edx
call fcn.0042d960
mov ecx, dword [sym.imp.msvcrt.dll__errno]
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x5c], ecx
cmp eax, 2
jg 0x426c6c
call ecx
mov ecx, dword [ebp + 0x18]
mov edi, dword [eax]
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x60]
mov dword [esp + 4], 0x52855e
mov dword [esp + 8], eax
mov dword [esp], ecx
call fcn.0042e9a0
mov ecx, dword [ebp - 0x64]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3fe
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042da30
mov ecx, dword [ebp - 0x64]
sub esp, 0x14
call fcn.0042dbb0
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 fcn.0050d650
mov ecx, dword [ebp - 0x64]
call fcn.0042dc40
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x4c]
mov dword [esp], eax
sub ecx, 0xc
call fcn.004e2330
push eax
mov eax, dword [ebp - 0x5c]
call eax
mov edx, dword [ebp - 0x68]
mov dword [eax], edi
jmp 0x426c6c
cmp dword [0x5192a8], 0
jne 0x4270ee
mov ecx, dword [eax - 4]
lea edi, [ecx - 1]
mov dword [eax - 4], edi
mov eax, ecx
test eax, eax
jg 0x426c57
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x68], edx
mov dword [esp], eax
call fcn.004e2310
mov edx, dword [ebp - 0x68]
push eax
jmp 0x426c57
sub eax, 4
call fcn.00516180
mov edx, dword [ebp - 0x5c]
jmp 0x426fd0
sub eax, 4
mov dword [ebp - 0x68], edx
call fcn.00516180
mov edx, dword [ebp - 0x68]
jmp 0x4270bc
cmp dword [0x5192a8], 0
lea ecx, [eax - 4]
jne 0x427190
mov dword [ebp - 0x6c], edx
mov edx, dword [eax - 4]
mov dword [ebp - 0x68], eax
lea eax, [edx - 1]
mov ecx, eax
mov eax, dword [ebp - 0x68]
mov dword [eax - 4], ecx
mov eax, edx
mov edx, dword [ebp - 0x6c]
test eax, eax
jg 0x426d27
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x68], edx
mov dword [esp], eax
call fcn.004e2310
mov edx, dword [ebp - 0x68]
push eax
jmp 0x426d27
cmp dword [0x5192a8], 0
lea ecx, [eax - 4]
jne 0x42719f
mov dword [ebp - 0x6c], edx
mov edx, dword [eax - 4]
mov dword [ebp - 0x5c], eax
lea eax, [edx - 1]
mov ecx, eax
mov eax, dword [ebp - 0x5c]
mov dword [eax - 4], ecx
mov eax, edx
mov edx, dword [ebp - 0x6c]
test eax, eax
jg 0x426d12
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x55]
mov dword [esp], eax
mov dword [ebp - 0x5c], edx
call fcn.004e2310
mov edx, dword [ebp - 0x5c]
push eax
jmp 0x426d12
mov eax, ecx
mov dword [ebp - 0x68], edx
call fcn.00516180
mov edx, dword [ebp - 0x68]
jmp 0x427127
mov eax, ecx
call fcn.00516180
mov edx, dword [ebp - 0x5c]
jmp 0x42716e
call fcn.0042d960
mov ecx, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x5c], ecx
cmp eax, 2
jg 0x426ea7
call ecx
mov ecx, dword [ebp + 0x18]
mov edi, dword [eax]
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x60]
mov dword [esp + 4], 0x52855e
mov dword [esp + 8], eax
mov dword [esp], ecx
call fcn.0042e9a0
mov ecx, dword [ebp - 0x64]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3ef
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042da30
mov ecx, dword [ebp - 0x64]
sub esp, 0x14
call fcn.0042dbb0
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 fcn.0050d650
mov ecx, dword [ebp - 0x64]
call fcn.0042dc40
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x4c]
mov dword [esp], eax
sub ecx, 0xc
call fcn.004e2330
push eax
mov eax, dword [ebp - 0x5c]
call eax
mov dword [eax], edi
jmp 0x426ea7
cmp dword [0x5192a8], 0
lea edx, [eax - 4]
jne 0x4272bc
mov edx, dword [eax - 4]
lea ecx, [edx - 1]
mov dword [eax - 4], ecx
mov eax, edx
test eax, eax
jg 0x426e92
mov eax, dword [ebp - 0x60]
mov ecx, edi
mov dword [esp], eax
call fcn.004e2310
push edx
jmp 0x426e92
cmp dword [0x5192a8], 0
lea edx, [eax - 4]
jne 0x4272c5
mov edx, dword [eax - 4]
lea ecx, [edx - 1]
mov dword [eax - 4], ecx
mov eax, edx
test eax, eax
jg 0x426e80
lea eax, [ebp - 0x55]
mov ecx, edi
mov dword [esp], eax
call fcn.004e2310
push ecx
jmp 0x426e80
mov eax, edx
call fcn.00516180
jmp 0x42726f
mov eax, edx
call fcn.00516180
lea esi, [esi]
jmp 0x4272a1