Function at 0x424a40
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
push ebp
mov eax, 0x524c10
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [ebp + 0xc]
call fcn.004220a0
test eax, eax
mov ebx, eax
je 0x424d00
mov eax, dword [0x55126c]
test eax, eax
je 0x424b75
mov eax, 2
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], ax
movzx eax, word [ebp + 8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 4
mov word [ebp - 0x26], ax
mov dword [esp], 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
sub esp, 4
mov dword [ebp - 0x24], eax
mov eax, esi
call fcn.00422230
mov dword [esp + 4], esi
mov dword [esp], 2
mov dword [esp + 8], eax
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x424b99
lea edx, [ebp - 0x28]
mov dword [ebx + 0xc], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x424c3c
mov edx, dword [ebx + 4]
mov edi, 0xffffffff
test edx, edx
je 0x424b24
cmp ebx, 0x551280
jb 0x424b24
cmp ebx, 0x552c80
jb 0x424b80
cmp esi, 1
mov ecx, 0x523d10
mov eax, str.udp:
cmove eax, ecx
mov ecx, dword [ebp + 8]
add ebx, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], str._d_lo_client:_s_d_
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0x20
mov dword [esp], ebx
call fcn.00422200
test byte [0x551030], 0x80
jne 0x424d36
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00422af0
jmp 0x424a6d
mov edx, ebx
sub edx, 0x551280
sar edx, 2
imul edx, edx, 0xc4ec4ec5
lea edi, [edx + 0x800]
jmp 0x424b24
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [ebp - 0x40], eax
call fcn.0042d220
lea eax, [ebp - 0x2c]
mov edi, eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], edi
mov dword [esp + 4], str.cannot_create_socket:__s
mov dword [esp + 8], eax
call fcn.0042cf00
mov ecx, dword [ebp + 0x10]
mov dword [esp], edi
call fcn.004df8e0
mov edx, dword [ebp - 0x2c]
lea edi, [edx - 0xc]
sub esp, 4
cmp edi, 0x51af30
jne 0x424e2d
mov edx, dword [ebp - 0x30]
lea edi, [edx - 0xc]
cmp edi, 0x51af30
jne 0x424dfd
test byte [0x551030], 0x80
jne 0x424e72
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x3c], eax
mov eax, esi
call fcn.00421b60
mov edi, dword [ebp - 0x3c]
call edi
mov esi, dword [eax]
mov eax, ebx
call fcn.00422020
call edi
mov edi, 0xffffffff
mov dword [eax], esi
jmp 0x424b6b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x30]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x40], eax
call fcn.0042d220
mov edx, dword [ebp - 0x30]
movzx eax, word [ebp - 0x26]
mov dword [ebp - 0x3c], edx
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov edi, eax
mov eax, dword [ebp - 0x24]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edx, [ebp - 0x2c]
mov ecx, edx
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x3c]
sub esp, 4
mov dword [esp + 0x10], edx
movzx edx, di
mov edi, ecx
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.cannot_connect_to__s:_u:__s
call fcn.0042cf00
mov ecx, dword [ebp + 0x10]
mov dword [esp], edi
call fcn.004df8e0
mov eax, dword [ebp - 0x2c]
lea ecx, [eax - 0xc]
sub esp, 4
cmp ecx, 0x51af30
jne 0x42501b
mov eax, dword [ebp - 0x30]
lea ecx, [eax - 0xc]
cmp ecx, 0x51af30
jne 0x424feb
test byte [0x551030], 0x80
jne 0x424f1f
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x48]
call fcn.00421b60
jmp 0x424c20
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 + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004dfed0
sub esp, 8
jmp 0x424b6b
call fcn.0042bec0
cmp eax, 2
nop
jg 0x424b6b
mov eax, dword [sym.imp.msvcrt.dll__errno]
lea ebx, [ebp - 0x30]
mov dword [ebp - 0x3c], eax
call eax
sub esi, 1
mov esi, dword [ebp + 8]
mov ecx, 0x523d15
mov edx, dword [eax]
mov eax, 0x523d11
cmove eax, ecx
lea ecx, [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 4], str.port__d_type__s___fd__d
mov dword [ebp - 0x40], edx
call fcn.0042cf00
mov ecx, ebx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x374
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042bf90
mov ecx, ebx
sub esp, 0x14
call fcn.0042c110
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ecx - 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], esi
call fcn.0050a5a0
mov ecx, ebx
call fcn.0042c1a0
mov ecx, dword [ebp - 0x2c]
mov dword [esp], ebx
sub ecx, 0xc
call fcn.004df670
push eax
mov eax, dword [ebp - 0x3c]
call eax
mov edx, dword [ebp - 0x40]
mov dword [eax], edx
jmp 0x424b6b
cmp dword [0x5152a8], 0
lea eax, [edx - 4]
jne 0x424e5d
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x424c04
mov eax, dword [ebp - 0x44]
mov ecx, edi
mov dword [esp], eax
call fcn.004df650
push eax
jmp 0x424c04
cmp dword [0x5152a8], 0
lea eax, [edx - 4]
jne 0x424e64
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x424bf2
lea eax, [ebp - 0x31]
mov ecx, edi
mov dword [esp], eax
call fcn.004df650
push eax
jmp 0x424bf2
call fcn.00513000
jmp 0x424e12
call fcn.00513000
lea esi, [esi]
jmp 0x424e42
call fcn.0042bec0
mov edx, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x3c], edx
cmp eax, 2
jg 0x424c19
call edx
mov edx, dword [ebp + 0x10]
mov edi, dword [eax]
mov eax, dword [edx]
mov edx, dword [ebp - 0x44]
mov dword [esp + 4], 0x523d3e
mov dword [esp + 8], eax
mov dword [esp], edx
call fcn.0042cf00
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x35f
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042bf90
mov ecx, dword [ebp - 0x40]
sub esp, 0x14
call fcn.0042c110
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.0050a5a0
mov ecx, dword [ebp - 0x40]
call fcn.0042c1a0
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x2c]
mov dword [esp], eax
lea ecx, [edx - 0xc]
call fcn.004df670
push eax
mov eax, dword [ebp - 0x3c]
call eax
mov dword [eax], edi
jmp 0x424c19
nop
call fcn.0042bec0
mov edx, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x3c], edx
cmp eax, 2
jg 0x424cf3
call edx
sub esi, 1
mov ecx, 0x523d15
mov edx, dword [eax]
mov eax, 0x523d11
cmove eax, ecx
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov dword [esp + 8], eax
mov dword [esp + 4], str.could_not_connect_to__s:_d:__s
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x44]
mov dword [esp], edx
call fcn.0042cf00
mov edi, dword [ebp - 0x40]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov ecx, edi
mov dword [esp + 4], 0x36c
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 - 0x2c]
mov esi, dword [ecx - 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], esi
call fcn.0050a5a0
mov ecx, edi
call fcn.0042c1a0
mov edx, dword [ebp - 0x2c]
mov dword [esp], edi
lea ecx, [edx - 0xc]
call fcn.004df670
mov eax, dword [ebp - 0x3c]
push ecx
call eax
mov edx, dword [ebp - 0x4c]
mov dword [eax], edx
jmp 0x424cf3
cmp dword [0x5152a8], 0
lea edx, [eax - 4]
jne 0x42504b
mov edx, dword [eax - 4]
lea edi, [edx - 1]
mov dword [eax - 4], edi
mov eax, edx
test eax, eax
jg 0x424cde
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.004df650
push edi
jmp 0x424cde
cmp dword [0x5152a8], 0
lea edx, [eax - 4]
jne 0x42505a
mov edx, dword [eax - 4]
lea edi, [edx - 1]
mov dword [eax - 4], edi
mov eax, edx
test eax, eax
jg 0x424ccc
lea eax, [ebp - 0x31]
mov dword [esp], eax
call fcn.004df650
push eax
jmp 0x424ccc
mov eax, edx
mov dword [ebp - 0x3c], ecx
call fcn.00513000
mov ecx, dword [ebp - 0x3c]
jmp 0x425002
mov eax, edx
mov dword [ebp - 0x3c], ecx
call fcn.00513000
mov ecx, dword [ebp - 0x3c]
jmp 0x425032