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

Disassembly:
push 0x70
mov eax, 0x101c361a
call fcn.10093159
mov dword [ebp - 0x20], ecx
xor ebx, ebx
cmp dword [ecx + 0x1c], ebx
jne 0x10028481
xor eax, eax
call fcn.10093231
ret 4
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], ebx
call fcn.10026a7a
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.100c88b0
cmp dword [ebp - 0x10], 0xffffffff
jne 0x100284de
push str.MailInfo.dat
push str.ReadMailInfo_read_file__s__fail
push str.MailInfo
push 4
push 0x10258cdc
call fcn.10023e40
add esp, 0x14
jmp 0x10028477
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, 0x10258cdc
push edi
mov dword [ebp - 0x18], eax
call fcn.10023e40
mov eax, dword [ebp - 0x18]
add esp, 0x14
cmp eax, 0xffffffff
je 0x10028582
cmp eax, ebx
je 0x10028582
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.1005fbec
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x10028545
push str.ReadMailInfo_new_memory_fail
push esi
push 4
push edi
call fcn.10023e40
add esp, 0x10
jmp 0x10028582
mov ecx, dword [ebp - 0x18]
add ecx, 2
push ecx
push ebx
push eax
call fcn.10093270
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.10023e40
add esp, 0x18
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x10028477
lea ecx, [ebp - 0x7c]
call fcn.10142e70
mov dword [ebp - 4], 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x7c]
call fcn.10143bd0
push dword [ebp - 0x14]
call fcn.1005fbf7
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.101442c0
push esi
lea ecx, [ebp - 0x7c]
call fcn.10143de0
test eax, eax
jne 0x100285df
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.10142f00
mov eax, ebx
jmp 0x10028479
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.GUID
lea ecx, [ebp - 0x7c]
call fcn.10143f20
mov esi, dword [ebp + 8]
test eax, eax
je 0x10028625
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10144420
mov byte [ebp - 4], 2
mov eax, dword [eax]
lea ecx, [esi + 8]
push ecx
push eax
call fcn.100daf80
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88b0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.Direction
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x10028670
lea eax, [ebp + 8]
lea edi, [esi + 0x18]
push eax
lea ecx, [ebp - 0x7c]
mov dword [edi], ebx
call fcn.10144420
mov byte [ebp - 4], 3
mov eax, dword [eax]
push edi
push 0x101dcaa0
push eax
call fcn.100953e3
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88b0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.MailSize
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x100286be
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.10144420
mov byte [ebp - 4], 4
mov eax, dword [eax]
push edi
push str._I64u
push eax
call fcn.100953e3
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88b0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.From
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x100286fc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10144420
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x28]
call fcn.100c8a40
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88b0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push 0x101e08ec
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x1002873a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10144420
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x2c]
call fcn.100c8a40
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88b0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push 0x101e08e4
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x10028778
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10144420
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0x30]
call fcn.100c8a40
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88b0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.Bccs
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x100287b6
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10144420
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0x34]
call fcn.100c8a40
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88b0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.Subject
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x100287f4
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10144420
mov byte [ebp - 4], 9
push eax
lea ecx, [esi + 0x38]
call fcn.100c8a40
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88b0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.HasText
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x10028863
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp + 8], ebx
call fcn.10144420
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
push 0x101d9dec
push eax
call fcn.100953e3
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.100c88b0
cmp dword [ebp + 8], ebx
je 0x10028863
mov edi, dword [ebp - 0x20]
push 1
lea eax, [esi + 0x3c]
push eax
mov ecx, edi
call fcn.10026d4a
push ebx
lea eax, [esi + 0x40]
push eax
mov ecx, edi
call fcn.10026d4a
jmp 0x10028866
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x7c]
call fcn.10144290
jmp 0x10028a86
lea ecx, [ebp - 0x7c]
call fcn.10144220
lea ecx, [ebp - 0x4c]
call fcn.10026793
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x7c]
call fcn.10144290
push 0x101e08a0
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x100288d3
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x4c], ebx
call fcn.10144420
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x4c]
push ecx
push 0x101dcaa0
push eax
call fcn.100953e3
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 8]
call fcn.100c88b0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.Size
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x10028922
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call fcn.10144420
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
lea ecx, [ebp - 0x44]
push ecx
push str._I64u
push eax
call fcn.100953e3
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x24]
call fcn.100c88b0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.Status
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x1002896e
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x3c], ebx
call fcn.10144420
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
lea ecx, [ebp - 0x3c]
push ecx
push 0x101dcaa0
push eax
call fcn.100953e3
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x20]
call fcn.100c88b0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.Name
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x100289ac
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10144420
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x38]
call fcn.100c8a40
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c]
call fcn.100c88b0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.Cache
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x100289ea
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10144420
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x34]
call fcn.100c8a40
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x18]
call fcn.100c88b0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.DecryptPath
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x10028a28
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10144420
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x30]
call fcn.100c8a40
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x14]
call fcn.100c88b0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.DocWatermarkPath
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x10028a66
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10144420
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x2c]
call fcn.100c8a40
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x10]
call fcn.100c88b0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [esi + 0x44]
call fcn.10027d25
lea ecx, [ebp - 0x7c]
call fcn.10144250
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.1000c356
push str.Attach
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
jne 0x10028873
push esi
lea ecx, [edi + 0x28]
call fcn.10027ef6
xor eax, eax
inc eax
mov dword [edi + 0x24], eax
mov ebx, eax
jmp 0x100285cc
push ebp
mov ebp, esp
cmp dword [ecx + 0x24], 0
je 0x10028acd
add ecx, 0x28
push ecx
mov ecx, dword [ebp + 8]
call fcn.10027ef6
xor eax, eax
inc eax
pop ebp
ret 4
pop ebp
jmp 0x10028461