Function at 0x414400
Capabilities:
Create udp socket
Get hostname
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x7d0], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 0x7f4], 0
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x7f8], 0
mov dword [ebp - 0x630], 0
lea ecx, [ebp - 0x7c8]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x414468
xor eax, eax
jmp 0x414a47
mov dword [ebp - 0x220], 0
push 0x110
push 0
lea edx, [ebp - 0x21c]
push edx
call fcn.004886d0
add esp, 0xc
mov dword [ebp - 0x220], 0x114
lea eax, [ebp - 0x220]
push eax
call dword [0x4e56d8]
cmp dword [ebp - 0x21c], 6
jb 0x41477c
cmp dword [0x539bb8], 4
je 0x41477c
push 0x20
push 0
lea ecx, [ebp - 0x7f0]
push ecx
call fcn.004886d0
add esp, 0xc
mov dword [ebp - 0x7e8], 2
mov dword [ebp - 0x7ec], 0x17
mov dword [ebp - 0x7f0], 1
push 0x400
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x41477c
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x7f0]
push ecx
push 0
lea edx, [ebp - 0x628]
push edx
call fcn.00417940
test eax, eax
jne 0x41477c
mov eax, dword [ebp - 0x634]
mov dword [ebp - 0x224], eax
jmp 0x414546
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x224], edx
cmp dword [ebp - 0x224], 0
je 0x414770
mov dword [ebp - 0x7fc], 0x200
lea eax, [ebp - 0x7fc]
push eax
lea ecx, [ebp - 0xa00]
push ecx
push 0
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
push 0x4b5370
lea eax, [ebp - 0xa00]
push eax
call fcn.004885a4
add esp, 8
test eax, eax
jne 0x4145a4
jmp 0x414770
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
je 0x41476b
mov dword [ebp - 0xa04], 1
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x41475e
push 4
lea eax, [ebp - 0xa04]
push eax
push 0x20
push 0xffff
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
mov edx, dword [ebp - 0x228]
push edx
call fcn.00459d60
add esp, 8
mov dword [ebp - 0x7cc], eax
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
lea edx, [ebp - 0xd2]
push edx
call fcn.00414b30
add esp, 4
push 0x1c
push 0
lea eax, [ebp - 0xa20]
push eax
call fcn.004886d0
add esp, 0xc
mov word [ebp - 0xa20], 0x17
push 0xa1
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xa1e], ax
mov ecx, dword [0x4d261c]
mov dword [ebp - 0xa18], ecx
mov edx, dword [0x4d2620]
mov dword [ebp - 0xa14], edx
mov eax, dword [0x4d2624]
mov dword [ebp - 0xa10], eax
mov ecx, dword [0x4d2628]
mov dword [ebp - 0xa0c], ecx
push 0xbb8
push 0
lea edx, [ebp - 0xa20]
push edx
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x7cc]
push ecx
call fcn.00459f70
add esp, 0x14
mov dword [ebp - 0x7f4], eax
mov edx, 1
test edx, edx
je 0x4146fc
jmp 0x414710
mov eax, dword [ebp - 0x7f4]
push eax
push 0x4b5378
call fcn.00414a60
add esp, 8
cmp dword [ebp - 0x7f4], 0
jl 0x41473c
push 0
lea ecx, [ebp - 0x630]
push ecx
push 0x414cf0
mov edx, dword [ebp - 0x7cc]
push edx
call fcn.0045b1e0
add esp, 0x10
mov dword [ebp - 0x7f8], eax
push 1
mov eax, dword [ebp - 0x7cc]
push eax
call fcn.00459db0
add esp, 8
lea ecx, [ebp - 0xd2]
push ecx
call fcn.004599a0
add esp, 4
jmp 0x41476b
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x414537
mov eax, dword [ebp - 0x634]
push eax
call fcn.00418760
cmp dword [0x539bb8], 6
je 0x414a01
push 0x20
push 0
lea ecx, [ebp - 0x7f0]
push ecx
call fcn.004886d0
add esp, 0xc
mov dword [ebp - 0x7e8], 2
mov dword [ebp - 0x7ec], 2
mov dword [ebp - 0x7f0], 1
push 0x400
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x414a01
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x7f0]
push ecx
push 0
lea edx, [ebp - 0x628]
push edx
call fcn.00417940
test eax, eax
jne 0x414a01
mov eax, dword [ebp - 0x634]
mov dword [ebp - 0x224], eax
jmp 0x414816
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x224], edx
cmp dword [ebp - 0x224], 0
je 0x4149f5
push 3
push 0x4b5114
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call fcn.00489fce
add esp, 0xc
test eax, eax
jne 0x41484f
jmp 0x4149f5
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
je 0x4149f0
mov dword [ebp - 0xa24], 1
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x4149e3
push 4
lea edx, [ebp - 0xa24]
push edx
push 0x20
push 0xffff
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.00459d60
add esp, 8
mov dword [ebp - 0x7cc], eax
push pe_nt_image_headers32
push 0
lea edx, [ebp - 0x108]
push edx
call fcn.004886d0
add esp, 0xc
mov dword [ebp - 0x108], 1
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.00414a70
add esp, 8
lea ecx, [ebp - 0xd2]
push ecx
call fcn.00414b30
add esp, 4
push 0x10
push 0
lea edx, [ebp - 0xa34]
push edx
call fcn.004886d0
add esp, 0xc
mov word [ebp - 0xa34], 2
push 0xa1
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xa32], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa30], eax
push 0xdac
push 0
lea ecx, [ebp - 0xa34]
push ecx
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x7cc]
push eax
call fcn.00459f70
add esp, 0x14
mov dword [ebp - 0x7f4], eax
mov ecx, 1
test ecx, ecx
je 0x414981
jmp 0x414995
mov edx, dword [ebp - 0x7f4]
push edx
push 0x4b53e0
call fcn.00414a60
add esp, 8
cmp dword [ebp - 0x7f4], 0
jl 0x4149c1
push 0
lea eax, [ebp - 0x630]
push eax
push 0x414cf0
mov ecx, dword [ebp - 0x7cc]
push ecx
call fcn.0045b1e0
add esp, 0x10
mov dword [ebp - 0x62c], eax
push 1
mov edx, dword [ebp - 0x7cc]
push edx
call fcn.00459db0
add esp, 8
lea eax, [ebp - 0xd2]
push eax
call fcn.004599a0
add esp, 4
jmp 0x4149f0
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x414807
mov edx, dword [ebp - 0x634]
push edx
call fcn.00418760
cmp dword [ebp - 0x62c], 0
jne 0x414a13
cmp dword [ebp - 0x7f8], 0
je 0x414a3b
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x630]
push ecx
call fcn.00414c30
add esp, 8
mov dword [ebp - 0x7d0], eax
mov edx, dword [ebp - 0x630]
push edx
call fcn.00414c00
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x7d0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret