Function at 0x408a00
Capabilities:
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x210
push ebp
push 0
push 2
push 2
mov dword [esp + 0x14], 0
call sub.WSOCK32.dll_socket
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x408a5b
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x276d
jne 0x408a51
lea eax, [esp + 0x84]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x408a5b
xor eax, eax
pop ebp
add esp, 0x210
ret
xor ecx, ecx
push ebx
mov dword [esp + 0x28], ecx
push esi
mov dword [esp + 0x30], ecx
push edi
mov dword [esp + 0x38], ecx
mov word [esp + 0x30], 2
push ecx
mov dword [esp + 0x40], ecx
call sub.WSOCK32.dll_htons
and eax, 0xffff
push 0
mov dword [esp + 0x38], eax
call sub.WSOCK32.dll_htons
lea edx, [esp + 0x30]
push 0x10
push edx
push ebp
mov word [esp + 0x3e], ax
call sub.WSOCK32.dll_bind
push 0
call fcn.0042c5d4
push eax
call fcn.0042c5a5
call fcn.0042c5b2
mov ebx, eax
and ebx, 0x8000ffff
jns 0x408ac3
dec ebx
or ebx, 0xffff0000
inc ebx
mov edi, dword [esp + 0x22c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
add edi, 0x12
push edi
call fcn.0044f2f1
add esp, 0xc
mov esi, eax
push 0x100
mov word [esi], bx
call sub.WSOCK32.dll_htons
push 1
mov word [esi + 2], ax
call sub.WSOCK32.dll_htons
push 0
mov word [esi + 4], ax
call sub.WSOCK32.dll_htons
push 0
mov word [esi + 6], ax
call sub.WSOCK32.dll_htons
push 0
mov word [esi + 8], ax
call sub.WSOCK32.dll_htons
mov ecx, dword [esp + 0x224]
mov word [esi + 0xa], ax
lea eax, [esi + 0xc]
push eax
push ecx
call fcn.00408d60
add esp, 8
mov dword [esp + 0x10], eax
push 1
call sub.WSOCK32.dll_htons
mov edx, dword [esp + 0x10]
push 1
mov word [edx], ax
call sub.WSOCK32.dll_htons
mov ecx, dword [esp + 0x10]
xor edx, edx
push 0x35
mov word [ecx + 2], ax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov word [esp + 0x1c], 2
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
call sub.WSOCK32.dll_htons
lea ecx, [esp + 0x18]
push 0x10
push ecx
push 0
mov word [esp + 0x26], ax
mov eax, dword [esp + 0x234]
push edi
push esi
push ebp
mov dword [esp + 0x34], eax
call sub.WSOCK32.dll_sendto
push esi
call fcn.0044f31a
add esp, 4
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 1
push edx
push 0x8004667e
push ebp
call sub.WSOCK32.dll_ioctlsocket
push 0x800
call fcn.0044f2f1
push 0
mov edi, eax
call fcn.0042c5d4
add esp, 8
mov dword [esp + 0x10], eax
xor eax, eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], eax
lea edx, [esp + 0x40]
mov dword [esp + 0x44], eax
push ecx
mov dword [esp + 0x4c], eax
push edx
push eax
push 0x800
push edi
push ebp
mov dword [esp + 0x64], eax
mov dword [esp + 0x44], 0x10
call sub.WSOCK32.dll_recvfrom
mov esi, eax
test esi, esi
jle 0x408c26
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jne 0x408c26
mov cx, word [esp + 0x42]
cmp cx, word [esp + 0x1a]
jne 0x408c26
cmp word [edi], bx
je 0x408c56
push 0
call fcn.0042c5d4
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x230]
sub eax, edx
add esp, 4
cmp eax, ecx
ja 0x408d37
test esi, esi
jg 0x408bd2
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x408bd2
mov dx, word [edi + 2]
push edx
call sub.WSOCK32.dll_ntohs
mov word [edi + 2], ax
mov ax, word [edi + 4]
push eax
call sub.WSOCK32.dll_ntohs
mov cx, word [edi + 6]
mov word [edi + 4], ax
push ecx
call sub.WSOCK32.dll_ntohs
mov dx, word [edi + 8]
mov word [edi + 6], ax
push edx
call sub.WSOCK32.dll_ntohs
mov word [edi + 8], ax
mov ax, word [edi + 0xa]
push eax
call sub.WSOCK32.dll_ntohs
mov word [edi + 0xa], ax
mov al, byte [edi + 2]
test al, 0xf
jne 0x408d37
cmp word [edi + 4], 1
jne 0x408d37
lea ecx, [esp + 0x50]
lea edx, [edi + 0xc]
push ecx
push edx
push edi
mov byte [esp + 0x5c], 0
call fcn.00408da0
add esp, 0xc
add eax, 4
cmp word [edi + 6], 0
mov dword [esp + 0x10], 0
jbe 0x408d37
lea ecx, [esp + 0x70]
push ecx
push eax
push edi
call fcn.00408da0
mov esi, eax
add esp, 0xc
mov dx, word [esi]
push edx
call sub.WSOCK32.dll_ntohs
add esi, 8
mov ebx, eax
mov ax, word [esi]
push eax
call sub.WSOCK32.dll_ntohs
mov ecx, eax
cmp bx, 1
lea eax, [esi + 2]
jne 0x408d14
mov edx, dword [eax]
mov dword [esp + 0x14], edx
and ecx, 0xffff
add eax, ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x408d37
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dx, word [edi + 6]
inc ecx
cmp ecx, edx
mov dword [esp + 0x10], ecx
jl 0x408cdb
push edi
call fcn.0044f31a
add esp, 4
push ebp
call sub.WSOCK32.dll_closesocket
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x210
ret