Function at 0x402680
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x204
lea eax, [esp + 0x210]
lea ecx, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
push str.MIME_Version:__s_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x218]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
mov ebp, dword [esp + 0x21c]
mov edx, dword [esp + 0x1cb0]
mov eax, dword [esp + 0x1cac]
lea ecx, [ebp + 0xe29]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str.Content_Type:_message_partial__number_d__total_d__id__s__r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
push str.E_MailPrinting_Version_2.0.1
lea ecx, [esp + 0x18]
push str.X_Mailer:__s_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
mov eax, dword [ebp + 0xb58]
test eax, eax
je 0x402769
push ebp
push esi
call fcn.00401f70
add esp, 8
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, 0x40d244
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40d244
push esi
call ebx
lea edx, [ebp + 0x1a90]
lea eax, [esp + 0x14]
push edx
push str.Subject:__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x10]
lea edi, [esp + 0x14]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call ebx
mov ax, word [ebp + 0xe6e]
lea edx, [ebp + 0xb5c]
push edx
push eax
lea ecx, [eax + 1]
lea eax, [ebp + 0xc66]
lea edi, [ebp + 0xde8]
push eax
push edi
mov word [ebp + 0xe6e], cx
call fcn.00403970
add esp, 0x10
lea ecx, [esp + 0x14]
push edi
push str.Message_ID:___s__r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
lea ecx, [esp + 0x220]
lea edx, [esp + 0x14]
push ecx
push str.MIME_Version:__s_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x10]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
push 0
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x20]
push ecx
push esi
call ebx
mov eax, dword [esp + 0x330]
test eax, eax
je 0x40289d
lea edx, [esp + 0x2e0]
lea eax, [esp + 0x14]
push edx
push str.Content_Type:_multipart_mixed__boundary__s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x10]
lea edi, [esp + 0x14]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
jmp 0x4028d3
lea eax, [esp + 0x2a0]
lea ecx, [esp + 0x14]
push eax
push str.Content_Type:__s_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push str.Content_Transfer_Encoding:_7bit_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
mov eax, dword [ebp + 0xb58]
test eax, eax
je 0x40291b
push ebp
push esi
call fcn.00401f70
add esp, 8
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, 0x40d244
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40d244
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret