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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2030
call fcn.0041a560
mov dword [ebp - 0x2024], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x201c], 0
mov dword [ebp - 0x2018], 0
cmp dword [ebp + 0xc], 0x2000
jle 0x409187
xor eax, eax
jmp 0x4094a3
push 0x2000
push 0
lea eax, [ebp - 0x2014]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov byte [ebp + ecx - 0x2014], 0xaa
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x2014], 0x55
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
push 2
lea edx, [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + eax - 0x2014]
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
lea eax, [ebp + edx - 0x2014]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov byte [ebp + edx - 0x2014], 0x55
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp + ecx - 0x2014], 0xaa
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x2014]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x2024]
add edx, 0x6030
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 2
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + 0xc], edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x201c]
push edx
push 1
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x2024]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.ws2_32.dll_WSASend]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4093f5
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2020], eax
cmp dword [ebp - 0x2020], 0x3e5
jne 0x409326
mov eax, 1
test eax, eax
je 0x4092cc
mov dword [ebp - 0x2028], 0
jmp 0x4092ec
mov ecx, dword [ebp - 0x2024]
mov edx, dword [ecx + 0x6048]
push edx
push str.SEND_:_IO_PENDING_SID_d__n
call fcn.00404590
add esp, 8
mov dword [ebp - 0x2028], eax
mov eax, dword [ebp - 0x2024]
mov cx, word [eax + 6]
add cx, 1
mov edx, dword [ebp - 0x2024]
mov word [edx + 6], cx
mov eax, dword [ebp - 0x2024]
movsx ecx, word [eax + 6]
cmp ecx, 3
jle 0x409318
jmp 0x4094a1
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x201c], edx
jmp 0x4093f3
cmp dword [ebp - 0x2020], 0x2733
jne 0x40939a
mov eax, 1
test eax, eax
je 0x409347
mov dword [ebp - 0x202c], 0
jmp 0x409367
mov ecx, dword [ebp - 0x2024]
mov edx, dword [ecx + 0x6048]
push edx
push str.SEND_:_WOULDBLOCK_SID_d__n
call fcn.00404590
add esp, 8
mov dword [ebp - 0x202c], eax
mov eax, dword [ebp - 0x2024]
mov cx, word [eax + 8]
add cx, 1
mov edx, dword [ebp - 0x2024]
mov word [edx + 8], cx
mov eax, dword [ebp - 0x2024]
movsx ecx, word [eax + 8]
cmp ecx, 3
jle 0x409393
jmp 0x40949f
xor eax, eax
jmp 0x4094a3
mov edx, 1
test edx, edx
je 0x4093af
mov dword [ebp - 0x2030], 0
jmp 0x4093d6
mov eax, dword [ebp - 0x2020]
push eax
mov ecx, dword [ebp - 0x2024]
mov edx, dword [ecx + 0x6048]
push edx
push str.SEND_:_ERROR__SID_d_____d_n
call fcn.00404590
add esp, 0xc
mov dword [ebp - 0x2030], eax
mov eax, dword [ebp - 0x2024]
mov cx, word [eax + 4]
add cx, 1
mov edx, dword [ebp - 0x2024]
mov word [edx + 4], cx
jmp 0x40949d
jmp 0x40941f
cmp dword [ebp - 0x10], 0
jne 0x40941f
mov eax, dword [ebp - 0x2024]
mov word [eax + 6], 0
mov ecx, dword [ebp - 0x2024]
mov word [ecx + 8], 0
mov edx, dword [ebp - 0x2024]
mov word [edx + 4], 0
mov eax, dword [ebp - 0x201c]
jmp 0x4094a3
mov eax, dword [ebp - 0x2024]
add eax, 0x601c
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], 3
mov edx, dword [ebp - 0x2024]
xor eax, eax
mov al, byte [edx + 0x6044]
cmp eax, 1
jne 0x409466
mov ecx, dword [ebp - 0x2024]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x2018], eax
jmp 0x409478
mov ecx, dword [ebp - 0x2024]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2018], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x2024]
mov eax, dword [edx + 0x6048]
push eax
push 0
mov ecx, dword [ebp - 0x2018]
push ecx
call dword [sym.imp.kernel32.dll_PostQueuedCompletionStatus]
or eax, 0xffffffff
jmp 0x4094a3
jmp 0x409427
jmp 0x409427
jmp 0x409427
mov esp, ebp
pop ebp
ret 0xc