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

Disassembly:
push 0x70
mov eax, 0x101cc3f3
call fcn.10096d60
mov dword [ebp - 0x20], ecx
xor ebx, ebx
cmp dword [ecx + 0x1c], ebx
jne 0x10029ffd
xor eax, eax
call fcn.10096e38
ret 4
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], ebx
call fcn.10027c0d
mov dword [ebp - 4], ebx
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
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.100cc4d0
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1002a05a
push str.MailInfo.dat
push str.ReadMailInfo_read_file__s__fail
push str.MailInfo
push 4
push 0x10263e7c
call fcn.10024f90
add esp, 0x14
jmp 0x10029ff3
push ebx
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 edi, 0x10263e7c
push edi
mov dword [ebp - 0x18], eax
call fcn.10024f90
mov eax, dword [ebp - 0x18]
add esp, 0x14
cmp eax, 0xffffffff
je 0x1002a0fe
cmp eax, ebx
je 0x1002a0fe
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.100637ec
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x1002a0c1
push str.ReadMailInfo_new_memory_fail
push esi
push 4
push edi
call fcn.10024f90
add esp, 0x10
jmp 0x1002a0fe
mov ecx, dword [ebp - 0x18]
add ecx, 2
push ecx
push ebx
push eax
call fcn.10096e70
add esp, 0xc
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x1c]
push eax
push str.ReadMailInfo_after_read_file__bRead__d___dwRead__lu_
push esi
push 4
push edi
call fcn.10024f90
add esp, 0x18
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x10029ff3
lea ecx, [ebp - 0x7c]
call fcn.1014dc50
mov dword [ebp - 4], 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x7c]
call fcn.1014e9b0
push dword [ebp - 0x14]
call fcn.100637f7
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.1014f0a0
push esi
lea ecx, [ebp - 0x7c]
call fcn.1014ebc0
test eax, eax
jne 0x1002a15b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.1014dce0
mov eax, ebx
jmp 0x10029ff5
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push str.GUID
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
mov esi, dword [ebp + 8]
test eax, eax
je 0x1002a1a1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1014f200
mov byte [ebp - 4], 2
mov eax, dword [eax]
lea ecx, [esi + 8]
push ecx
push eax
call fcn.100e0360
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc4d0
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push str.Direction
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
je 0x1002a1ec
lea eax, [ebp + 8]
lea edi, [esi + 0x18]
push eax
lea ecx, [ebp - 0x7c]
mov dword [edi], ebx
call fcn.1014f200
mov byte [ebp - 4], 3
mov eax, dword [eax]
push edi
push 0x101e1ab8
push eax
call fcn.1009771c
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc4d0
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push str.MailSize
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
je 0x1002a23a
lea eax, [ebp + 8]
lea edi, [esi + 0x20]
push eax
lea ecx, [ebp - 0x7c]
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.1014f200
mov byte [ebp - 4], 4
mov eax, dword [eax]
push edi
push str._I64u
push eax
call fcn.1009771c
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc4d0
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push str.From
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
je 0x1002a278
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1014f200
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x28]
call fcn.100cc660
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc4d0
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push 0x101ea31c
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
je 0x1002a2b6
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1014f200
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x2c]
call fcn.100cc660
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc4d0
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push 0x101ea314
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
je 0x1002a2f4
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1014f200
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0x30]
call fcn.100cc660
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc4d0
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push str.Bccs
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
je 0x1002a332
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1014f200
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0x34]
call fcn.100cc660
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc4d0
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push str.Subject
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
je 0x1002a370
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1014f200
mov byte [ebp - 4], 9
push eax
lea ecx, [esi + 0x38]
call fcn.100cc660
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100cc4d0
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push str.HasText
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
je 0x1002a3df
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp + 8], ebx
call fcn.1014f200
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
push 0x101e30c4
push eax
call fcn.1009771c
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.100cc4d0
cmp dword [ebp + 8], ebx
je 0x1002a3df
mov edi, dword [ebp - 0x20]
push 1
lea eax, [esi + 0x3c]
push eax
mov ecx, edi
call fcn.10027edd
push ebx
lea eax, [esi + 0x40]
push eax
mov ecx, edi
call fcn.10027edd
jmp 0x1002a3e2
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x7c]
call fcn.1014f070
jmp 0x1002a602
lea ecx, [ebp - 0x7c]
call fcn.1014f000
lea ecx, [ebp - 0x4c]
call fcn.10027926
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push 0x101ea2d0
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
je 0x1002a44f
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x4c], ebx
call fcn.1014f200
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x4c]
push ecx
push 0x101e1ab8
push eax
call fcn.1009771c
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 8]
call fcn.100cc4d0
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push str.Size
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
je 0x1002a49e
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call fcn.1014f200
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
lea ecx, [ebp - 0x44]
push ecx
push str._I64u
push eax
call fcn.1009771c
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x24]
call fcn.100cc4d0
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push str.Status
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
je 0x1002a4ea
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x3c], ebx
call fcn.1014f200
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
lea ecx, [ebp - 0x3c]
push ecx
push 0x101e1ab8
push eax
call fcn.1009771c
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x20]
call fcn.100cc4d0
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push str.Name
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
je 0x1002a528
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1014f200
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x38]
call fcn.100cc660
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c]
call fcn.100cc4d0
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push str.Cache
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
je 0x1002a566
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1014f200
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x34]
call fcn.100cc660
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x18]
call fcn.100cc4d0
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push str.DecryptPath
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
je 0x1002a5a4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1014f200
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x30]
call fcn.100cc660
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x14]
call fcn.100cc4d0
lea ecx, [ebp - 0x7c]
call fcn.1014f070
push str.DocWatermarkPath
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
je 0x1002a5e2
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1014f200
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x2c]
call fcn.100cc660
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x10]
call fcn.100cc4d0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [esi + 0x44]
call fcn.100298a1
lea ecx, [ebp - 0x7c]
call fcn.1014f030
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.1000cf8c
push str.Attach
lea ecx, [ebp - 0x7c]
call fcn.1014ed00
test eax, eax
jne 0x1002a3ef
push esi
lea ecx, [edi + 0x28]
call fcn.10029a72
xor eax, eax
inc eax
mov dword [edi + 0x24], eax
mov ebx, eax
jmp 0x1002a148
push ebp
mov ebp, esp
cmp dword [ecx + 0x24], 0
je 0x1002a649
add ecx, 0x28
push ecx
mov ecx, dword [ebp + 8]
call fcn.10029a72
xor eax, eax
inc eax
pop ebp
ret 4
pop ebp
jmp 0x10029fdd