Function at 0x402100
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 1
mov eax, dword [0x403010]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 3
jne 0x40217f
mov dword [ebp - 0x14], 0x42
push 0xffffffffffffffff
mov eax, dword [0x404164]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xe
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.WSOCK32.dll_sendto
mov eax, dword [0x404164]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
jmp 0x40232c
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
and eax, 0xffff
test eax, eax
jne 0x40219a
mov eax, dword [ebp + 0xc]
mov word [eax], 0x200
cmp dword [ebp + 8], 2
jne 0x4021e5
mov dword [ebp - 0x14], 0x42
push 0xffffffffffffffff
mov eax, dword [0x404164]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xe
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.WSOCK32.dll_sendto
mov eax, dword [0x404164]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
jmp 0x40232c
push 0xffffffffffffffff
mov eax, dword [0x403004]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0
jmp 0x402202
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x32
jge 0x4022c9
mov eax, dword [ebp - 4]
mov ecx, eax
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
cmp dword [eax*8 + 0x403084], 1
jne 0x4022c4
mov eax, dword [ebp - 4]
mov ecx, eax
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
lea eax, [eax*8 + 0x403030]
add eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0x34]
mov dword [ecx + 2], eax
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
shl eax, 6
mov ecx, dword [ebp + 0xc]
lea edi, [eax + ecx + 2]
add esi, 2
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
inc dword [ebp - 8]
cmp dword [ebp - 4], 0x32
jge 0x4022c4
cmp dword [ebp - 8], 8
jne 0x4022c4
push 0xffffffffffffffff
mov eax, dword [0x404164]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xe
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0x202
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.WSOCK32.dll_sendto
mov eax, dword [0x404164]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, dword [ebp + 0xc]
add edi, 2
xor eax, eax
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
jmp 0x4021ff
mov eax, dword [0x403004]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 8], 0
jle 0x402325
mov eax, dword [ebp - 8]
shl eax, 6
add eax, 2
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
mov eax, dword [0x404164]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xe
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.WSOCK32.dll_sendto
mov eax, dword [0x404164]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 8], 0
xor eax, eax
jmp 0x40232c
pop edi
pop esi
pop ebx
leave
ret 0xc