Function at 0x4227fe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42be55
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x44201c]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x44201c]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
and dword [esp + 0x20], 0
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
je 0x4229f6
cmp byte [eax], 0
je 0x4229f6
mov ebx, dword [sym.imp.MSVCR80.dll___iob_func]
push eax
push edx
push ecx
push str.Trying_to_send_TITLE:__s_BODY:__s_to__s_n
call ebx
mov edi, dword [sym.imp.MSVCR80.dll_fprintf]
add eax, 0x40
push eax
call edi
mov esi, dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x14
push str.__s_
push dword [0x44e794]
lea eax, [esp + 0x48]
push eax
call esi
add esp, 0xc
push dword [esp + 0x1c]
mov dword [esp + 0x114], 1
push eax
lea eax, [esp + 0x2c]
push eax
call esi
add esp, 0xc
push 0x433ac4
push eax
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x11c], 2
call esi
add esp, 0xc
push dword [esp + 0x18]
mov byte [esp + 0x114], 3
push eax
lea eax, [esp + 0x80]
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x5c]
mov byte [esp + 0x110], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x24]
mov byte [esp + 0x110], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0x110], 7
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esp + 0x90], 0x10
mov eax, dword [esp + 0x7c]
jae 0x422931
lea eax, [esp + 0x7c]
push 0x433ad0
push eax
call dword [sym.imp.MSVCR80.dll__popen]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4229d0
cmp dword [esp + 0x14], 0
je 0x422971
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422957
push esi
sub eax, edx
push eax
push 1
push dword [esp + 0x20]
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
push esi
call dword [sym.imp.MSVCR80.dll__pclose]
cmp eax, 0xffffffff
setne byte [esp + 0x17]
cmp byte [esp + 0x17], 0
pop ecx
jne 0x4229b8
call dword [sym.imp.MSVCR80.dll__errno]
push dword [eax]
lea edi, [esp + 0x98]
call fcn.00422c59
pop ecx
mov eax, edi
push eax
push dword [esp + 0x1c]
push str.Problems_sending_mail_to__s:__s_n
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x10
or dword [esp + 0x110], 0xffffffff
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [esp + 0x13]
jmp 0x4229f8
push dword [esp + 0x18]
push str.Unable_to_send_mail_to__s_n
call ebx
add eax, 0x40
push eax
call edi
or dword [esp + 0x11c], 0xffffffff
add esp, 0xc
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.00424d84
mov esp, ebp
pop ebp
ret