Function at 0x405400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x61201b
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x6a0f4c]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push edi
mov eax, dword [0x6a0f4c]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
xor eax, eax
mov edi, edx
mov ebx, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
cmp esi, eax
je 0x4057db
cmp byte [esi], al
je 0x4057db
cmp byte [ebp + 8], al
je 0x405517
cmp dword [0x6b8494], 1
jl 0x4054fa
push fcn.00404530
push eax
mov dword [esp + 0x18], eax
push 0x6af
lea eax, [esp + 0x1c]
push eax
mov ecx, str....._srclogging.cc
call fcn.00403de0
push esi
push ecx
push str._to
push ecx
push edi
push ecx
push str._BODY:
push ecx
push ebx
mov dword [esp + 0xe4], 0
mov eax, dword [esp + 0x38]
push ecx
add eax, 0x7538
push str.Trying_to_send_TITLE:
push eax
mov dword [esp + 0x48], 1
call fcn.00408230
add esp, 0xc
push eax
call fcn.00408230
add esp, 0xc
push eax
call fcn.00408230
add esp, 0xc
push eax
call fcn.00408230
add esp, 0xc
push eax
call fcn.00408230
add esp, 0xc
push eax
call fcn.00408230
add esp, 8
mov dword [esp + 0xc0], 0xffffffff
test byte [esp + 0x18], 1
je 0x405532
lea ecx, [esp + 0x10]
call fcn.004042e0
jmp 0x405532
push esi
push edi
push ebx
push str.Trying_to_send_TITLE:__s_BODY:__s_to__s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x14
mov edi, dword [sym.imp.MSVCP90.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__]
push 0x68a100
lea ecx, [esp + 0x7c]
push 0x6b0d3c
push ecx
call edi
add esp, 0xc
push ebx
push eax
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0xcc], 1
call edi
add esp, 0xc
push 0x68a0fc
push eax
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0xcc], 2
call edi
add esp, 0xc
push esi
push eax
lea ecx, [esp + 0x9c]
push ecx
mov byte [esp + 0xcc], 3
call edi
add esp, 0xc
lea ecx, [esp + 0x40]
mov byte [esp + 0xc0], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xc0], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 7
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esp + 0xac], 0x10
mov eax, dword [esp + 0x98]
jae 0x4055e0
lea eax, [esp + 0x98]
push 0x68a108
push eax
call dword [sym.imp.MSVCR90.dll__popen]
mov edi, eax
add esp, 8
test edi, edi
je 0x405744
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x40561d
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405606
push edi
sub eax, ebx
push eax
push 1
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
push edi
call dword [sym.imp.MSVCR90.dll__pclose]
add esp, 4
cmp eax, 0xffffffff
setne bl
mov byte [esp + 0xf], bl
test bl, bl
jne 0x405725
call dword [sym.imp.MSVCR90.dll__errno]
mov edx, dword [eax]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004063a0
add esp, 8
cmp byte [ebp + 8], bl
je 0x4056f3
mov edi, eax
push fcn.00404530
push 2
push 0x6c0
lea ecx, [esp + 0x1c]
mov bl, 8
push ecx
mov byte [esp + 0xd0], bl
mov ecx, str....._srclogging.cc
mov dword [esp + 0x20], 0
call fcn.00403de0
push edi
push ecx
push 0x689d5c
push ecx
push esi
mov byte [esp + 0xd4], 9
mov eax, dword [esp + 0x28]
push ecx
add eax, 0x7538
push str.Problems_sending_mail_to
push eax
call fcn.00408230
add esp, 0xc
push eax
call fcn.00408230
add esp, 0xc
push eax
call fcn.00408230
add esp, 0xc
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0xc0], bl
call fcn.004042e0
lea ecx, [esp + 0x24]
mov byte [esp + 0xc0], 7
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov bl, byte [esp + 0xf]
jmp 0x405725
cmp dword [eax + 0x18], 0x10
jb 0x4056fe
mov eax, dword [eax + 4]
jmp 0x405701
add eax, 4
push eax
push esi
push str.Problems_sending_mail_to__s:__s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x10
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x94]
mov dword [esp + 0xc0], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
jmp 0x4057dd
cmp byte [ebp + 8], 0
je 0x4057aa
push fcn.00404530
push 2
push 0x6ca
lea ecx, [esp + 0x28]
push ecx
mov ecx, str....._srclogging.cc
mov dword [esp + 0x2c], 0
call fcn.00403de0
push esi
mov byte [esp + 0xc4], 0xa
mov eax, dword [esp + 0x24]
push ecx
add eax, 0x7538
push str.Unable_to_send_mail_to
push eax
call fcn.00408230
add esp, 0xc
push eax
call fcn.00408230
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc0], 7
call fcn.004042e0
jmp 0x4057c3
push esi
push str.Unable_to_send_mail_to__s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
lea ecx, [esp + 0x94]
mov dword [esp + 0xc0], 0xffffffff
call dword [sym.imp.MSVCP90.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 + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.005fff12
mov esp, ebp
pop ebp
ret