Function at 0x100329a3
Capabilities:
Get file size

Disassembly:
push 0x850
mov eax, 0x101cd9cc
call fcn.10096dc9
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 0x7e8], edi
mov dword [ebp - 0x7d4], eax
call fcn.1002786d
push eax
push str.DecryptMailDoc_arrayIN.GetSize__d_
push str.MailSafeDoc
push 4
mov ebx, 0x10263e7c
push ebx
call fcn.10024f90
add esp, 0x14
mov ecx, esi
call fcn.1002786d
test eax, eax
jne 0x100329fa
call fcn.10096e4c
ret
push dword [ebp + 0x14]
push str.DecryptMailDoc_dwUserID__lu_
push str.MailPolicy
push 4
push ebx
call fcn.10024f90
add esp, 0x14
lea ecx, [ebp - 0x840]
call fcn.1002f3df
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x840]
push eax
push dword [ebp + 0x14]
call fcn.10032168
pop ecx
pop ecx
test eax, eax
jne 0x10032a4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.1002f149
mov eax, ebx
jmp 0x100329f4
push 1
call fcn.10004251
mov dword [ebp - 0x7f0], eax
mov dword [esp], 0x208
lea eax, [ebp - 0x7a8]
push ebx
push eax
mov dword [ebp - 0x7ac], ebx
call fcn.10096e70
push 0xffffffffffffffff
lea eax, [ebp - 0x7ac]
push ebx
push eax
call fcn.100038fd
add esp, 0x18
push 0xffffffffffffffff
lea ecx, [ebp - 0x85c]
mov dword [ebp - 0x7e0], eax
call fcn.1003b275
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x7d4]
mov ecx, edi
mov dword [ebp - 0x7f4], ebx
mov dword [eax], ebx
call fcn.10032960
push esi
mov ecx, edi
call fcn.1003296a
push dword [ebp + 0x10]
lea eax, [ebp - 0x7c0]
push eax
call fcn.1018e3e0
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, esi
mov dword [ebp - 0x7b0], ebx
call fcn.1002786d
test eax, eax
jle 0x10033265
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [eax + 8]
lea ecx, [ebp - 0x840]
call fcn.1002eedf
xor edi, edi
mov dword [ebp - 0x7c4], eax
cmp dword [ebp - 0x7f0], ebx
je 0x10032b2f
cmp dword [ebp - 0x7e0], ebx
je 0x10032b17
inc edi
jmp 0x10032b2f
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [eax + 8]
call fcn.1000403b
pop ecx
mov edi, eax
cmp dword [0x10263ee8], ebx
je 0x10032b5d
push edi
push dword [ebp - 0x7e0]
push dword [ebp - 0x7f0]
push str.DecryptMailDoc_bDoCompressFile__lu__bDoDocTraverser__lu__bIsCompressFile__lu_
push str.MailPolicy
push 4
push 0x10263e7c
call fcn.10024f90
add esp, 0x1c
cmp edi, ebx
je 0x10032d8c
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [eax + 4]
lea eax, [ebp - 0x7dc]
push eax
call fcn.10011269
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x7c4], ebx
jne 0x10032bb9
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x7dc]
call fcn.100fb850
add esp, 0x28
test eax, eax
je 0x10032bb9
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7dc]
jmp 0x10033247
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.10096e70
xor eax, eax
push edi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.10096e70
add esp, 0x18
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x420]
push ecx
push ebx
push ebx
push eax
call fcn.1009927e
add esp, 0x14
push 0x101e1ad4
lea ecx, [ebp - 0x7b8]
call fcn.100cbd10
mov byte [ebp - 4], 4
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x218]
push eax
call edi
push eax
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [eax + 4]
lea eax, [ebp - 0x7b8]
push str._s__d_s
push eax
call fcn.100cf450
add esp, 0x14
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [ebp - 0x7b8]
mov eax, dword [eax + 4]
push eax
call fcn.10010d38
pop ecx
pop ecx
cmp eax, ebx
jne 0x10032ce7
lea eax, [ebp - 0x218]
push eax
call edi
inc eax
push eax
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [eax + 4]
lea eax, [ebp - 0x7b8]
push str._s__d_s
push eax
call fcn.100cf450
add esp, 0x14
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [ebp - 0x7b8]
mov eax, dword [eax + 4]
push eax
call fcn.10010d38
pop ecx
pop ecx
cmp eax, ebx
jne 0x10032ce7
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7b8]
call fcn.100cc4d0
jmp 0x10032baa
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x840]
push ecx
lea ecx, [ebp - 0x7c0]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp - 0x7b8]
cmp dword [ebp - 0x7e0], ebx
je 0x10032d2e
lea eax, [ebp - 0x7ac]
push eax
call fcn.10031e3a
add esp, 0x20
jmp 0x10032d36
call fcn.1003228d
add esp, 0x1c
cmp eax, ebx
je 0x10032d5e
mov ecx, dword [ebp - 0x7e8]
lea eax, [ebp - 0x7b8]
push eax
push dword [ebp - 0x7b0]
call fcn.10028cf2
mov ecx, eax
add ecx, 4
call fcn.100cc660
jmp 0x10032d7b
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [eax + 4]
push dword [ebp - 0x7b8]
call fcn.10010d38
pop ecx
pop ecx
mov eax, dword [ebp - 0x7d4]
mov dword [eax], 1
jmp 0x10032cd3
cmp dword [ebp - 0x7c4], ebx
je 0x1003324c
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [eax + 4]
lea eax, [ebp - 0x7cc]
push eax
call fcn.10011269
mov byte [ebp - 4], 5
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x7cc]
call fcn.100fb850
add esp, 0x30
cmp eax, 3
jne 0x1003323d
xor eax, eax
mov byte [ebp - 0x5a0], bl
lea edi, [ebp - 0x59f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x378
stosb byte es:[edi], al
lea eax, [ebp - 0x590]
push ebx
push eax
call fcn.10096e70
add esp, 0xc
lea ecx, [ebp - 0x7d8]
mov dword [ebp - 0x7c4], ebx
call fcn.100e05a0
mov byte [ebp - 4], 6
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocStringLen
push dword [ebp - 0x7cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10032e79
push 0x21e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [eax + 8]
push dword [ebp - 0x7c0]
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_open_decrypt_file__s__failed___LastError:__d__LINE:__d__n
push str.MailSafeDoc
push 4
push 0x10263e7c
call fcn.10024f90
add esp, 0x20
jmp 0x1003322e
lea eax, [ebp - 0x7d8]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x7c4]
push eax
lea eax, [ebp - 0x5a0]
push eax
lea eax, [ebp - 0x7bc]
push eax
push edi
mov dword [ebp - 0x7bc], ebx
call fcn.1003092f
add esp, 0x18
mov dword [ebp - 0x7b4], eax
lea eax, [ebp - 0x7ec]
push eax
push edi
mov dword [ebp - 0x7ec], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [ebp - 0x7f8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x7b4], ebx
jne 0x10032f0a
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [eax + 8]
push dword [ebp - 0x7c0]
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_CheckAccessRight_failed__n
push str.MailSafeDoc
push 8
push 0x10263e7c
call fcn.10024f90
add esp, 0x18
jmp 0x1003321a
cmp dword [ebp - 0x7bc], ebx
je 0x10032f76
push dword [ebp - 0x7bc]
mov ecx, esi
push dword [ebp - 0x7b0]
call fcn.10028cf2
push dword [eax + 8]
push dword [ebp - 0x7c0]
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_No_Access_right__Result:_lu_n
push str.MailSafeDoc
push 4
push 0x10263e7c
call fcn.10024f90
add esp, 0x1c
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [ebp + 0x14]
mov eax, dword [eax + 8]
push ebx
push 2
push dword [ebp - 0x7bc]
mov ecx, 0x10265d70
push dword [ebp + 0x10]
push eax
call fcn.10034eff
jmp 0x1003321a
push 0x101e1ad4
lea ecx, [ebp - 0x7d0]
call fcn.100cbd10
mov byte [ebp - 4], 7
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [eax + 4]
lea eax, [ebp - 0x7d0]
push str._s__d.tmp
push eax
call fcn.100cf450
push dword [ebp - 0x7d0]
lea eax, [ebp - 0x7e4]
push eax
call fcn.10011269
mov byte [ebp - 4], 8
push ebx
push 1
push 2
push ebx
push dword [ebp - 0x7e4]
push dword [ebp - 0x7cc]
call fcn.100fe9d0
add esp, 0x30
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x7b4], ebx
jne 0x10033087
lea eax, [ebp - 0x7bc]
push eax
lea eax, [ebp - 0x7b4]
push eax
mov dword [ebp - 0x7bc], ebx
call fcn.100fb360
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x7bc]
push ebx
push ebx
call fcn.100fb360
pop ecx
pop ecx
push eax
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [eax + 8]
push dword [ebp - 0x7c0]
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_Decrypt_file_failed___ESError:__d__ESLine:__d__LastError:__d__n
push str.MailSafeDoc
push 8
push 0x10263e7c
call fcn.10024f90
add esp, 0x24
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [ebp + 0x14]
mov eax, dword [eax + 8]
push dword [ebp - 0x7b4]
mov ecx, 0x10265d70
push 2
push edi
push dword [ebp + 0x10]
push eax
call fcn.10034eff
jmp 0x100331fc
push 0x101e1ad4
lea ecx, [ebp - 0x7c8]
call fcn.100cbd10
mov byte [ebp - 4], 9
push dword [ebp - 0x7ec]
lea ecx, [ebp - 0x840]
push dword [ebp - 0x7f8]
call fcn.1002ed50
test eax, eax
je 0x10033110
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [eax + 8]
call edi
xor edi, edi
push eax
inc edi
push edi
call fcn.100363b5
pop ecx
push eax
lea eax, [ebp - 0x7c8]
push str._s_backup_d__s
push eax
call fcn.100cf450
add esp, 0x14
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [ebp - 0x7c8]
mov eax, dword [eax + 4]
push eax
call fcn.10010d38
pop ecx
pop ecx
test eax, eax
je 0x10033110
mov dword [ebp - 0x7b4], edi
mov ecx, dword [ebp - 0x7e8]
lea eax, [ebp - 0x7d0]
push eax
push dword [ebp - 0x7b0]
call fcn.10028cf2
mov ecx, eax
add ecx, 4
call fcn.100cc660
cmp dword [ebp - 0x7b4], ebx
jne 0x10033145
lea ecx, [ebp - 0x7c8]
call fcn.100cc240
lea ecx, [ebp - 0x7d8]
call fcn.100e07a0
test eax, eax
jbe 0x10033167
lea ecx, [ebp - 0x7d8]
call fcn.100e0ea0
mov dword [ebp - 0x7b4], eax
jmp 0x1003316d
mov dword [ebp - 0x7b4], ebx
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10028cf2
push dword [ebp - 0x7b0]
mov edi, dword [eax + 8]
mov ecx, esi
call fcn.10028cf2
mov eax, dword [eax + 8]
push edi
push dword [ebp - 0x7b4]
lea ecx, [ebp - 0x5a0]
push dword [ebp - 0x7c4]
push ecx
push dword [ebp - 0x7c8]
mov ecx, 0x10265c20
push eax
push 0xf
call fcn.100396ad
push dword [ebp - 0x7c8]
mov ecx, esi
push dword [ebp - 0x7b0]
call fcn.10028cf2
push dword [eax + 8]
xor edi, edi
push str.CMailSafeDoc::DecryptMailDoc__s_:_backup_to__s___n
push str.MailSafeDoc
inc edi
push edi
push 0x10263e7c
call fcn.10024f90
mov eax, dword [ebp - 0x7d4]
add esp, 0x18
mov dword [eax], edi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x7c8]
call fcn.100cc4d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x7e4]
call fcn.100cc4d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x7d0]
call fcn.100cc4d0
cmp dword [ebp - 0x7c4], ebx
je 0x1003322e
push dword [ebp - 0x7c4]
call fcn.100637e1
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x7d8]
call fcn.100e0700
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7cc]
call fcn.100cc4d0
inc dword [ebp - 0x7b0]
mov ecx, esi
call fcn.1002786d
cmp dword [ebp - 0x7b0], eax
jl 0x10032ae1
mov eax, dword [ebp - 0x7d4]
cmp dword [eax], ebx
je 0x10033279
mov dword [ebp - 0x7f4], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c0]
call fcn.100cc4d0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x85c]
call fcn.1003b351
mov ebx, dword [ebp - 0x7f4]
jmp 0x10032a37