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

Disassembly:
sub esp, 0x42c
mov eax, dword [0x45a7c0]
push 0x4664bc
mov dword [esp + 0x42c], eax
mov byte [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4664d8]
test eax, eax
je 0x416afb
lea edx, [esp + 0x28]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x416af1
push esi
mov esi, dword [0x4664d4]
push 0x4664bc
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, dword [0x45b8ec]
je 0x416db3
mov eax, dword [0x4664b8]
test eax, eax
push edi
mov dword [0x45b8ec], esi
je 0x416b88
cmp byte [eax], 0
je 0x416b88
lea edi, [esp + 0x30]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x416b37
mov ecx, dword [str.__dumper_]
mov edx, dword [0x455550]
mov dword [edi], ecx
mov cx, word [0x455554]
mov dword [edi + 4], edx
mov word [edi + 8], cx
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416b60
lea edi, [esp + 0x30]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x416b70
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
push ebp
xor ebp, ebp
mov ebx, 1
xor eax, eax
mov dword [esp + 0x14], eax
cmp byte [esp + ebp + 0x38], 0x2c
jne 0x416baa
mov edi, edi
mov cl, byte [esp + ebp + 0x39]
inc ebp
cmp cl, 0x2c
je 0x416ba0
mov ecx, 2
mov edi, str._dumper_
lea esi, [esp + ebp + 0x38]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x416bc5
add ebp, 8
or eax, ebx
jmp 0x416b97
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + ebp + 0x40]
push str._d_n
push edx
call fcn.00422fc4
mov esi, dword [0x45e07c]
add esp, 0x10
cmp eax, ebx
jl 0x416d61
add ebp, dword [esp + 0x1c]
test esi, esi
je 0x416c0f
mov eax, dword [esp + 0x10]
nop
cmp dword [esi + 4], eax
je 0x416d4e
mov esi, dword [esi]
test esi, esi
jne 0x416c00
push 0x18
push ebx
call fcn.0042351e
add esp, 8
mov esi, eax
mov eax, dword [0x45e07c]
push 0
mov dword [esi], eax
mov ecx, dword [esp + 0x14]
push ebx
mov edi, 2
mov dword [0x45e07c], esi
push edi
mov dword [esi + 4], ecx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x416c73
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
push eax
push edx
push str.Could_not_obtain_a_socket_SOCK_STREAM__for_port__d._error___d_n
call fcn.0040ce60
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], edx
jmp 0x416b91
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], eax
mov word [esp + 0x2c], di
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0xc]
mov edx, dword [0x465e0c]
push 4
mov word [esp + 0x2e], ax
lea eax, [esp + 0x28]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x20]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [esi + 0xc]
push 0x10
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
mov dword [esi + 8], ebx
jne 0x416d23
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [esp + 0x14]
push eax
push str.Could_not_bind_to_port__d__error_code__d_n
call fcn.0040ce60
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi + 8], edi
add esp, 0xc
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], edx
jmp 0x416b91
mov ecx, dword [0x4664e4]
mov edx, dword [esi + 0xc]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_listen]
mov eax, dword [0x466450]
test eax, eax
je 0x416d4e
mov eax, dword [esi + 4]
push eax
push str.Aux_listening_on_port__d_n
call fcn.0040ce60
add esp, 8
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], edx
jmp 0x416b91
test esi, esi
mov edi, 0x45e07c
je 0x416db0
mov ebp, dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x18]
cmp dword [esi + 0x10], eax
je 0x416da8
mov eax, dword [0x466450]
test eax, eax
je 0x416d93
mov ecx, dword [esi + 4]
push ecx
push str.No_more_listening_on_port__d_n
call fcn.0040ce60
add esp, 8
mov edx, dword [esi + 0xc]
push edx
call ebp
mov eax, dword [esi]
push esi
mov dword [edi], eax
call fcn.00422e9a
add esp, 4
jmp 0x416daa
mov edi, esi
mov esi, dword [edi]
test esi, esi
jne 0x416d70
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x42c]
pop esi
call fcn.004233fe
add esp, 0x42c
ret