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

Disassembly:
push 0x70
mov eax, 0x101c618c
call fcn.100946d0
mov dword [ebp - 0x20], ecx
xor ebx, ebx
cmp dword [ecx + 0x1c], ebx
jne 0x100284bb
xor eax, eax
call fcn.100947a8
ret 4
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], ebx
call fcn.10026ab3
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.100c9e10
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10028518
push str.MailInfo.dat
push str.ReadMailInfo_read_file__s__fail
push str.MailInfo
push 4
push 0x1025cd9c
call fcn.10023e79
add esp, 0x14
jmp 0x100284b1
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, 0x1025cd9c
push edi
mov dword [ebp - 0x18], eax
call fcn.10023e79
mov eax, dword [ebp - 0x18]
add esp, 0x14
cmp eax, 0xffffffff
je 0x100285bc
cmp eax, ebx
je 0x100285bc
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.10061162
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x1002857f
push str.ReadMailInfo_new_memory_fail
push esi
push 4
push edi
call fcn.10023e79
add esp, 0x10
jmp 0x100285bc
mov ecx, dword [ebp - 0x18]
add ecx, 2
push ecx
push ebx
push eax
call fcn.100947e0
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.10023e79
add esp, 0x18
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x100284b1
lea ecx, [ebp - 0x7c]
call fcn.101452b0
mov dword [ebp - 4], 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x7c]
call fcn.10146010
push dword [ebp - 0x14]
call fcn.1006116d
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.10146700
push esi
lea ecx, [ebp - 0x7c]
call fcn.10146220
test eax, eax
jne 0x10028619
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.10145340
mov eax, ebx
jmp 0x100284b3
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push str.GUID
lea ecx, [ebp - 0x7c]
call fcn.10146360
mov esi, dword [ebp + 8]
test eax, eax
je 0x1002865f
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10146860
mov byte [ebp - 4], 2
mov eax, dword [eax]
lea ecx, [esi + 8]
push ecx
push eax
call fcn.100dc4f0
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c9e10
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push str.Direction
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
je 0x100286aa
lea eax, [ebp + 8]
lea edi, [esi + 0x18]
push eax
lea ecx, [ebp - 0x7c]
mov dword [edi], ebx
call fcn.10146860
mov byte [ebp - 4], 3
mov eax, dword [eax]
push edi
push 0x101dfaa0
push eax
call fcn.10096953
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c9e10
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push str.MailSize
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
je 0x100286f8
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.10146860
mov byte [ebp - 4], 4
mov eax, dword [eax]
push edi
push str._I64u
push eax
call fcn.10096953
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c9e10
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push str.From
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
je 0x10028736
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10146860
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x28]
call fcn.100c9fa0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c9e10
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push 0x101e38ec
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
je 0x10028774
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10146860
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x2c]
call fcn.100c9fa0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c9e10
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push 0x101e38e4
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
je 0x100287b2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10146860
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0x30]
call fcn.100c9fa0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c9e10
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push str.Bccs
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
je 0x100287f0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10146860
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0x34]
call fcn.100c9fa0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c9e10
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push str.Subject
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
je 0x1002882e
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10146860
mov byte [ebp - 4], 9
push eax
lea ecx, [esi + 0x38]
call fcn.100c9fa0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.100c9e10
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push str.HasText
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
je 0x1002889d
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp + 8], ebx
call fcn.10146860
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
push 0x101dcdec
push eax
call fcn.10096953
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.100c9e10
cmp dword [ebp + 8], ebx
je 0x1002889d
mov edi, dword [ebp - 0x20]
push 1
lea eax, [esi + 0x3c]
push eax
mov ecx, edi
call fcn.10026d83
push ebx
lea eax, [esi + 0x40]
push eax
mov ecx, edi
call fcn.10026d83
jmp 0x100288a0
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x7c]
call fcn.101466d0
jmp 0x10028ac0
lea ecx, [ebp - 0x7c]
call fcn.10146660
lea ecx, [ebp - 0x4c]
call fcn.100267cc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push 0x101e38a0
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
je 0x1002890d
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x4c], ebx
call fcn.10146860
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x4c]
push ecx
push 0x101dfaa0
push eax
call fcn.10096953
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 8]
call fcn.100c9e10
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push str.Size
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
je 0x1002895c
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call fcn.10146860
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
lea ecx, [ebp - 0x44]
push ecx
push str._I64u
push eax
call fcn.10096953
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x24]
call fcn.100c9e10
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push str.Status
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
je 0x100289a8
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x3c], ebx
call fcn.10146860
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
lea ecx, [ebp - 0x3c]
push ecx
push 0x101dfaa0
push eax
call fcn.10096953
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x20]
call fcn.100c9e10
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push str.Name
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
je 0x100289e6
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10146860
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x38]
call fcn.100c9fa0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c]
call fcn.100c9e10
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push str.Cache
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
je 0x10028a24
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10146860
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x34]
call fcn.100c9fa0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x18]
call fcn.100c9e10
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push str.DecryptPath
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
je 0x10028a62
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10146860
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x30]
call fcn.100c9fa0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x14]
call fcn.100c9e10
lea ecx, [ebp - 0x7c]
call fcn.101466d0
push str.DocWatermarkPath
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
je 0x10028aa0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10146860
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x2c]
call fcn.100c9fa0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x10]
call fcn.100c9e10
lea eax, [ebp - 0x4c]
push eax
lea ecx, [esi + 0x44]
call fcn.10027d5f
lea ecx, [ebp - 0x7c]
call fcn.10146690
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.1000c391
push str.Attach
lea ecx, [ebp - 0x7c]
call fcn.10146360
test eax, eax
jne 0x100288ad
push esi
lea ecx, [edi + 0x28]
call fcn.10027f30
xor eax, eax
inc eax
mov dword [edi + 0x24], eax
mov ebx, eax
jmp 0x10028606
push ebp
mov ebp, esp
cmp dword [ecx + 0x24], 0
je 0x10028b07
add ecx, 0x28
push ecx
mov ecx, dword [ebp + 8]
call fcn.10027f30
xor eax, eax
inc eax
pop ebp
ret 4
pop ebp
jmp 0x1002849b