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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov ebx, dword [ebp + 0x10]
mov ecx, 0x874d78
call fcn.004705d0
test eax, eax
je 0x4727ba
mov esi, eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov word [esp + 0x2c], 2
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2e], ax
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x30], eax
mov ecx, edi
call fcn.00471a80
push eax
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
je 0x4727d7
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x2c]
push 0x10
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4727fb
mov ebx, 0xffffffff
cmp esi, 0x99d630
jb 0x472a3e
cmp dword [esi + 4], 0
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
je 0x4726df
cmp esi, 0x9b5630
jae 0x4726df
mov eax, 0x99d630
mov ecx, esi
sub ecx, eax
sar ecx, 4
imul ebx, ecx, 0xaaaaaaab
add ebx, 0x800
add esi, 0x10
cmp edx, 1
mov eax, 0x874f29
mov ecx, 0x874f24
cmove ecx, eax
push edi
push ecx
push ebx
push str._d_lo_client:_s_d_
push 0x20
push esi
call fcn.004706e0
add esp, 0x18
mov eax, dword [0x86159c]
test byte [eax], 0x80
je 0x472a34
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x472a34
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
sub esp, 0x14
movaps xmm0, xmmword [0x8741a0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea esi, [esp + 0x18]
mov ecx, esi
call fcn.004b9f90
mov ecx, esi
call fcn.004b9f60
mov esi, eax
cmp dword [ebp + 0xc], 1
mov eax, 0x874f0d
mov ecx, 0x874f09
cmove ecx, eax
lea eax, [esp + 0x10]
push ebx
push ecx
push edi
push str.port__d_type__s___fd__d
mov edi, eax
push eax
call fcn.004ba8a0
add esp, 0x14
push edi
push esi
call fcn.00402f30
add esp, 8
test byte [esp + 0x10], 1
je 0x4727a1
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 4]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp]
mov dword [eax], ecx
jmp 0x472a34
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call fcn.00479500
add esp, 4
mov ecx, ebx
push eax
call fcn.005205a0
jmp 0x472a2f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [esp + 4]
mov dword [esp], eax
push eax
push ecx
call fcn.004bbe60
add esp, 8
test byte [esp + 4], 1
je 0x472852
mov eax, dword [esp + 0xc]
jmp 0x472856
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [esp + 0x24], eax
movzx eax, word [esp + 0x2e]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
mov dword [esp], edi
push edi
push eax
call fcn.004bbe60
add esp, 8
test byte [esp + 4], 1
je 0x472932
mov eax, dword [esp + 0xc]
jmp 0x472936
lea eax, [esp + 5]
lea edi, [esp + 0x10]
push eax
push str.cannot_create_socket:__s
push edi
call fcn.004ba8a0
add esp, 0xc
test byte [ebx], 1
je 0x47288b
mov eax, dword [ebx + 8]
mov byte [eax], 0
mov dword [ebx + 4], 0
test byte [ebx], 1
je 0x47288b
push dword [ebx + 8]
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [ebx + 8], eax
movsd xmm0, qword [esp + 0x10]
movsd qword [ebx], xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
test byte [esp + 4], 1
je 0x4728c7
push dword [esp + 0xc]
call fcn.0051c570
add esp, 4
mov eax, dword [0x86159c]
test byte [eax], 0x80
je 0x4729bd
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x4729bd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
sub esp, 0x14
movaps xmm0, xmmword [0x8741c0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea ecx, [esp + 0x18]
call fcn.004b9f90
lea ecx, [esp + 4]
call fcn.004b9f60
mov dword [esp + 0x20], eax
test byte [ebx], 1
je 0x472ab0
mov ebx, dword [ebx + 8]
jmp 0x472ab1
lea eax, [esp + 5]
lea edi, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x2c]
push str.cannot_connect_to__s:_u:__s
push edi
call fcn.004ba8a0
add esp, 0x14
test byte [ebx], 1
je 0x472973
mov eax, dword [ebx + 8]
mov byte [eax], 0
mov dword [ebx + 4], 0
test byte [ebx], 1
je 0x472973
push dword [ebx + 8]
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [ebx + 8], eax
movsd xmm0, qword [esp + 0x10]
movsd qword [ebx], xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
test byte [esp + 4], 1
je 0x4729af
push dword [esp + 0xc]
call fcn.0051c570
add esp, 4
mov eax, dword [0x86159c]
test byte [eax], 0x80
jne 0x472a49
mov ecx, dword [esp]
call fcn.004716a0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [eax]
mov edi, dword [0x99d618]
mov ecx, edi
call fcn.0051b740
mov eax, 0x99d630
mov ecx, esi
sub ecx, eax
sar ecx, 4
imul eax, ecx, 0xaaaaaaab
cmp dword [0x99d62c], eax
jle 0x4729f9
mov dword [0x99d62c], eax
cmp dword [esi + 4], 0
je 0x472a20
mov eax, dword [esi]
push esi
call dword [eax + 4]
add esp, 4
mov byte [esi + 0x10], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi], 0
mov ecx, edi
call fcn.0051b7e0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], ebx
mov ebx, 0xffffffff
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
jmp 0x4726df
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x4729bd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
sub esp, 0x14
movaps xmm0, xmmword [0x8741b0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea ecx, [esp + 0x18]
call fcn.004b9f90
lea ecx, [esp + 4]
call fcn.004b9f60
mov dword [esp + 0x20], eax
cmp dword [ebp + 0xc], 1
mov ecx, 0x874f0d
mov eax, 0x874f09
cmove eax, ecx
test byte [ebx], 1
je 0x472ac2
mov ebx, dword [ebx + 8]
jmp 0x472ac3
inc ebx
push ebx
push 0x874dc9
push edi
call fcn.004ba8a0
add esp, 0xc
jmp 0x472ad6
inc ebx
push ebx
push dword [ebp + 8]
push eax
push str.could_not_connect_to__s:_d:__s
push edi
call fcn.004ba8a0
add esp, 0x14
push edi
push dword [esp + 0x24]
call fcn.00402f30
add esp, 8
test byte [esp + 0x10], 1
je 0x472af6
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 4]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
jmp 0x4729bd