Function at 0x472b30
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x3c], 0
mov ecx, 0x874d78
call fcn.004705d0
mov dword [esp + 0x30], eax
test eax, eax
je 0x472d46
mov dword [esp + 0xc], ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov word [esp + 0x40], 2
mov dword [esp + 0x38], esi
movzx eax, si
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x42], ax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x44], 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 0x472d63
mov ebx, eax
mov esi, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov dword [esp + 0x3c], 1
lea eax, [esp + 0x3c]
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x472d8a
lea eax, [esp + 0x40]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x472e70
cmp edi, 1
jne 0x472c1e
push 0x7fffffff
push ebx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x473054
mov ebx, 0xffffffff
cmp esi, 0x99d630
jb 0x472c51
cmp dword [esi + 4], 0
je 0x472c51
cmp esi, 0x9b5630
jae 0x472c51
mov eax, 0x99d630
mov ecx, esi
sub ecx, eax
sar ecx, 4
imul ebx, ecx, 0xaaaaaaab
add ebx, 0x800
add esi, 0x10
cmp dword [ebp + 8], 0x7f000001
mov eax, 0x875841
mov ecx, 0x875844
cmove ecx, eax
cmp edi, 1
mov eax, 0x874f29
mov edx, 0x874f24
cmove edx, eax
push dword [esp + 0x38]
push edx
push ecx
push ebx
push str._d__s_server:_s_d_
push 0x20
push esi
call fcn.004706e0
add esp, 0x1c
mov eax, dword [0x86159c]
test byte [eax], 0x80
je 0x473176
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x473176
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
sub esp, 0x14
movaps xmm0, xmmword [0x8741d0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea esi, [esp + 0x34]
mov ecx, esi
call fcn.004b9f90
mov ecx, esi
call fcn.004b9f60
mov esi, eax
cmp edi, 1
mov eax, 0x874f0d
mov ecx, 0x874f09
cmove ecx, eax
lea edi, [esp + 0x10]
push ebx
push ecx
push dword [esp + 0x40]
push str.port__d_type__s___fd__d
push edi
call fcn.004ba8a0
add esp, 0x14
push edi
push esi
call fcn.00402f30
add esp, 8
test byte [esp + 0x10], 1
je 0x472d2c
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
jmp 0x473176
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 0x473171
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
lea eax, [esp + 0x20]
push edi
push eax
call fcn.004bbe60
add esp, 8
test byte [esp + 0x20], 1
mov esi, dword [esp + 0x30]
je 0x472db4
mov eax, dword [esp + 0x28]
jmp 0x472db8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
lea eax, [esp + 0x20]
push edi
push eax
call fcn.004bbe60
add esp, 8
test byte [esp + 0x20], 1
je 0x472ec8
mov eax, dword [esp + 0x28]
jmp 0x472ecc
lea eax, [esp + 0x21]
lea ebx, [esp + 0x10]
push eax
push str.cannot_create_socket:__s
push ebx
call fcn.004ba8a0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
test byte [ecx], 1
je 0x472df3
mov eax, dword [ecx + 8]
mov byte [eax], 0
mov dword [ecx + 4], 0
test byte [ecx], 1
je 0x472df3
push dword [ecx + 8]
call fcn.0051c570
mov ecx, dword [ebp + 0xc]
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [ecx + 8], eax
movsd xmm0, qword [esp + 0x10]
movsd qword [ecx], xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
test byte [esp + 0x20], 1
je 0x472e2f
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
mov eax, dword [0x86159c]
test byte [eax], 0x80
je 0x473100
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x473100
mov dword [esp + 0x2c], edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
sub esp, 0x14
movaps xmm0, xmmword [0x874210]
jmp 0x472f7f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [esp + 0x34], eax
movzx eax, word [esp + 0x42]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], ebx
push ebx
push eax
call fcn.004bbe60
add esp, 8
test byte [esp + 0x20], 1
je 0x472fba
mov eax, dword [esp + 0x28]
jmp 0x472fbe
lea eax, [esp + 0x21]
lea ebx, [esp + 0x10]
push eax
push str.cannot_set_socket_option_SO_EXCLUSIVEADDRUSE:__s
push ebx
call fcn.004ba8a0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
test byte [ecx], 1
je 0x472f07
mov eax, dword [ecx + 8]
mov byte [eax], 0
mov dword [ecx + 4], 0
test byte [ecx], 1
je 0x472f07
push dword [ecx + 8]
call fcn.0051c570
mov ecx, dword [ebp + 0xc]
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [ecx + 8], eax
movsd xmm0, qword [esp + 0x10]
movsd qword [ecx], xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
test byte [esp + 0x20], 1
je 0x472f43
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
mov eax, dword [0x86159c]
test byte [eax], 0x80
je 0x473100
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x473100
mov dword [esp + 0x2c], edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
sub esp, 0x14
movaps xmm0, xmmword [0x874200]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea edi, [esp + 0x34]
mov ecx, edi
call fcn.004b9f90
mov ecx, edi
call fcn.004b9f60
mov edi, eax
mov eax, dword [ebp + 0xc]
test byte [eax], 1
je 0x47320d
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
jmp 0x473211
lea eax, [esp + 0x21]
lea ebx, [esp + 0x10]
push eax
push dword [esp + 0x58]
push dword [esp + 0x3c]
push str.cannot_bind_to__s:_u:__s
push ebx
call fcn.004ba8a0
add esp, 0x14
mov ecx, dword [ebp + 0xc]
test byte [ecx], 1
je 0x473001
mov eax, dword [ecx + 8]
mov byte [eax], 0
mov dword [ecx + 4], 0
test byte [ecx], 1
je 0x473001
push dword [ecx + 8]
call fcn.0051c570
mov ecx, dword [ebp + 0xc]
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [ecx + 8], eax
movsd xmm0, qword [esp + 0x10]
movsd qword [ecx], xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
test byte [esp + 0x20], 1
je 0x47303d
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
mov eax, dword [0x86159c]
test byte [eax], 0x80
jne 0x473180
mov edi, dword [esp + 0x2c]
jmp 0x473100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
lea eax, [esp + 0x20]
push edi
push eax
call fcn.004bbe60
add esp, 8
test byte [esp + 0x20], 1
je 0x473077
mov eax, dword [esp + 0x28]
jmp 0x47307b
lea eax, [esp + 0x21]
lea ebx, [esp + 0x10]
push eax
push str.cannot_listen_on_socket:__s
push ebx
call fcn.004ba8a0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
test byte [ecx], 1
je 0x4730b6
mov eax, dword [ecx + 8]
mov byte [eax], 0
mov dword [ecx + 4], 0
test byte [ecx], 1
je 0x4730b6
push dword [ecx + 8]
call fcn.0051c570
mov ecx, dword [ebp + 0xc]
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [ecx + 8], eax
movsd xmm0, qword [esp + 0x10]
movsd qword [ecx], xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
test byte [esp + 0x20], 1
je 0x4730f2
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
mov eax, dword [0x86159c]
test byte [eax], 0x80
jne 0x4731ec
mov ecx, edi
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 0x47313b
mov dword [0x99d62c], eax
cmp dword [esi + 4], 0
je 0x473162
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 esi, ebx
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x473200
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
sub esp, 0x14
movaps xmm0, xmmword [0x8741f0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea ebx, [esp + 0x34]
mov ecx, ebx
call fcn.004b9f90
mov ecx, ebx
call fcn.004b9f60
mov ebx, eax
cmp edi, 1
mov ecx, 0x874f0d
mov eax, 0x874f09
cmove eax, ecx
mov ecx, dword [ebp + 0xc]
test byte [ecx], 1
je 0x473257
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
mov dword [esp + 0xc], ecx
jmp 0x47325b
mov dword [esp + 0x2c], edi
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
jne 0x473276
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
jmp 0x473100
inc dword [esp + 0xc]
push dword [esp + 0xc]
push 0x874dc9
push ebx
call fcn.004ba8a0
add esp, 0xc
push ebx
push edi
call fcn.00402f30
add esp, 8
test byte [esp + 0x10], 1
je 0x473240
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
jmp 0x473200
inc dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0x3c]
push eax
push str.could_not_bind_to__s:_d:__s
push esi
call fcn.004ba8a0
add esp, 0x14
push esi
push ebx
jmp 0x473225
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
sub esp, 0x14
movaps xmm0, xmmword [0x8741e0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea edi, [esp + 0x34]
mov ecx, edi
call fcn.004b9f90
mov ecx, edi
call fcn.004b9f60
mov edi, eax
mov eax, dword [ebp + 0xc]
test byte [eax], 1
je 0x4732c0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
jmp 0x4732c4
inc dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0x3c]
push 0x874f0d
push str.could_not_listen_on__s:_d:__s
push ebx
call fcn.004ba8a0
add esp, 0x14
jmp 0x473223