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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055b8
xor eax, eax
push ebp
push 0x494836
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4946e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004053c8
cmp eax, 0x11
je 0x4945d9
call fcn.0040e788
mov eax, dword [ebp - 4]
call fcn.004053c8
test eax, eax
jle 0x494625
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x24]
sub eax, 3
je 0x49460b
sub eax, 3
je 0x49460b
sub eax, 3
je 0x49460b
sub eax, 3
je 0x49460b
sub eax, 3
jne 0x49461d
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
cmp byte [eax + edx - 1], 0x2d
je 0x49461d
call fcn.0040e788
inc dword [ebp - 0x24]
dec dword [ebp - 0x28]
jne 0x4945ef
xor eax, eax
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 4]
mov eax, 0x494850
call fcn.0040570c
test eax, eax
jle 0x49468c
lea eax, [ebp - 0x238]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x494850
call fcn.0040570c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405628
mov ecx, dword [ebp - 0x238]
mov edx, dword [0x61b390]
mov edx, dword [edx]
lea eax, [ebp - 0x234]
call fcn.00405414
mov eax, dword [ebp - 0x234]
call fcn.0040a444
mov edx, dword [ebp - 0x24]
mov byte [ebp + edx - 0x1a], al
jmp 0x4946b4
mov edx, dword [0x61b390]
mov edx, dword [edx]
lea eax, [ebp - 0x23c]
mov ecx, dword [ebp - 4]
call fcn.00405414
mov eax, dword [ebp - 0x23c]
call fcn.0040a444
mov edx, dword [ebp - 0x24]
mov byte [ebp + edx - 0x1a], al
mov edx, dword [ebp - 4]
mov eax, 0x494850
call fcn.0040570c
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call fcn.00405668
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 6
jne 0x49462a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4946ff
lea eax, [ebp - 0x1b8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov edx, 0x49485c
call fcn.00494558
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x49473b
mov edx, 0x494870
mov eax, dword [ebp - 0xc]
call fcn.00494558
mov dword [ebp - 0x14], 1
push 4
lea eax, [ebp - 0x14]
push eax
push 0x20
push 0xffff
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_setsockopt
mov edx, 0x494880
call fcn.00494558
lea eax, [ebp - 0x22e]
mov ecx, 0xff
mov edx, 0x66
call fcn.0040345c
mov dword [ebp - 0x20], 6
cmp dword [ebp - 0x20], 0x66
jge 0x4947a4
lea edx, [ebp - 0x22e]
add edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1a]
mov ecx, 6
call fcn.00402a8c
add dword [ebp - 0x20], 6
cmp dword [ebp - 0x20], 0x66
jl 0x494784
mov word [ebp - 0x1c8], 2
mov dword [ebp - 0x1c4], 0xffffffff
push 0x10
lea eax, [ebp - 0x1c8]
push eax
push 0
push 0x66
lea eax, [ebp - 0x22e]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_sendto
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4947ea
mov edx, 0x494894
mov eax, dword [ebp - 0x10]
call fcn.00494558
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_closesocket
mov edx, 0x4948a4
call fcn.00494558
call sub.wsock32.dll_WSACleanup
mov edx, 0x4948b8
call fcn.00494558
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49483d
lea eax, [ebp - 0x23c]
mov edx, 3
call fcn.0040512c
lea eax, [ebp - 4]
call fcn.00405108
ret