Function at 0x42142c
Capabilities:
Create udp socket
Get hostname
Get local ipv4 addresses
Get socket information
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push 0
call fcn.0042181b
add esp, 4
mov byte [ebp - 0x4c], al
mov eax, dword [ebp - 0x4c]
and eax, 0xff
test eax, eax
je 0x421453
jmp 0x421527
push 0x40
push 0
lea ecx, [ebp - 0x48]
push ecx
call fcn.0042188c
add esp, 0xc
push 0x17c
push 0
lea edx, [ebp - 0x370]
push edx
call fcn.0042188c
add esp, 0xc
mov byte [ebp - 0x48], 0x33
push 0x10
push 0x20
lea eax, [ebp - 0x3e]
push eax
call fcn.0042188c
add esp, 0xc
mov byte [ebp - 0x3e], 0x2a
lea ecx, [ebp - 0x370]
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x40], 0x17c
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x48]
push edx
call sub.NETAPI32.dll_Netbios
mov eax, dword [ebp - 0x47]
and eax, 0xff
test eax, eax
je 0x4214c7
mov ecx, dword [ebp - 0x47]
and ecx, 0xff
cmp ecx, 6
jne 0x421527
mov dword [ebp - 0x1f4], 0
jmp 0x4214e2
mov edx, dword [ebp - 0x1f4]
add edx, 1
mov dword [ebp - 0x1f4], edx
cmp dword [ebp - 0x1f4], 6
jge 0x421502
mov eax, dword [ebp - 0x1f4]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x370]
test ecx, ecx
je 0x421500
jmp 0x421502
jmp 0x4214d3
cmp dword [ebp - 0x1f4], 6
jge 0x421527
push 6
lea edx, [ebp - 0x370]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00421858
add esp, 0xc
xor eax, eax
jmp 0x421817
mov byte [ebp - 8], 1
lea ecx, [ebp - 0x1f0]
push ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x42154a
mov eax, 0x1d4e8
jmp 0x421817
push 0x3e8
push 2
push 6
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x378], eax
cmp dword [ebp - 0x378], 0xffffffff
je 0x42169b
mov dword [ebp - 0x374], 0xe
push 0x14
push 0
lea edx, [ebp - 0x60]
push edx
call fcn.0042188c
add esp, 0xc
mov word [ebp - 0x60], 6
mov word [ebp - 0x54], 0
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 0x378]
push ecx
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
je 0x42169b
mov edx, dword [ebp - 0x374]
push edx
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x378]
push ecx
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
je 0x42169b
lea edx, [ebp - 0x374]
push edx
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x378]
push ecx
call sub.WSOCK32.dll_getsockname
cmp eax, 0xffffffff
je 0x42169b
push 6
lea edx, [ebp - 0x5a]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00421858
add esp, 0xc
mov ecx, dword [ebp - 0x378]
push ecx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
mov byte [ebp - 4], 0
mov dword [ebp - 0x1f4], 0
jmp 0x421635
mov edx, dword [ebp - 0x1f4]
add edx, 1
mov dword [ebp - 0x1f4], edx
cmp dword [ebp - 0x1f4], 5
jge 0x42167c
mov eax, dword [ebp - 4]
and eax, 0xff
test eax, eax
jne 0x421667
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x1f4]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
jne 0x421667
mov dword [ebp - 0x448], 0
jmp 0x421671
mov dword [ebp - 0x448], 1
mov al, byte [ebp - 0x448]
mov byte [ebp - 4], al
jmp 0x421626
mov ecx, dword [ebp - 4]
and ecx, 0xff
cmp ecx, 1
jne 0x421691
xor eax, eax
jmp 0x421817
mov eax, 0x1fbd2
jmp 0x421817
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x378], eax
cmp dword [ebp - 0x378], 0xffffffff
je 0x42180d
mov dword [ebp - 0x374], 0x10
push 0x14
push 0
lea edx, [ebp - 0x60]
push edx
call fcn.0042188c
add esp, 0xc
mov word [ebp - 0x60], 2
push 0
call sub.WSOCK32.dll_htonl
mov dword [ebp - 0x5c], eax
push 0
call sub.WSOCK32.dll_htons
mov word [ebp - 0x5e], ax
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 0x378]
push ecx
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
je 0x42180d
mov edx, dword [ebp - 0x374]
push edx
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x378]
push ecx
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
je 0x42180d
push 0xc8
lea edx, [ebp - 0x444]
push edx
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x444]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x37c], eax
push 6
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042188c
add esp, 0xc
push 6
mov edx, dword [ebp - 0x37c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00421858
add esp, 0xc
mov eax, dword [ebp - 0x378]
push eax
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
mov byte [ebp - 4], 0
mov dword [ebp - 0x1f4], 0
jmp 0x4217ad
mov ecx, dword [ebp - 0x1f4]
add ecx, 1
mov dword [ebp - 0x1f4], ecx
cmp dword [ebp - 0x1f4], 5
jge 0x4217f5
mov edx, dword [ebp - 4]
and edx, 0xff
test edx, edx
jne 0x4217e0
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x1f4]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
jne 0x4217e0
mov dword [ebp - 0x44c], 0
jmp 0x4217ea
mov dword [ebp - 0x44c], 1
mov dl, byte [ebp - 0x44c]
mov byte [ebp - 4], dl
jmp 0x42179e
mov eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 1
jne 0x421806
xor eax, eax
jmp 0x421817
mov eax, 0x1fbd2
jmp 0x421817
call sub.WSOCK32.dll_WSACleanup
mov eax, 0x1fbd2
mov esp, ebp
pop ebp
ret