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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x6a56e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
push 0x10f
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00619ac0
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov ax, word [edx + 0xc]
mov word [ecx], ax
push 0x100
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x1c]
mov word [ecx + 2], ax
push 1
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x1c]
mov word [edx + 4], ax
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov word [ecx + 6], ax
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov word [eax + 8], dx
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov word [edx + 0xa], cx
push 1
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 8], ax
push 1
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xc], ax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x24]
mov al, byte [edx]
mov byte [ebp - 0x11], al
add dword [ebp - 0x24], 1
cmp byte [ebp - 0x11], 0
jne 0x40f595
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov dx, word [ebp - 0x3c]
mov word [ebp - 0x20], dx
movzx eax, word [ebp - 0x20]
xor ecx, ecx
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0062301d
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40f5e1
xor eax, eax
jmp 0x40f6c3
movzx edx, word [ebp - 0x20]
add edx, 2
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.0040fb70
test eax, eax
jne 0x40f604
xor eax, eax
jmp 0x40f6c3
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x28]
mov dl, byte [ecx]
mov byte [ebp - 0x12], dl
add dword [ebp - 0x28], 1
cmp byte [ebp - 0x12], 0
jne 0x40f613
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 0x10]
add edx, 0xc
mov dword [ebp - 0x10], edx
movzx eax, word [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00619c20
add esp, 0xc
movzx eax, word [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dx, word [ebp - 8]
mov word [ecx], dx
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dx, word [ebp - 0xc]
mov word [ecx], dx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0061dc81
add esp, 4
movzx ecx, word [ebp - 0x18]
add ecx, 0x10
mov word [ebp - 0x34], cx
push 0x10
lea edx, [ebp + 8]
push edx
push 0
movzx eax, word [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x40f6be
xor eax, eax
jmp 0x40f6c3
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006158c5
mov esp, ebp
pop ebp
ret 0x14