Function at 0x100280cb
Capabilities:
Write file on windows

Disassembly:
push 0x40
mov eax, 0x101c60d9
call fcn.100946d0
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 8]
push edi
lea ecx, [esi + 0x28]
call fcn.10027f30
and dword [ebp - 0x18], 0
mov dword [esi + 0x24], 1
mov eax, dword [0x10204778]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.101452b0
mov byte [ebp - 4], 1
push str.MailInfo
lea ecx, [ebp - 0x4c]
call fcn.10145400
lea eax, [edi + 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.100dc3b0
mov byte [ebp - 4], 2
push dword [eax]
mov esi, 0x101dcdd4
push esi
lea eax, [ebp - 0x4c]
push str.GUID
push eax
call fcn.101454b0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c9e10
push dword [edi + 0x18]
mov ebx, 0x101dfaa0
push ebx
lea eax, [ebp - 0x4c]
push str.Direction
push eax
call fcn.101454b0
push dword [edi + 0x24]
lea eax, [ebp - 0x4c]
push dword [edi + 0x20]
push str._I64u
push str.MailSize
push eax
call fcn.101454b0
push dword [edi + 0x28]
lea eax, [ebp - 0x4c]
push esi
push str.From
push eax
call fcn.101454b0
push dword [edi + 0x2c]
lea eax, [ebp - 0x4c]
push esi
push 0x101e38ec
push eax
call fcn.101454b0
add esp, 0x44
push dword [edi + 0x30]
lea eax, [ebp - 0x4c]
push esi
push 0x101e38e4
push eax
call fcn.101454b0
push dword [edi + 0x34]
lea eax, [ebp - 0x4c]
push esi
push str.Bccs
push eax
call fcn.101454b0
push dword [edi + 0x38]
lea eax, [ebp - 0x4c]
push esi
push str.Subject
push eax
call fcn.101454b0
add esp, 0x30
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [ecx - 8], eax
jne 0x100281f0
mov ecx, dword [edi + 0x40]
cmp dword [ecx - 8], eax
je 0x100281f3
xor eax, eax
inc eax
push eax
push 0x101dcdec
lea eax, [ebp - 0x4c]
push str.HasText
push eax
call fcn.101454b0
and dword [ebp + 8], 0
add esp, 0x10
lea ecx, [edi + 0x44]
call fcn.10004f3d
test eax, eax
jle 0x10028335
push str.Attach
lea ecx, [ebp - 0x4c]
call fcn.10145490
lea ecx, [ebp - 0x4c]
call fcn.10146660
push dword [ebp + 8]
lea ecx, [edi + 0x44]
call fcn.1000611f
push dword [eax]
lea eax, [ebp - 0x4c]
push ebx
push 0x101e38a0
push eax
call fcn.101454b0
add esp, 0x10
push dword [ebp + 8]
lea ecx, [edi + 0x44]
call fcn.1000611f
push dword [eax + 0xc]
push dword [eax + 8]
lea eax, [ebp - 0x4c]
push str._I64u
push str.Size
push eax
call fcn.101454b0
add esp, 0x14
push dword [ebp + 8]
lea ecx, [edi + 0x44]
call fcn.1000611f
push dword [eax + 0x10]
lea eax, [ebp - 0x4c]
push ebx
push str.Status
push eax
call fcn.101454b0
add esp, 0x10
push dword [ebp + 8]
lea ecx, [edi + 0x44]
call fcn.1000611f
push dword [eax + 0x14]
lea eax, [ebp - 0x4c]
push esi
push str.Name
push eax
call fcn.101454b0
add esp, 0x10
push dword [ebp + 8]
lea ecx, [edi + 0x44]
call fcn.1000611f
push dword [eax + 0x18]
lea eax, [ebp - 0x4c]
push esi
push str.Cache
push eax
call fcn.101454b0
add esp, 0x10
push dword [ebp + 8]
lea ecx, [edi + 0x44]
call fcn.1000611f
push dword [eax + 0x1c]
lea eax, [ebp - 0x4c]
push esi
push str.DecryptPath
push eax
call fcn.101454b0
add esp, 0x10
push dword [ebp + 8]
lea ecx, [edi + 0x44]
call fcn.1000611f
push dword [eax + 0x20]
lea eax, [ebp - 0x4c]
push esi
push str.DocWatermarkPath
push eax
call fcn.101454b0
add esp, 0x10
lea ecx, [ebp - 0x4c]
call fcn.10146690
inc dword [ebp + 8]
lea ecx, [edi + 0x44]
call fcn.10004f3d
cmp dword [ebp + 8], eax
jl 0x1002821e
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
call fcn.101453b0
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x10]
call fcn.100c9fa0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c9e10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.10145340
mov eax, dword [ebp - 0x10]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x1002838e
push str.SaveMailInfo_doc_is_empty
push str.MailInfo
push 4
push 0x1025cd9c
call fcn.10023e79
add esp, 0x10
jmp 0x10028484
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
call fcn.10026ab3
mov byte [ebp - 4], 4
mov esi, dword [eax]
push ebx
push ebx
push 2
call fcn.10199910
push eax
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100c9e10
cmp esi, 0xffffffff
jne 0x100283ee
push str.MailInfo.dat
push str.SaveMailInfo_create_file__s__fail
push str.MailInfo
push 4
push 0x1025cd9c
call fcn.10023e79
add esp, 0x14
jmp 0x10028484
mov eax, dword [ebp - 0x10]
push ebx
mov dword [ebp + 8], ebx
mov eax, dword [eax - 8]
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push ebx
lea ecx, [ebp - 0x10]
call fcn.100caae0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10028436
push str.SaveMailInfo_write_file_fail
push str.MailInfo
push 4
push 0x1025cd9c
call fcn.10023e79
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10028484
push dword [ebp + 8]
push str.SaveMailInfo_after_write_file__dwWrite__lu_
push str.MailInfo
push 4
push 0x1025cd9c
call fcn.10023e79
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
xor esi, esi
inc esi
push esi
lea eax, [edi + 0x3c]
push eax
call fcn.10026c78
test eax, eax
je 0x10028481
mov ecx, dword [ebp - 0x14]
push ebx
add edi, 0x40
push edi
call fcn.10026c78
mov dword [ebp - 0x18], esi
test eax, eax
jne 0x10028484
mov dword [ebp - 0x18], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100c9e10
mov eax, dword [ebp - 0x18]
call fcn.100947a8
ret 4