Function at 0x416300
Capabilities:
Create udp socket
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x710
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x6b8], 0
mov dword [ebp - 0x6dc], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x51c], 0
lea eax, [ebp - 0x6b0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x416355
xor eax, eax
jmp 0x4168dd
push pe_nt_image_headers32
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.004886d0
add esp, 0xc
mov edx, dword [ebp + 8]
movsx eax, word [edx]
cmp eax, 2
jne 0x416609
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xb90], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0xb94], 0
push 0x20
push 0
lea eax, [ebp - 0x6d8]
push eax
call fcn.004886d0
add esp, 0xc
mov dword [ebp - 0x6d0], 2
mov dword [ebp - 0x6d4], 2
mov dword [ebp - 0x6d8], 1
push 0x400
lea ecx, [ebp - 0x518]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x416604
lea edx, [ebp - 0x520]
push edx
lea eax, [ebp - 0x6d8]
push eax
push 0
lea ecx, [ebp - 0x518]
push ecx
call fcn.00417940
test eax, eax
jne 0x416604
mov edx, dword [ebp - 0x520]
mov dword [ebp - 0x10c], edx
jmp 0x416421
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x10c], ecx
cmp dword [ebp - 0x10c], 0
je 0x4165f8
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x4165f3
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x4165f3
push 2
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.00459d60
add esp, 8
mov dword [ebp - 0x6b4], eax
mov dword [ebp - 0x6e0], 0
jmp 0x4164a8
mov edx, dword [ebp - 0x6e0]
add edx, 1
mov dword [ebp - 0x6e0], edx
cmp dword [ebp - 0x6e0], 2
jge 0x4165d3
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.004886d0
add esp, 0xc
mov dword [ebp - 0x108], 1
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00414a70
add esp, 8
mov edx, dword [ebp - 0x6e0]
push edx
lea eax, [ebp - 0xd2]
push eax
call fcn.004168f0
add esp, 8
push 0x10
push 0
lea ecx, [ebp - 0x6f0]
push ecx
call fcn.004886d0
add esp, 0xc
mov word [ebp - 0x6f0], 2
push 0xa1
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x6ee], ax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x6ec], eax
push 0x7d0
push 0
lea ecx, [ebp - 0x6f0]
push ecx
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x6b4]
push eax
call fcn.00459f70
add esp, 0x14
mov dword [ebp - 0x6dc], eax
mov ecx, 1
test ecx, ecx
je 0x41656b
jmp 0x41657f
mov edx, dword [ebp - 0x6dc]
push edx
push 0x4b574c
call fcn.00414a60
add esp, 8
cmp dword [ebp - 0x6dc], 0
jl 0x4165bf
push 0
mov eax, dword [ebp + 8]
push eax
push 0x416930
mov ecx, dword [ebp - 0x6b4]
push ecx
call fcn.0045b1e0
add esp, 0x10
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x6e0], 0
jne 0x4165bf
mov edx, dword [ebp + 8]
cmp dword [edx + 0xb90], 0
jne 0x4165bf
jmp 0x4165d3
lea eax, [ebp - 0xd2]
push eax
call fcn.004599a0
add esp, 4
jmp 0x416499
push 1
mov ecx, dword [ebp - 0x6b4]
push ecx
call fcn.00459db0
add esp, 8
lea edx, [ebp - 0xd2]
push edx
call fcn.004599a0
add esp, 4
jmp 0x416412
mov eax, dword [ebp - 0x520]
push eax
call fcn.00418760
jmp 0x4168b0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xb90], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0xb94], 0
push 0x20
push 0
lea eax, [ebp - 0x6d8]
push eax
call fcn.004886d0
add esp, 0xc
mov dword [ebp - 0x6d0], 2
mov dword [ebp - 0x6d4], 0x17
mov dword [ebp - 0x6d8], 1
push 0x400
lea ecx, [ebp - 0x518]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x4168b0
lea edx, [ebp - 0x520]
push edx
lea eax, [ebp - 0x6d8]
push eax
push 0
lea ecx, [ebp - 0x518]
push ecx
call fcn.00417940
test eax, eax
jne 0x4168b0
mov edx, dword [ebp - 0x520]
mov dword [ebp - 0x10c], edx
jmp 0x4166b0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x10c], ecx
cmp dword [ebp - 0x10c], 0
je 0x4168a4
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x41689f
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x41689f
push 2
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.00459d60
add esp, 8
mov dword [ebp - 0x6b4], eax
mov dword [ebp - 0x6f4], 0
jmp 0x416737
mov edx, dword [ebp - 0x6f4]
add edx, 1
mov dword [ebp - 0x6f4], edx
cmp dword [ebp - 0x6f4], 2
jge 0x41687f
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.004886d0
add esp, 0xc
mov dword [ebp - 0x108], 1
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00414a70
add esp, 8
mov edx, dword [ebp - 0x6f4]
push edx
lea eax, [ebp - 0xd2]
push eax
call fcn.004168f0
add esp, 8
push 0x1c
push 0
lea ecx, [ebp - 0x710]
push ecx
call fcn.004886d0
add esp, 0xc
mov word [ebp - 0x710], 0x17
push 0xa1
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x70e], ax
mov edx, dword [ebp + 8]
add edx, 8
mov eax, dword [edx]
mov dword [ebp - 0x708], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0x704], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x700], eax
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x6fc], ecx
push 0x7d0
push 0
lea edx, [ebp - 0x710]
push edx
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x6b4]
push ecx
call fcn.00459f70
add esp, 0x14
mov dword [ebp - 0x6dc], eax
mov edx, 1
test edx, edx
je 0x416817
jmp 0x41682b
mov eax, dword [ebp - 0x6dc]
push eax
push 0x4b5774
call fcn.00414a60
add esp, 8
cmp dword [ebp - 0x6dc], 0
jl 0x41686b
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x416930
mov edx, dword [ebp - 0x6b4]
push edx
call fcn.0045b1e0
add esp, 0x10
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x6f4], 0
jne 0x41686b
mov eax, dword [ebp + 8]
cmp dword [eax + 0xb90], 0
jne 0x41686b
jmp 0x41687f
lea ecx, [ebp - 0xd2]
push ecx
call fcn.004599a0
add esp, 4
jmp 0x416728
push 1
mov edx, dword [ebp - 0x6b4]
push edx
call fcn.00459db0
add esp, 8
lea eax, [ebp - 0xd2]
push eax
call fcn.004599a0
add esp, 4
jmp 0x4166a1
mov ecx, dword [ebp - 0x520]
push ecx
call fcn.00418760
mov edx, dword [ebp + 8]
movsx eax, word [edx]
cmp eax, 2
jne 0x4168bd
jmp 0x4168d7
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xb90], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0xb94], 0
mov eax, dword [ebp - 0x6b8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret