Function at 0x1002a70a
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x74
mov eax, 0x101ce913
call fcn.10096f31
mov dword [ebp - 0x1c], ecx
xor edi, edi
cmp dword [ecx + 0x1c], edi
jne 0x1002a052
xor eax, eax
call fcn.10097009
ret 4
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], edi
call fcn.10027c1c
mov dword [ebp - 4], edi
mov eax, dword [eax]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.100cc680
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1002a0af
push str.MailInfo.dat
push str.ReadMailInfo_read_file__s__fail
push str.MailInfo
push 4
push 0x10265f7c
call fcn.10024f9f
add esp, 0x14
jmp 0x1002a048
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push str.ReadMailInfo_file_size:_lu_B
mov esi, str.MailInfo
push esi
push 4
mov ebx, 0x10265f7c
push ebx
mov dword [ebp - 0x18], eax
call fcn.10024f9f
mov eax, dword [ebp - 0x18]
add esp, 0x14
cmp eax, 0xffffffff
je 0x1002a153
cmp eax, edi
je 0x1002a153
shr eax, 1
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100639c2
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x1002a116
push str.ReadMailInfo_new_memory_fail
push esi
push 4
push ebx
call fcn.10024f9f
add esp, 0x10
jmp 0x1002a153
mov ecx, dword [ebp - 0x18]
add ecx, 2
push ecx
push edi
push eax
call fcn.10097040
add esp, 0xc
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x20], edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x20]
push eax
push str.ReadMailInfo_after_read_file__bRead__d___dwRead__lu_
push esi
push 4
push ebx
call fcn.10024f9f
add esp, 0x18
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x1002a048
lea ecx, [ebp - 0x80]
call fcn.1014ddb0
mov dword [ebp - 4], 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x80]
call fcn.1014eb10
push dword [ebp - 0x14]
call fcn.100639cd
pop ecx
lea ecx, [ebp - 0x80]
call fcn.1014f200
push esi
lea ecx, [ebp - 0x80]
call fcn.1014ed20
test eax, eax
jne 0x1002a1b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.1014de40
mov eax, edi
jmp 0x1002a04a
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push str.GUID
lea ecx, [ebp - 0x80]
call fcn.1014ee60
mov esi, dword [ebp + 8]
test eax, eax
je 0x1002a1f6
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
call fcn.1014f360
mov byte [ebp - 4], 2
mov eax, dword [eax]
lea ecx, [esi + 8]
push ecx
push eax
call fcn.100e0510
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push str.ProcID
lea ecx, [ebp - 0x80]
call fcn.1014ee60
mov ebx, 0x101e3ac8
test eax, eax
je 0x1002a243
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
mov dword [esi + 0x18], edi
call fcn.1014f360
mov byte [ebp - 4], 3
mov eax, dword [eax]
lea ecx, [esi + 0x18]
push ecx
push ebx
push eax
call fcn.100978ec
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push str.ProcBit
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a28b
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
mov dword [esi + 0x1c], edi
call fcn.1014f360
mov byte [ebp - 4], 4
mov eax, dword [eax]
lea ecx, [esi + 0x1c]
push ecx
push ebx
push eax
call fcn.100978ec
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push str.Direction
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a2d3
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
mov dword [esi + 0x20], edi
call fcn.1014f360
mov byte [ebp - 4], 5
mov ecx, dword [eax]
lea eax, [esi + 0x20]
push eax
push ebx
push ecx
call fcn.100978ec
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push str.MailSize
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a322
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.1014f360
mov byte [ebp - 4], 6
mov eax, dword [eax]
lea ecx, [esi + 0x28]
push ecx
push str._I64u
push eax
call fcn.100978ec
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push str.From
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a360
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
call fcn.1014f360
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0x30]
call fcn.100cc810
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push 0x101ec2f4
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a39e
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
call fcn.1014f360
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0x34]
call fcn.100cc810
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push 0x101ec2ec
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a3dc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
call fcn.1014f360
mov byte [ebp - 4], 9
push eax
lea ecx, [esi + 0x38]
call fcn.100cc810
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push str.Bccs
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a41a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
call fcn.1014f360
mov byte [ebp - 4], 0xa
push eax
lea ecx, [esi + 0x3c]
call fcn.100cc810
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push str.Subject
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a458
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
call fcn.1014f360
mov byte [ebp - 4], 0xb
push eax
lea ecx, [esi + 0x40]
call fcn.100cc810
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push str.HasText
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a4c4
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp + 8], edi
call fcn.1014f360
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
push 0x101e50d4
push eax
call fcn.100978ec
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.100cc680
cmp dword [ebp + 8], edi
je 0x1002a4c4
mov ecx, dword [ebp - 0x1c]
push 1
lea eax, [esi + 0x44]
push eax
call fcn.10027eec
mov ecx, dword [ebp - 0x1c]
push edi
lea eax, [esi + 0x48]
push eax
call fcn.10027eec
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
jmp 0x1002a6dc
lea ecx, [ebp - 0x80]
call fcn.1014f160
lea ecx, [ebp - 0x50]
call fcn.10027935
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push 0x101ec2a8
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a52d
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x50], edi
call fcn.1014f360
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
lea ecx, [ebp - 0x50]
push ecx
push ebx
push eax
call fcn.100978ec
add esp, 0xc
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 8]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push str.Size
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a57c
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
call fcn.1014f360
mov byte [ebp - 4], 0xf
mov eax, dword [eax]
lea ecx, [ebp - 0x48]
push ecx
push str._I64u
push eax
call fcn.100978ec
add esp, 0xc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x24]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push str.Status
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a5c4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x40], edi
call fcn.1014f360
mov byte [ebp - 4], 0x10
mov eax, dword [eax]
lea ecx, [ebp - 0x40]
push ecx
push ebx
push eax
call fcn.100978ec
add esp, 0xc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x20]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push str.Name
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a602
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x80]
call fcn.1014f360
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x3c]
call fcn.100cc810
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x18]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push str.Cache
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a640
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x80]
call fcn.1014f360
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x38]
call fcn.100cc810
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x14]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push str.DecryptPath
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a67e
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x80]
call fcn.1014f360
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x34]
call fcn.100cc810
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x10]
call fcn.100cc680
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
push str.DocWatermarkPath
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
je 0x1002a6bc
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x80]
call fcn.1014f360
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x30]
call fcn.100cc810
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
call fcn.100cc680
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 0x4c]
call fcn.100298b0
lea ecx, [ebp - 0x80]
call fcn.1014f190
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.1000cf8e
push str.Attach
lea ecx, [ebp - 0x80]
call fcn.1014ee60
test eax, eax
jne 0x1002a4d1
push esi
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + 0x28]
call fcn.10029a94
xor eax, eax
inc eax
mov dword [esi + 0x24], eax
mov edi, eax
jmp 0x1002a19d
push ebp
mov ebp, esp
cmp dword [ecx + 0x24], 0
je 0x1002a726
add ecx, 0x28
push ecx
mov ecx, dword [ebp + 8]
call fcn.10029a94
xor eax, eax
inc eax
pop ebp
ret 4
pop ebp
jmp 0x1002a032