Function at 0x407a17
Capabilities:
Create raw socket
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10650
call fcn.00408ea0
and dword [ebp - 0x10414], 0
and dword [ebp - 0x1064c], 0
and dword [ebp - 0x10648], 0
and dword [ebp - 0x10644], 0
or dword [ebp - 4], 0xffffffff
and dword [ebp - 0x40c], 0
and dword [ebp - 0x105c0], 0
lea eax, [ebp - 0x105a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x407a72
jmp 0x407cc2
push 0
push 0
push 2
push 0x409e6c
push dword [ebp + 8]
call fcn.004079b7
mov dword [ebp - 0x40c], eax
push 0
push 0
push 2
push 0x409e6c
push 0
call fcn.004079b7
mov dword [ebp - 0x105c0], eax
cmp dword [ebp - 0x40c], 0
je 0x407ab5
cmp dword [ebp - 0x105c0], 0
jne 0x407abf
jmp 0x407cc2
push 1
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x407ade
jmp 0x407cc2
mov dword [ebp - 0x10644], 0x80
push 4
lea eax, [ebp - 0x10644]
push eax
push 4
push 0
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 0x105c0]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x105c0]
push dword [eax + 0x18]
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x407b28
jmp 0x407cc2
push 0x14
push 0
lea eax, [ebp - 0x105bc]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [ebp - 0x105ac], eax
mov dword [ebp - 0x1064c], 0x80
lea eax, [ebp - 0x105bc]
push eax
lea eax, [ebp - 0x1064c]
push eax
lea eax, [ebp - 0x10640]
push eax
push 0xffff
lea eax, [ebp - 0x10410]
push eax
push dword [ebp - 4]
call fcn.0040795e
push 0x400
push 0
lea eax, [ebp - 0x408]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [ebp - 0x408], 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov word [ebp - 0x404], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x400], eax
push 0x20
push 0x45
lea eax, [ebp - 0x3fc]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x10648], 0x2c
and dword [ebp - 0x10650], 0
jmp 0x407be3
mov eax, dword [ebp - 0x10650]
inc eax
mov dword [ebp - 0x10650], eax
cmp dword [ebp - 0x10650], 2
jge 0x407cc2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov word [ebp - 0x402], ax
push dword [ebp - 0x10648]
lea eax, [ebp - 0x408]
push eax
call fcn.004078f7
mov word [ebp - 0x406], ax
mov eax, dword [ebp - 0x40c]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x40c]
push dword [eax + 0x18]
push 0
push dword [ebp - 0x10648]
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x407c52
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407bd6
push dword [ebp + 0xc]
push dword [ebp - 0x105ac]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407c73
mov dword [ebp - 0x10414], 1
jmp 0x407cc2
push dword [ebp - 0x105ac]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov dword [ebp - 0x1064c], 0x80
lea eax, [ebp - 0x105bc]
push eax
lea eax, [ebp - 0x1064c]
push eax
lea eax, [ebp - 0x10640]
push eax
push 0xffff
lea eax, [ebp - 0x10410]
push eax
push dword [ebp - 4]
call fcn.0040795e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407bd6
cmp dword [ebp - 4], 0xffffffff
je 0x407cd1
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [ebp - 0x40c], 0
je 0x407ce6
push dword [ebp - 0x40c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 0x105c0], 0
je 0x407cfb
push dword [ebp - 0x105c0]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x10414]
leave
ret 8