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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10668
call fcn.0040c760
and dword [ebp - 0x1041c], 0
and dword [ebp - 0x10654], 0
and dword [ebp - 0x10650], 0
and dword [ebp - 0x1064c], 0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x105b0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x409b34
jmp 0x409d6f
push 0x10
push 0
lea eax, [ebp - 0x418]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 2
pop eax
mov word [ebp - 0x418], ax
push 0x10
push 0
lea eax, [ebp - 0x10664]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 2
pop eax
mov word [ebp - 0x10664], ax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10660], eax
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 0x409b9c
jmp 0x409d6f
mov dword [ebp - 0x1064c], 0x80
push 4
lea eax, [ebp - 0x1064c]
push eax
push 4
push 0
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x409bdd
jmp 0x409d6f
push 0x400
push 0
lea eax, [ebp - 0x408]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x14
push 0
lea eax, [ebp - 0x105c4]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [ebp - 0x105b4], eax
mov dword [ebp - 0x10654], 0x80
lea eax, [ebp - 0x105c4]
push eax
lea eax, [ebp - 0x10654]
push eax
lea eax, [ebp - 0x10648]
push eax
push 0xffff
lea eax, [ebp - 0x10418]
push eax
push dword [ebp - 4]
call fcn.00409a89
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 - 0x10650], 0x2c
and dword [ebp - 0x10668], 0
jmp 0x409c98
mov eax, dword [ebp - 0x10668]
inc eax
mov dword [ebp - 0x10668], eax
cmp dword [ebp - 0x10668], 2
jge 0x409d6f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov word [ebp - 0x402], ax
push dword [ebp - 0x10650]
lea eax, [ebp - 0x408]
push eax
call fcn.00409a22
mov word [ebp - 0x406], ax
push 0x10
lea eax, [ebp - 0x10664]
push eax
push 0
push dword [ebp - 0x10650]
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x409d20
push dword [ebp + 0xc]
push dword [ebp - 0x105b4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409d20
mov eax, dword [ebp - 0x10644]
cmp eax, dword [ebp - 0x10660]
jne 0x409d20
mov dword [ebp - 0x1041c], 1
jmp 0x409d6f
push dword [ebp - 0x105b4]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov dword [ebp - 0x10654], 0x80
lea eax, [ebp - 0x105c4]
push eax
lea eax, [ebp - 0x10654]
push eax
lea eax, [ebp - 0x10648]
push eax
push 0xffff
lea eax, [ebp - 0x10418]
push eax
push dword [ebp - 4]
call fcn.00409a89
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409c8b
cmp dword [ebp - 4], 0xffffffff
je 0x409d7e
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x1041c]
leave
ret 8