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

Disassembly:
push 0x74
mov eax, 0x101ce935
call fcn.10096f31
mov dword [ebp - 0x1c], ecx
xor edi, edi
cmp dword [ecx + 0x1c], edi
jne 0x1002a057
xor eax, eax
call fcn.10097009
ret 4
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], edi
call fcn.10027c21
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 0x1002a0b4
push str.MailInfo.dat
push str.ReadMailInfo_read_file__s__fail
push str.MailInfo
push 4
push 0x10265fbc
call fcn.10024fa4
add esp, 0x14
jmp 0x1002a04d
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, 0x10265fbc
push ebx
mov dword [ebp - 0x18], eax
call fcn.10024fa4
mov eax, dword [ebp - 0x18]
add esp, 0x14
cmp eax, 0xffffffff
je 0x1002a158
cmp eax, edi
je 0x1002a158
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 0x1002a11b
push str.ReadMailInfo_new_memory_fail
push esi
push 4
push ebx
call fcn.10024fa4
add esp, 0x10
jmp 0x1002a158
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.10024fa4
add esp, 0x18
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x1002a04d
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 0x1002a1b5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.1014de40
mov eax, edi
jmp 0x1002a04f
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 0x1002a1fb
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 0x1002a248
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 0x1002a290
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 0x1002a2d8
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 0x1002a327
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 0x1002a365
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 0x1002a3a3
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 0x1002a3e1
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 0x1002a41f
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 0x1002a45d
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 0x1002a4c9
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 0x1002a4c9
mov ecx, dword [ebp - 0x1c]
push 1
lea eax, [esi + 0x44]
push eax
call fcn.10027ef1
mov ecx, dword [ebp - 0x1c]
push edi
lea eax, [esi + 0x48]
push eax
call fcn.10027ef1
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
jmp 0x1002a6e1
lea ecx, [ebp - 0x80]
call fcn.1014f160
lea ecx, [ebp - 0x50]
call fcn.1002793a
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 0x1002a532
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 0x1002a581
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 0x1002a5c9
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 0x1002a607
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 0x1002a645
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 0x1002a683
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 0x1002a6c1
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.100298b5
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 0x1002a4d6
push esi
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + 0x28]
call fcn.10029a99
xor eax, eax
inc eax
mov dword [esi + 0x24], eax
mov edi, eax
jmp 0x1002a1a2
push ebp
mov ebp, esp
cmp dword [ecx + 0x24], 0
je 0x1002a72b
add ecx, 0x28
push ecx
mov ecx, dword [ebp + 8]
call fcn.10029a99
xor eax, eax
inc eax
pop ebp
ret 4
pop ebp
jmp 0x1002a037