Function at 0x414510
Capabilities:
Create thread
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0x8a4]
sub esp, 0x8a4
push 0xffffffffffffffff
push 0x611ccb
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x6efdcc]
xor eax, ebp
mov dword [ebp + 0x8a0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [0x8d73f0], ebx
jne 0x41483f
lea eax, [ebp]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x41483f
push 0x11
push 2
push 2
call sub.WS2_32.dll_socket
mov dword [0x8d73f0], eax
cmp eax, 0xffffffff
je 0x41483f
mov ecx, 2
push 0x521
mov word [0x8d6468], cx
call sub.WS2_32.dll_htons
mov edi, 0x1aec7567
lea esi, [ebp - 0x5e]
mov word [0x8d646a], ax
call fcn.0041ad50
push eax
call sub.WS2_32.dll_inet_addr
push 8
lea edx, [ebp - 0x18]
push edx
push 0x1006
mov dword [0x8d646c], eax
mov eax, dword [0x8d73f0]
push 0xffff
push eax
mov dword [ebp - 0x18], 0x3a98
mov dword [ebp - 0x14], ebx
call sub.WS2_32.dll_setsockopt
mov edx, dword [0x8d73f0]
push 4
lea ecx, [ebp - 0x10]
push ecx
push 8
push 0xffff
push edx
mov dword [ebp - 0x10], 1
call sub.WS2_32.dll_setsockopt
push 0x10
push 0x8d6468
push ebx
push 0x310
mov dword [0x8d8ab4], 0x7d1
mov ecx, 0xc4
mov esi, 0x8d8870
lea edi, [ebp + 0x590]
lea eax, [ebp + 0x590]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x8d73f0]
push eax
push ecx
call sub.WS2_32.dll_sendto
mov eax, dword [0x8d73f0]
push ebx
push ebx
push ebx
push 0x400
lea edx, [ebp + 0x190]
push edx
push eax
mov dword [0x8d8ab4], ebx
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x4147ce
jmp 0x4146ca
mov ecx, 0x65d3c15d
lea eax, [ebp - 0x58]
call fcn.0041add0
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.004071b0
mov edi, 0x6c27fc
sub edi, 0x369d3767
lea esi, [ebp - 0x83]
call fcn.0041ad90
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004071b0
push 0x3c
mov byte [ebp - 4], 5
call fcn.005babf0
add esp, 4
cmp eax, ebx
je 0x414733
mov ecx, 0xf
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ebx
mov byte [eax + 4], bl
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], ebx
mov byte [eax + 0x20], bl
mov esi, eax
jmp 0x414735
xor esi, esi
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
call fcn.00406df0
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x50]
push edx
lea ecx, [esi + 0x1c]
call fcn.00406df0
push ebx
push ebx
push esi
push 0x414440
push ebx
push ebx
mov dword [esi + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
jne 0x41477d
call fcn.004144c0
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push ebx
call fcn.005e710a
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x1c], esi
jb 0x4147a3
mov eax, dword [ebp - 0x30]
push eax
call fcn.005bac10
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x38], esi
jb 0x4147c1
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.005bac10
add esp, 4
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push ebx
call fcn.005e710a
cmp dword [ebp + 0x3d4], 0x64
mov ecx, 0xc4
lea esi, [ebp + 0x190]
mov edi, 0x8d8870
rep movsd dword es:[edi], dword [esi]
jne 0x414864
mov esi, dword [0x8d8ba0]
push 0x8d8ba5
push 0x8d8ba4
mov edi, 0x8d8ba7
mov ebx, 0x8d8ba6
mov byte [0x8d8ba4], 1
call fcn.00410740
mov esi, dword [0x8d87a0]
push 0x8d87a5
push 0x8d87a4
mov edi, 0x8d87a7
mov ebx, 0x8d87a6
mov byte [0x8d87a4], 1
call fcn.00410740
add esp, 0x10
mov byte [0x8d6dc6], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8a0]
xor ecx, ebp
call fcn.005de817
add ebp, 0x8a4
mov esp, ebp
pop ebp
ret
mov ecx, 0x65d3c15d
lea eax, [ebp - 0x58]
call fcn.0041add0
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 6
call fcn.004071b0
push 0x8d8891
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.004071b0
push 0x3c
mov byte [ebp - 4], 9
call fcn.005babf0
add esp, 4
cmp eax, ebx
je 0x4148bf
mov ecx, 0xf
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ebx
mov byte [eax + 4], bl
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], ebx
mov byte [eax + 0x20], bl
mov esi, eax
jmp 0x4148c1
xor esi, esi
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
call fcn.00406df0
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 0x1c]
call fcn.00406df0
push ebx
push ebx
push esi
push 0x414440
push ebx
push ebx
mov dword [esi + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
jne 0x414909
call fcn.004144c0
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push ebx
call fcn.005e710a
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x1c], esi
jb 0x41492f
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.005bac10
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x38], esi
jb 0x4147c1
mov edx, dword [ebp - 0x4c]
push edx
jmp 0x4147b9