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

Disassembly:
push 0x70
mov eax, 0x101c361a
call fcn.100931aa
mov dword [ebp - 0x20], ecx
xor ebx, ebx
cmp dword [ecx + 0x1c], ebx
jne 0x100284c6
xor eax, eax
call fcn.10093282
ret 4
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], ebx
call fcn.10026abf
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.100c88e0
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10028523
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 0x100284bc
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 0x100285c7
cmp eax, ebx
je 0x100285c7
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.1005fc3e
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x1002858a
push str.ReadMailInfo_new_memory_fail
push esi
push 4
push edi
call fcn.10023e40
add esp, 0x10
jmp 0x100285c7
mov ecx, dword [ebp - 0x18]
add ecx, 2
push ecx
push ebx
push eax
call fcn.100932c0
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 0x100284bc
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.1005fc49
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.101442c0
push esi
lea ecx, [ebp - 0x7c]
call fcn.10143de0
test eax, eax
jne 0x10028624
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.10142f00
mov eax, ebx
jmp 0x100284be
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 0x1002866a
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.100dafb0
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88e0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.Direction
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x100286b5
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.10095433
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88e0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.MailSize
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x10028703
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.10095433
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88e0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.From
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x10028741
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.100c8a70
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88e0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push 0x101e08ec
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x1002877f
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.100c8a70
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88e0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push 0x101e08e4
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x100287bd
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.100c8a70
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88e0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.Bccs
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x100287fb
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.100c8a70
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88e0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.Subject
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x10028839
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.100c8a70
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c88e0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.HasText
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x100288a8
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.10095433
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.100c88e0
cmp dword [ebp + 8], ebx
je 0x100288a8
mov edi, dword [ebp - 0x20]
push 1
lea eax, [esi + 0x3c]
push eax
mov ecx, edi
call fcn.10026d8f
push ebx
lea eax, [esi + 0x40]
push eax
mov ecx, edi
call fcn.10026d8f
jmp 0x100288ab
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x7c]
call fcn.10144290
jmp 0x10028acb
lea ecx, [ebp - 0x7c]
call fcn.10144220
lea ecx, [ebp - 0x4c]
call fcn.100267d8
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 0x10028918
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.10095433
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 8]
call fcn.100c88e0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.Size
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x10028967
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.10095433
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x24]
call fcn.100c88e0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.Status
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x100289b3
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.10095433
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x20]
call fcn.100c88e0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.Name
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x100289f1
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.100c8a70
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c]
call fcn.100c88e0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.Cache
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x10028a2f
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.100c8a70
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x18]
call fcn.100c88e0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.DecryptPath
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x10028a6d
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.100c8a70
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x14]
call fcn.100c88e0
lea ecx, [ebp - 0x7c]
call fcn.10144290
push str.DocWatermarkPath
lea ecx, [ebp - 0x7c]
call fcn.10143f20
test eax, eax
je 0x10028aab
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.100c8a70
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x10]
call fcn.100c88e0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [esi + 0x44]
call fcn.10027d6a
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 0x100288b8
push esi
lea ecx, [edi + 0x28]
call fcn.10027f3b
xor eax, eax
inc eax
mov dword [edi + 0x24], eax
mov ebx, eax
jmp 0x10028611
push ebp
mov ebp, esp
cmp dword [ecx + 0x24], 0
je 0x10028b12
add ecx, 0x28
push ecx
mov ecx, dword [ebp + 8]
call fcn.10027f3b
xor eax, eax
inc eax
pop ebp
ret 4
pop ebp
jmp 0x100284a6