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

Disassembly:
push 0x70
mov eax, 0x101c8c4a
call fcn.10094ac6
mov dword [ebp - 0x20], ecx
xor ebx, ebx
cmp dword [ecx + 0x1c], ebx
jne 0x100284c9
xor eax, eax
call fcn.10094b9e
ret 4
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], ebx
call fcn.10026ac1
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.100ca200
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10028526
push str.MailInfo.dat
push str.ReadMailInfo_read_file__s__fail
push str.MailInfo
push 4
push 0x1025eddc
call fcn.10023e87
add esp, 0x14
jmp 0x100284bf
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, 0x1025eddc
push edi
mov dword [ebp - 0x18], eax
call fcn.10023e87
mov eax, dword [ebp - 0x18]
add esp, 0x14
cmp eax, 0xffffffff
je 0x100285ca
cmp eax, ebx
je 0x100285ca
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.10061556
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x1002858d
push str.ReadMailInfo_new_memory_fail
push esi
push 4
push edi
call fcn.10023e87
add esp, 0x10
jmp 0x100285ca
mov ecx, dword [ebp - 0x18]
add ecx, 2
push ecx
push ebx
push eax
call fcn.10094bd0
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.10023e87
add esp, 0x18
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x100284bf
lea ecx, [ebp - 0x7c]
call fcn.10147870
mov dword [ebp - 4], 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x7c]
call fcn.101485d0
push dword [ebp - 0x14]
call fcn.10061561
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.10148cc0
push esi
lea ecx, [ebp - 0x7c]
call fcn.101487e0
test eax, eax
jne 0x10028627
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.10147900
mov eax, ebx
jmp 0x100284c1
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push str.GUID
lea ecx, [ebp - 0x7c]
call fcn.10148920
mov esi, dword [ebp + 8]
test eax, eax
je 0x1002866d
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10148e20
mov byte [ebp - 4], 2
mov eax, dword [eax]
lea ecx, [esi + 8]
push ecx
push eax
call fcn.100de060
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100ca200
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push str.Direction
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
je 0x100286b8
lea eax, [ebp + 8]
lea edi, [esi + 0x18]
push eax
lea ecx, [ebp - 0x7c]
mov dword [edi], ebx
call fcn.10148e20
mov byte [ebp - 4], 3
mov eax, dword [eax]
push edi
push 0x101e1aa0
push eax
call fcn.10096d43
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100ca200
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push str.MailSize
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
je 0x10028706
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.10148e20
mov byte [ebp - 4], 4
mov eax, dword [eax]
push edi
push str._I64u
push eax
call fcn.10096d43
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100ca200
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push str.From
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
je 0x10028744
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10148e20
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x28]
call fcn.100ca390
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100ca200
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push 0x101e58ec
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
je 0x10028782
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10148e20
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x2c]
call fcn.100ca390
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100ca200
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push 0x101e58e4
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
je 0x100287c0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10148e20
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0x30]
call fcn.100ca390
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100ca200
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push str.Bccs
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
je 0x100287fe
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10148e20
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0x34]
call fcn.100ca390
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100ca200
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push str.Subject
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
je 0x1002883c
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10148e20
mov byte [ebp - 4], 9
push eax
lea ecx, [esi + 0x38]
call fcn.100ca390
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100ca200
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push str.HasText
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
je 0x100288ab
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp + 8], ebx
call fcn.10148e20
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
push 0x101dedec
push eax
call fcn.10096d43
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.100ca200
cmp dword [ebp + 8], ebx
je 0x100288ab
mov edi, dword [ebp - 0x20]
push 1
lea eax, [esi + 0x3c]
push eax
mov ecx, edi
call fcn.10026d91
push ebx
lea eax, [esi + 0x40]
push eax
mov ecx, edi
call fcn.10026d91
jmp 0x100288ae
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x7c]
call fcn.10148c90
jmp 0x10028ace
lea ecx, [ebp - 0x7c]
call fcn.10148c20
lea ecx, [ebp - 0x4c]
call fcn.100267da
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push 0x101e58a0
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
je 0x1002891b
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x4c], ebx
call fcn.10148e20
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x4c]
push ecx
push 0x101e1aa0
push eax
call fcn.10096d43
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 8]
call fcn.100ca200
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push str.Size
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
je 0x1002896a
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call fcn.10148e20
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
lea ecx, [ebp - 0x44]
push ecx
push str._I64u
push eax
call fcn.10096d43
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x24]
call fcn.100ca200
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push str.Status
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
je 0x100289b6
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x3c], ebx
call fcn.10148e20
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
lea ecx, [ebp - 0x3c]
push ecx
push 0x101e1aa0
push eax
call fcn.10096d43
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x20]
call fcn.100ca200
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push str.Name
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
je 0x100289f4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10148e20
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x38]
call fcn.100ca390
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c]
call fcn.100ca200
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push str.Cache
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
je 0x10028a32
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10148e20
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x34]
call fcn.100ca390
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x18]
call fcn.100ca200
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push str.DecryptPath
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
je 0x10028a70
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10148e20
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x30]
call fcn.100ca390
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x14]
call fcn.100ca200
lea ecx, [ebp - 0x7c]
call fcn.10148c90
push str.DocWatermarkPath
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
je 0x10028aae
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10148e20
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x2c]
call fcn.100ca390
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x10]
call fcn.100ca200
lea eax, [ebp - 0x4c]
push eax
lea ecx, [esi + 0x44]
call fcn.10027d6d
lea ecx, [ebp - 0x7c]
call fcn.10148c50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.1000c391
push str.Attach
lea ecx, [ebp - 0x7c]
call fcn.10148920
test eax, eax
jne 0x100288bb
push esi
lea ecx, [edi + 0x28]
call fcn.10027f3e
xor eax, eax
inc eax
mov dword [edi + 0x24], eax
mov ebx, eax
jmp 0x10028614
push ebp
mov ebp, esp
cmp dword [ecx + 0x24], 0
je 0x10028b15
add ecx, 0x28
push ecx
mov ecx, dword [ebp + 8]
call fcn.10027f3e
xor eax, eax
inc eax
pop ebp
ret 4
pop ebp
jmp 0x100284a9