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

Disassembly:
push 0x74
mov eax, 0x101ce913
call fcn.10096f27
mov dword [ebp - 0x1c], ecx
xor edi, edi
cmp dword [ecx + 0x1c], edi
jne 0x1002a043
xor eax, eax
call fcn.10096fff
ret 4
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], edi
call fcn.10027c0d
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 0x1002a0a0
push str.MailInfo.dat
push str.ReadMailInfo_read_file__s__fail
push str.MailInfo
push 4
push 0x10265f7c
call fcn.10024f90
add esp, 0x14
jmp 0x1002a039
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.10024f90
mov eax, dword [ebp - 0x18]
add esp, 0x14
cmp eax, 0xffffffff
je 0x1002a144
cmp eax, edi
je 0x1002a144
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.100639ba
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x1002a107
push str.ReadMailInfo_new_memory_fail
push esi
push 4
push ebx
call fcn.10024f90
add esp, 0x10
jmp 0x1002a144
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.10024f90
add esp, 0x18
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x1002a039
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.100639c5
pop ecx
lea ecx, [ebp - 0x80]
call fcn.1014f200
push esi
lea ecx, [ebp - 0x80]
call fcn.1014ed20
test eax, eax
jne 0x1002a1a1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.1014de40
mov eax, edi
jmp 0x1002a03b
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 0x1002a1e7
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 0x1002a234
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 0x1002a27c
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 0x1002a2c4
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 0x1002a313
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 0x1002a351
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 0x1002a38f
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 0x1002a3cd
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 0x1002a40b
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 0x1002a449
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 0x1002a4b5
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 0x1002a4b5
mov ecx, dword [ebp - 0x1c]
push 1
lea eax, [esi + 0x44]
push eax
call fcn.10027edd
mov ecx, dword [ebp - 0x1c]
push edi
lea eax, [esi + 0x48]
push eax
call fcn.10027edd
lea ecx, [ebp - 0x80]
call fcn.1014f1d0
jmp 0x1002a6cd
lea ecx, [ebp - 0x80]
call fcn.1014f160
lea ecx, [ebp - 0x50]
call fcn.10027926
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 0x1002a51e
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 0x1002a56d
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 0x1002a5b5
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 0x1002a5f3
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 0x1002a631
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 0x1002a66f
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 0x1002a6ad
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.100298a1
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 0x1002a4c2
push esi
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + 0x28]
call fcn.10029a85
xor eax, eax
inc eax
mov dword [esi + 0x24], eax
mov edi, eax
jmp 0x1002a18e
push ebp
mov ebp, esp
cmp dword [ecx + 0x24], 0
je 0x1002a717
add ecx, 0x28
push ecx
mov ecx, dword [ebp + 8]
call fcn.10029a85
xor eax, eax
inc eax
pop ebp
ret 4
pop ebp
jmp 0x1002a023