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

Disassembly:
push ebp
mov eax, 0x425d84
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
call dbg._fh_alloc
mov edi, eax
or eax, 0xffffffff
test edi, edi
je 0x413b16
mov ebx, dword [0x43bf38]
test ebx, ebx
je 0x413b20
sub esp, 0xc
mov eax, dword [ebp + 8]
and eax, 0xffff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov word [ebp - 0x1c], 2
push eax
call fcn.00418a78
mov word [addr.sin_family], ax
lea ebx, [ebp - 0x1c]
push 0x7f000001
call fcn.00418a80
mov dword [ebp - 0x18], eax
push ecx
push ecx
push 0
push esi
push 2
call fcn.00418a88
add esp, 0x14
cmp eax, 0xffffffff
je 0x413bd1
mov dword [edi + 0xc], eax
push ecx
push 0x10
push ebx
push eax
call fcn.00418aa0
pop edx
test eax, eax
js 0x413c52
mov eax, str.udp:
cmp esi, 1
je 0x413bc0
mov edx, dword [ebp + 8]
push ecx
push ecx
push edx
push eax
mov eax, edi
call dbg._fh_to_int
push eax
lea eax, [edi + 0x18]
push str._d_lo_client:_s_d_
push 0x20
push eax
call sym.___mingw_snprintf
add esp, 0x20
cmp byte [0x43cb58], 0
js 0x413b30
mov eax, edi
call dbg._fh_to_int
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dbg._init_winsock
jmp 0x413a61
call sym.__errno
sub esp, 0xc
mov eax, dword [eax]
push 0x43cb38
mov dword [ebp - 0x20], eax
call fcn.0041dcdc
mov ebx, dword [0x43d3d8]
add esp, 0xc
add ebx, 0x40
push str.socket_loopback_client
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call dbg.fprintf
call sym.__errno
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, edi
call dbg._fh_to_int
add esp, 0x10
mov edx, 0x4259b8
dec esi
je 0x413bca
sub esp, 0xc
push eax
mov eax, dword [ebp + 8]
push edx
push eax
push str.socket_loopback_client:_port__d_type__s___fd__d_n
push ebx
call dbg.fprintf
add esp, 0x14
push ebx
call sym._fflush
mov dword [esp], 0x43cb38
call fcn.0041dce4
add esp, 0xc
call sym.__errno
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
jmp 0x413b0f
mov eax, 0x42599e
jmp 0x413ae4
mov edx, 0x4259bc
jmp 0x413b84
cmp byte [0x43cb58], 0
js 0x413be9
mov eax, edi
call dbg._fh_close
or eax, 0xffffffff
jmp 0x413b16
call sym.__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x43cb38
call fcn.0041dcdc
mov ebx, dword [0x43d3d8]
add esp, 0xc
add ebx, 0x40
push str.socket_loopback_client
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call dbg.fprintf
call sym.__errno
mov dword [eax], esi
pop eax
pop edx
push str.socket_loopback_client:_could_not_create_socket_n
push ebx
call dbg.fprintf
mov dword [esp], ebx
call sym._fflush
mov dword [esp], 0x43cb38
call fcn.0041dce4
add esp, 0xc
call sym.__errno
mov dword [eax], esi
jmp 0x413bda
cmp byte [0x43cb58], 0
jns 0x413bda
call sym.__errno
sub esp, 0xc
mov eax, dword [eax]
push 0x43cb38
mov dword [ebp - 0x24], eax
call fcn.0041dcdc
mov ebx, dword [0x43d3d8]
add esp, 0xc
add ebx, 0x40
push str.socket_loopback_client
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call dbg.fprintf
call sym.__errno
mov edx, dword [ebp - 0x24]
add esp, 0x10
dec esi
mov dword [eax], edx
mov eax, 0x4259b8
je 0x413ce2
mov esi, dword [ebp + 8]
push esi
push eax
push str.socket_loopback_client:_could_not_connect_to__s:_d_n
push ebx
call dbg.fprintf
mov dword [esp], ebx
call sym._fflush
mov dword [esp], 0x43cb38
call fcn.0041dce4
add esp, 0xc
call sym.__errno
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x413bda
mov eax, 0x4259bc
jmp 0x413cac