Function at 0x48ff10
Capabilities:
Create udp socket
Get hostname
Initialize winsock library
Print debug messages
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x5dc
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x5d8], eax
push ebp
mov ebp, dword [esp + 0x5e4]
push esi
push edi
lea eax, [esp + 0x40]
push eax
push 0x101
mov dword [esp + 0x1c], 0x40
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x48ff5d
push eax
push str.SOCKET::Failed_WSAStartup_with__x__r_n
call fcn.00477b80
add esp, 8
jmp 0x49027d
cmp dword [ebp + 0x24c], 0
jne 0x490277
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp + ebx*4], eax
cmp eax, 0xffffffff
je 0x4901a7
mov ecx, 2
push 0xeeef
mov word [esp + 0x24], cx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, ebx
mov word [esp + 0x22], ax
call fcn.004903a0
test eax, eax
je 0x4901b9
mov ecx, ebx
call fcn.004903a0
push eax
push ebx
push str.StartUDPSocketServer_GetIPAddress__d____x____r_n
mov dword [esp + 0x30], eax
call fcn.00477b80
add esp, 0xc
cmp dword [esp + 0x24], 0
je 0x49026c
mov eax, dword [ebp + ebx*4]
push 0x10
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4901e5
mov edx, dword [ebp + ebx*4]
push 4
lea ecx, [esp + 0x18]
push ecx
push 0xa
push 0
push edx
call edi
cmp eax, 0xffffffff
je 0x490200
mov ecx, dword [ebp + ebx*4]
push 4
lea eax, [esp + 0x1c]
push eax
push 0x20
push 0xffff
mov esi, 1
push ecx
mov dword [esp + 0x2c], esi
call edi
cmp eax, 0xffffffff
je 0x490214
push str.225.4.5.6
lea esi, [ebp + 0x250]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, ebx
mov dword [esi], eax
call fcn.004903a0
push 8
push esi
push 0xc
mov dword [ebp + 0x254], eax
mov edx, dword [ebp + ebx*4]
push 0
push edx
call edi
cmp dword [ebp + 0x24c], 0
mov dword [esp + 0x10], 0x10
je 0x4900b0
mov eax, dword [ebp + ebx*4]
push 0
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [ebp + ebx*4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push str.closed_socket_n
call fcn.00477b80
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [ebp + 0x24c], 0
je 0x48ff70
jmp 0x490277
lea edx, [esp + 0x10]
push edx
mov edx, dword [ebp + ebx*4]
lea eax, [esp + 0x34]
push eax
push 0
push 0x400
lea ecx, [esp + 0x1f0]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
push esi
push str.received__d_n
call fcn.00477b80
add esp, 8
cmp esi, 0xffffffff
je 0x490234
push 0x2b
call fcn.0049f632
mov edi, eax
xor eax, eax
lea esi, [edi + 8]
mov dword [edi + 4], 0x2b
mov byte [edi], 0x65
mov word [edi + 2], ax
mov byte [edi + 1], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
add esp, 4
mov dword [esi + 0x18], eax
lea ecx, [esp + 0x1c]
mov dword [esi + 0x1c], eax
push ecx
mov word [esi + 0x20], ax
push esi
mov dword [esp + 0x24], 0x11
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push str.225.4.5.6
mov byte [esi + 0x22], 1
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xeeee
mov dword [esp + 0x38], eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + ebx*4]
push edx
mov word [esp + 0x36], ax
lea eax, [esp + 0x34]
push eax
push 0
push 0x2b
push edi
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
push eax
push str.res__d_n
call fcn.00477b80
movzx edx, byte [edi]
push edx
push str.Got_ID__d__r_n
call fcn.00477b80
push str.Send_hub_details_r_n
call fcn.00477b80
add esp, 0x14
jmp 0x4900b0
push str.SOCKET::Failed_socket____r_n
call fcn.00477b80
add esp, 4
jmp 0x490277
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + ebx*4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp + ebx*4], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
jmp 0x49027f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.SOCKET::Failed_UDP_bind___failed_with__x_r_n
call fcn.00477b80
mov edx, dword [ebp + ebx*4]
add esp, 8
push edx
jmp 0x490271
push str.setsockopt_failed__Error
call fcn.00477b80
mov eax, dword [ebp + ebx*4]
add esp, 4
push eax
jmp 0x490271
push str.setsockopt_failed__Error
call fcn.00477b80
mov ecx, dword [ebp + ebx*4]
add esp, 4
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
add dword [ebp + 0x248], esi
jmp 0x49027d
push str.recvfrom_failed..restarting_socket_n
call fcn.00477b80
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [esp + 0x1d4]
push 0x4d2ea8
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x1d0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp + ebx*4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
inc dword [ebp + 0x248]
xor eax, eax
mov ecx, dword [esp + 0x5e4]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0049dc2a
add esp, 0x5dc
ret 4