Function at 0x4250b0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov eax, 0x524c10
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
call fcn.004220a0
test eax, eax
mov esi, eax
je 0x425513
mov ebx, dword [0x55126c]
test ebx, ebx
je 0x425236
xor eax, eax
mov dword [ebp + eax - 0x38], 0
add eax, 4
cmp eax, 0x20
jb 0x4250dd
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x48]
mov dword [ebp - 0x30], eax
call fcn.00422230
mov dword [esp + 8], 0x523e5e
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.00422200
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 0x425478
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 0x425240
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 0x425300
mov edx, dword [esi + 4]
mov edi, 0xffffffff
test edx, edx
je 0x4251d8
cmp esi, 0x551280
jb 0x4251d8
cmp esi, 0x552c80
jae 0x4251d8
mov edx, esi
sub edx, 0x551280
sar edx, 2
imul edx, edx, 0xc4ec4ec5
lea edi, [edx + 0x800]
cmp dword [ebp + 0x10], 1
mov ecx, 0x523d10
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.00422200
test byte [0x551030], 0x80
jne 0x425549
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.00422af0
jmp 0x4250db
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.0042d220
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.0042cf00
mov ecx, dword [ebp + 0x18]
mov dword [esp], edi
call fcn.004df8e0
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x5c]
lea ecx, [eax - 0xc]
mov dword [ebp - 0x68], ecx
sub esp, 4
cmp ecx, 0x51af30
jne 0x425618
mov eax, dword [ebp - 0x50]
lea ecx, [eax - 0xc]
cmp ecx, 0x51af30
mov dword [ebp - 0x5c], ecx
jne 0x425708
test byte [0x551030], 0x80
jne 0x425652
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x5c], eax
mov eax, edx
call fcn.00421b60
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.00422020
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.0042d220
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.0042cf00
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp + 0x18]
mov dword [esp], eax
call fcn.004df8e0
mov eax, dword [ebp - 0x4c]
lea edx, [eax - 0xc]
mov dword [ebp - 0x68], edx
sub esp, 4
cmp edx, 0x51af30
mov edx, dword [ebp - 0x5c]
jne 0x4257a9
mov eax, dword [ebp - 0x50]
lea ecx, [eax - 0xc]
cmp ecx, 0x51af30
mov dword [ebp - 0x5c], ecx
jne 0x42575e
test byte [0x551030], 0x80
je 0x4252c4
mov dword [ebp - 0x68], edx
call fcn.0042bec0
mov ecx, dword [sym.imp.msvcrt.dll__errno]
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x5c], ecx
cmp eax, 2
jg 0x4252cc
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, 0x523d15
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, 0x523d11
cmove eax, ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x60]
mov dword [esp], edx
call fcn.0042cf00
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.0042bf90
mov ecx, edi
sub esp, 0x14
call fcn.0042c110
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.0050a5a0
mov ecx, edi
call fcn.0042c1a0
mov edx, dword [ebp - 0x4c]
mov dword [esp], edi
lea ecx, [edx - 0xc]
call fcn.004df670
mov eax, dword [ebp - 0x5c]
push ecx
call eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x70]
mov dword [eax], ecx
jmp 0x4252cc
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.0042d220
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.0042cf00
mov ecx, dword [ebp + 0x18]
mov dword [esp], edi
call fcn.004df8e0
mov eax, dword [ebp - 0x4c]
lea edi, [eax - 0xc]
sub esp, 4
cmp edi, 0x51af30
jne 0x4258ea
mov eax, dword [ebp - 0x50]
lea edi, [eax - 0xc]
cmp edi, 0x51af30
jne 0x4258b8
test byte [0x551030], 0x80
jne 0x42580b
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x5c], eax
mov eax, ebx
call fcn.00421b60
jmp 0x4252df
call dword [sym.imp.msvcrt.dll__errno]
mov edi, 0xffffffff
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00423fd0
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.004dfed0
sub esp, 8
jmp 0x42522c
call fcn.0042bec0
cmp eax, 2
jg 0x425220
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, 0x523d11
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x60], ecx
mov ecx, 0x523d15
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.0042cf00
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.0042bf90
mov ecx, esi
sub esp, 0x14
call fcn.0042c110
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.0050a5a0
mov ecx, esi
call fcn.0042c1a0
mov edx, dword [ebp - 0x4c]
mov dword [esp], esi
lea ecx, [edx - 0xc]
call fcn.004df670
push eax
mov eax, dword [ebp - 0x5c]
call eax
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
jmp 0x425220
cmp dword [0x5152a8], 0
jne 0x42573e
mov ecx, dword [eax - 4]
lea edi, [ecx - 1]
mov dword [eax - 4], edi
mov eax, ecx
test eax, eax
jg 0x4252a2
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x55]
mov dword [esp], eax
mov dword [ebp - 0x5c], edx
call fcn.004df650
mov edx, dword [ebp - 0x5c]
push eax
jmp 0x4252a2
mov dword [ebp - 0x68], edx
call fcn.0042bec0
mov ecx, dword [sym.imp.msvcrt.dll__errno]
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x5c], ecx
cmp eax, 2
jg 0x4252cc
call ecx
mov ecx, dword [ebp + 0x18]
mov edi, dword [eax]
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x60]
mov dword [esp + 4], 0x523d3e
mov dword [esp + 8], eax
mov dword [esp], ecx
call fcn.0042cf00
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.0042bf90
mov ecx, dword [ebp - 0x64]
sub esp, 0x14
call fcn.0042c110
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.0050a5a0
mov ecx, dword [ebp - 0x64]
call fcn.0042c1a0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x4c]
mov dword [esp], eax
sub ecx, 0xc
call fcn.004df670
push eax
mov eax, dword [ebp - 0x5c]
call eax
mov edx, dword [ebp - 0x68]
mov dword [eax], edi
jmp 0x4252cc
cmp dword [0x5152a8], 0
jne 0x42574e
mov ecx, dword [eax - 4]
lea edi, [ecx - 1]
mov dword [eax - 4], edi
mov eax, ecx
test eax, eax
jg 0x4252b7
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x68], edx
mov dword [esp], eax
call fcn.004df650
mov edx, dword [ebp - 0x68]
push eax
jmp 0x4252b7
sub eax, 4
call fcn.00513000
mov edx, dword [ebp - 0x5c]
jmp 0x425630
sub eax, 4
mov dword [ebp - 0x68], edx
call fcn.00513000
mov edx, dword [ebp - 0x68]
jmp 0x42571c
cmp dword [0x5152a8], 0
lea ecx, [eax - 4]
jne 0x4257f0
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 0x425387
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x68], edx
mov dword [esp], eax
call fcn.004df650
mov edx, dword [ebp - 0x68]
push eax
jmp 0x425387
cmp dword [0x5152a8], 0
lea ecx, [eax - 4]
jne 0x4257ff
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 0x425372
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x55]
mov dword [esp], eax
mov dword [ebp - 0x5c], edx
call fcn.004df650
mov edx, dword [ebp - 0x5c]
push eax
jmp 0x425372
mov eax, ecx
mov dword [ebp - 0x68], edx
call fcn.00513000
mov edx, dword [ebp - 0x68]
jmp 0x425787
mov eax, ecx
call fcn.00513000
mov edx, dword [ebp - 0x5c]
jmp 0x4257ce
call fcn.0042bec0
mov ecx, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x5c], ecx
cmp eax, 2
jg 0x425507
call ecx
mov ecx, dword [ebp + 0x18]
mov edi, dword [eax]
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x60]
mov dword [esp + 4], 0x523d3e
mov dword [esp + 8], eax
mov dword [esp], ecx
call fcn.0042cf00
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.0042bf90
mov ecx, dword [ebp - 0x64]
sub esp, 0x14
call fcn.0042c110
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.0050a5a0
mov ecx, dword [ebp - 0x64]
call fcn.0042c1a0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x4c]
mov dword [esp], eax
sub ecx, 0xc
call fcn.004df670
push eax
mov eax, dword [ebp - 0x5c]
call eax
mov dword [eax], edi
jmp 0x425507
cmp dword [0x5152a8], 0
lea edx, [eax - 4]
jne 0x42591c
mov edx, dword [eax - 4]
lea ecx, [edx - 1]
mov dword [eax - 4], ecx
mov eax, edx
test eax, eax
jg 0x4254f2
mov eax, dword [ebp - 0x60]
mov ecx, edi
mov dword [esp], eax
call fcn.004df650
push edx
jmp 0x4254f2
cmp dword [0x5152a8], 0
lea edx, [eax - 4]
jne 0x425925
mov edx, dword [eax - 4]
lea ecx, [edx - 1]
mov dword [eax - 4], ecx
mov eax, edx
test eax, eax
jg 0x4254e0
lea eax, [ebp - 0x55]
mov ecx, edi
mov dword [esp], eax
call fcn.004df650
push ecx
jmp 0x4254e0
mov eax, edx
call fcn.00513000
jmp 0x4258cf
mov eax, edx
call fcn.00513000
lea esi, [esi]
jmp 0x425901