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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ax, word [0x4044f0]
mov word [ebp - 0x18], ax
mov cx, word [0x4044f4]
mov word [ebp - 0x1c], cx
mov dx, word [0x4044f8]
mov word [ebp - 4], dx
mov eax, dword [0x4044fc]
mov dword [ebp - 0x14], eax
mov cl, byte [0x404500]
mov byte [ebp - 0x10], cl
mov edx, dword [0x404504]
mov dword [ebp - 0xc], edx
mov ax, word [0x404508]
mov word [ebp - 8], ax
cmp dword [ebp + 0x10], 0
jne 0x401f63
mov dword [ebp - 0x20], 0
jmp 0x401e46
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 1
jg 0x401f5e
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
je 0x401e67
cmp dword [ebp - 0x24], 1
je 0x401ee1
jmp 0x401f59
push 0
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
push 0
push 1
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
cmp eax, 2
jne 0x401eb0
push 0
push 4
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
jmp 0x401ec2
push 0
push 5
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x401f59
push 0
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
push 0
push 1
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
cmp eax, 2
jne 0x401f2a
push 0
push 4
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
jmp 0x401f3c
push 0
push 5
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x401e3d
jmp 0x40206c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
je 0x401f7a
cmp dword [ebp - 0x28], 2
je 0x401ff4
jmp 0x40206c
push 0
push 1
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0
push 1
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
cmp eax, 2
jne 0x401fc3
push 0
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x401fd5
push 0
push 5
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
jmp 0x40206c
push 0
push 1
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0
push 1
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
cmp eax, 2
jne 0x40203d
push 0
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x40204f
push 0
push 5
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esp, ebp
pop ebp
ret