Function at 0x404320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56b3e6
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
mov eax, dword [0x5d6c64]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x404570
cmp byte [ebx], 0
je 0x404570
push ebx
push edi
push esi
push str.Trying_to_send_TITLE:__s_BODY:__s_to__s_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x14
push str.__s_
lea eax, [esp + 0x50]
push 0x5f7394
push eax
call fcn.004082c0
add esp, 0xc
push esi
push eax
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0xbc], 1
call fcn.00407b10
add esp, 0xc
push 0x5c0338
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0xbc], 2
call fcn.00407b10
add esp, 0xc
push ebx
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0xbc], 3
call fcn.00407b10
add esp, 0xc
mov esi, 0x10
cmp dword [esp + 0x44], esi
jb 0x404413
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
cmp dword [esp + 0x7c], esi
jb 0x40443c
mov edx, dword [esp + 0x68]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
mov byte [esp + 0xb0], 7
cmp dword [esp + 0x60], esi
jb 0x40446d
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
cmp dword [esp + 0x28], esi
jae 0x404490
lea eax, [esp + 0x14]
push 0x5c0344
push eax
call dword [sym.imp.MSVCR100.dll__popen]
mov esi, eax
add esp, 8
test esi, esi
je 0x404542
test edi, edi
je 0x4044c9
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4044b2
push esi
sub eax, edx
push eax
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
push esi
call dword [sym.imp.MSVCR100.dll__pclose]
add esp, 4
cmp eax, 0xffffffff
setne al
mov byte [esp + 0xf], al
test al, al
jne 0x404527
call dword [sym.imp.MSVCR100.dll__errno]
mov ecx, dword [eax]
push ecx
lea edi, [esp + 0x88]
call fcn.00404960
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x404501
mov eax, dword [eax]
push eax
push ebx
push str.Problems_sending_mail_to__s:__s_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
lea ecx, [esp + 0x84]
call fcn.00404bb0
cmp dword [esp + 0x28], 0x10
jb 0x40453c
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, byte [esp + 0xf]
jmp 0x404572
push ebx
push str.Unable_to_send_mail_to__s_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
cmp dword [esp + 0x28], 0x10
jb 0x404570
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004610a0
mov esp, ebp
pop ebp
ret