Function at 0x100343a6
Capabilities:
Get file size

Disassembly:
push 0x850
mov eax, 0x101d279a
call fcn.10099872
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x7c4], eax
mov dword [ebp - 0x7e4], edi
cmp dword [0x10269fe8], ebx
je 0x100343f5
mov ecx, esi
call fcn.10027f12
push eax
push str.DecryptMailDoc_arrayIN.GetSize__d_
push str.MailSafeDoc
push 4
push 0x10269f7c
call fcn.10025270
add esp, 0x14
mov ecx, esi
call fcn.10027f12
test eax, eax
jne 0x10034406
call fcn.100998f5
ret
cmp dword [0x10269fe8], ebx
je 0x1003442a
push dword [ebp + 0x14]
push str.DecryptMailDoc_dwUserID__lu_
push str.MailPolicy
push 4
push 0x10269f7c
call fcn.10025270
add esp, 0x14
lea ecx, [ebp - 0x840]
call fcn.10030b8a
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x840]
push eax
push dword [ebp + 0x14]
call fcn.10033abb
pop ecx
pop ecx
test eax, eax
jne 0x10034460
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.100308e4
mov eax, ebx
jmp 0x10034400
push 1
call fcn.10004251
mov dword [ebp - 0x7f4], eax
mov dword [esp], 0x208
lea eax, [ebp - 0x7a8]
push ebx
push eax
mov dword [ebp - 0x7ac], ebx
call fcn.10099920
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.1003d08f
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x7c4]
mov dword [ebp - 0x7f0], ebx
mov dword [edi], ebx
call fcn.10034363
push dword [ebp + 0x10]
lea eax, [ebp - 0x7c8]
push eax
call fcn.10192c30
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, esi
mov dword [ebp - 0x7b0], ebx
call fcn.10027f12
test eax, eax
jle 0x10034cf6
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
push dword [eax + 8]
lea ecx, [ebp - 0x840]
call fcn.10030664
xor edi, edi
mov dword [ebp - 0x7c0], eax
cmp dword [ebp - 0x7f4], ebx
je 0x1003453b
cmp dword [ebp - 0x7e0], ebx
je 0x10034523
inc edi
jmp 0x1003453b
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
push dword [eax + 8]
call fcn.1000403b
pop ecx
mov edi, eax
cmp dword [0x10269fe8], ebx
je 0x10034569
push edi
push dword [ebp - 0x7e0]
push dword [ebp - 0x7f4]
push str.DecryptMailDoc_bDoCompressFile__lu__bDoDocTraverser__lu__bIsCompressFile__lu_
push str.MailPolicy
push 4
push 0x10269f7c
call fcn.10025270
add esp, 0x1c
cmp edi, ebx
je 0x100347d9
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
push dword [eax + 4]
lea eax, [ebp - 0x7d8]
push eax
call fcn.1001140a
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x7c0], ebx
jne 0x100345c5
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x7d8]
call fcn.100fe1d0
add esp, 0x28
test eax, eax
je 0x100345c5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7d8]
jmp 0x10034cd2
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.10099920
xor eax, eax
push edi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.10099920
add esp, 0x18
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
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.1009bd2e
add esp, 0x14
push 0x101e6ae4
lea ecx, [ebp - 0x7b8]
call fcn.100ce7b0
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.100294b5
push dword [eax + 4]
lea eax, [ebp - 0x7b8]
push str._s__d_s
push eax
call fcn.100d1ed0
add esp, 0x14
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
push dword [ebp - 0x7b8]
mov eax, dword [eax + 4]
push eax
call fcn.10010ed9
pop ecx
pop ecx
cmp eax, ebx
jne 0x100346f3
lea eax, [ebp - 0x218]
push eax
call edi
inc eax
push eax
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
push dword [eax + 4]
lea eax, [ebp - 0x7b8]
push str._s__d_s
push eax
call fcn.100d1ed0
add esp, 0x14
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
push dword [ebp - 0x7b8]
mov eax, dword [eax + 4]
push eax
call fcn.10010ed9
pop ecx
pop ecx
cmp eax, ebx
jne 0x100346f3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7b8]
call fcn.100cef50
jmp 0x100345b6
push dword [ebp - 0x7b0]
mov ecx, esi
mov dword [ebp - 0x7b4], ebx
call fcn.100294b5
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x7b4]
push ecx
lea ecx, [ebp - 0x840]
push ecx
lea ecx, [ebp - 0x7c8]
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 0x10034747
lea eax, [ebp - 0x7ac]
push eax
call fcn.10033774
add esp, 0x24
jmp 0x1003474f
call fcn.10033c09
add esp, 0x20
cmp eax, ebx
je 0x1003479f
cmp dword [ebp - 0x7b4], ebx
je 0x1003479f
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
mov ecx, dword [ebp - 0x7c4]
push eax
call fcn.1002eccf
mov ecx, dword [ebp - 0x7c4]
lea eax, [ebp - 0x7b8]
push eax
call fcn.10027f12
mov ecx, dword [ebp - 0x7c4]
dec eax
push eax
call fcn.100294b5
mov ecx, eax
add ecx, 4
call fcn.100cf0e0
jmp 0x100347bc
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
push dword [eax + 4]
push dword [ebp - 0x7b8]
call fcn.10010ed9
pop ecx
pop ecx
cmp dword [ebp - 0x7b4], ebx
je 0x100346df
mov eax, dword [ebp - 0x7e4]
mov dword [eax], 1
jmp 0x100346df
cmp dword [ebp - 0x7c0], ebx
je 0x10034cd7
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
push dword [eax + 4]
lea eax, [ebp - 0x7d4]
push eax
call fcn.1001140a
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 - 0x7d4]
call fcn.100fe1d0
add esp, 0x30
cmp eax, 3
jne 0x10034cc8
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.10099920
add esp, 0xc
lea ecx, [ebp - 0x7dc]
mov dword [ebp - 0x7c0], ebx
call fcn.100e3020
mov byte [ebp - 4], 6
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocStringLen
push dword [ebp - 0x7d4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100348d2
cmp dword [0x10269fe8], ebx
je 0x10034cb9
push 0x21a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
push dword [eax + 8]
push dword [ebp - 0x7c8]
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_open_decrypt_file__s__failed___LastError:__d__LINE:__d__n
push str.MailSafeDoc
push 4
push 0x10269f7c
call fcn.10025270
add esp, 0x20
jmp 0x10034cb9
lea eax, [ebp - 0x7dc]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x7c0]
push eax
lea eax, [ebp - 0x5a0]
push eax
lea eax, [ebp - 0x7b4]
push eax
push edi
mov dword [ebp - 0x7b4], ebx
call fcn.1003216a
add esp, 0x18
mov dword [ebp - 0x7bc], 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 - 0x7bc], ebx
jne 0x1003496f
cmp dword [0x10269fe8], ebx
je 0x10034ca5
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
push dword [eax + 8]
push dword [ebp - 0x7c8]
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_CheckAccessRight_failed__n
push str.MailSafeDoc
push 8
push 0x10269f7c
call fcn.10025270
add esp, 0x18
jmp 0x10034ca5
cmp dword [ebp - 0x7b4], ebx
je 0x100349e3
cmp dword [0x10269fe8], ebx
je 0x100349b4
push dword [ebp - 0x7b4]
mov ecx, esi
push dword [ebp - 0x7b0]
call fcn.100294b5
push dword [eax + 8]
push dword [ebp - 0x7c8]
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_No_Access_right__Result:_lu_n
push str.MailSafeDoc
push 4
push 0x10269f7c
call fcn.10025270
add esp, 0x1c
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
push dword [ebp + 0x14]
mov eax, dword [eax + 8]
push ebx
push 2
push dword [ebp - 0x7b4]
mov ecx, 0x1026be70
push dword [ebp + 0x10]
push eax
call fcn.100369bc
jmp 0x10034ca5
push 0x101e6ae4
lea ecx, [ebp - 0x7d0]
call fcn.100ce7b0
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.100294b5
push dword [eax + 4]
lea eax, [ebp - 0x7d0]
push str._s__d.tmp
push eax
call fcn.100d1ed0
push dword [ebp - 0x7d0]
lea eax, [ebp - 0x7e8]
push eax
call fcn.1001140a
mov byte [ebp - 4], 8
push ebx
push 1
push 2
push ebx
push dword [ebp - 0x7e8]
push dword [ebp - 0x7d4]
call fcn.10101350
add esp, 0x30
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x7bc], ebx
jne 0x10034afc
lea eax, [ebp - 0x7b4]
push eax
lea eax, [ebp - 0x7bc]
push eax
mov dword [ebp - 0x7b4], ebx
call fcn.100fdce0
pop ecx
pop ecx
mov edi, eax
cmp dword [0x10269fe8], ebx
je 0x10034acd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x7b4]
push ebx
push ebx
call fcn.100fdce0
pop ecx
pop ecx
push eax
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
push dword [eax + 8]
push dword [ebp - 0x7c8]
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_Decrypt_file_failed___ESError:__d__ESLine:__d__LastError:__d__n
push str.MailSafeDoc
push 8
push 0x10269f7c
call fcn.10025270
add esp, 0x24
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
push dword [ebp + 0x14]
mov eax, dword [eax + 8]
push dword [ebp - 0x7bc]
mov ecx, 0x1026be70
push 2
push edi
push dword [ebp + 0x10]
push eax
call fcn.100369bc
jmp 0x10034c87
push 0x101e6ae4
lea ecx, [ebp - 0x7cc]
call fcn.100ce7b0
mov byte [ebp - 4], 9
push dword [ebp - 0x7ec]
lea ecx, [ebp - 0x840]
push dword [ebp - 0x7f8]
call fcn.100304c1
test eax, eax
je 0x10034b85
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
push dword [eax + 8]
call edi
xor edi, edi
push eax
inc edi
push edi
call fcn.10037edb
pop ecx
push eax
lea eax, [ebp - 0x7cc]
push str._s_backup_d__s
push eax
call fcn.100d1ed0
add esp, 0x14
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
push dword [ebp - 0x7cc]
mov eax, dword [eax + 4]
push eax
call fcn.10010ed9
pop ecx
pop ecx
test eax, eax
je 0x10034b85
mov dword [ebp - 0x7bc], edi
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
mov ecx, dword [ebp - 0x7c4]
push eax
call fcn.1002eccf
mov ecx, dword [ebp - 0x7c4]
lea eax, [ebp - 0x7d0]
push eax
call fcn.10027f12
mov ecx, dword [ebp - 0x7c4]
dec eax
push eax
call fcn.100294b5
mov ecx, eax
add ecx, 4
call fcn.100cf0e0
cmp dword [ebp - 0x7bc], ebx
jne 0x10034bda
lea ecx, [ebp - 0x7cc]
call fcn.100cecc0
lea ecx, [ebp - 0x7dc]
call fcn.100e3220
test eax, eax
jbe 0x10034bf8
lea ecx, [ebp - 0x7dc]
call fcn.100e3920
mov edi, eax
jmp 0x10034bfa
xor edi, edi
push dword [ebp - 0x7b0]
mov ecx, esi
call fcn.100294b5
mov eax, dword [eax + 8]
push ebx
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [ebp + 0x18]
push ecx
push eax
push edi
push dword [ebp - 0x7c0]
lea ecx, [ebp - 0x5a0]
push ecx
push dword [ebp - 0x7cc]
mov ecx, 0x1026bd20
push eax
push 0xf
call fcn.1003b371
cmp dword [0x10269fe8], ebx
je 0x10034c6c
push dword [ebp - 0x7cc]
mov ecx, esi
push dword [ebp - 0x7b0]
call fcn.100294b5
push dword [eax + 8]
push str.CMailSafeDoc::DecryptMailDoc__s_:_backup_to__s___n
push str.MailSafeDoc
push 1
push 0x10269f7c
call fcn.10025270
add esp, 0x18
mov eax, dword [ebp - 0x7e4]
mov dword [eax], 1
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x7cc]
call fcn.100cef50
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x7e8]
call fcn.100cef50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x7d0]
call fcn.100cef50
cmp dword [ebp - 0x7c0], ebx
je 0x10034cb9
push dword [ebp - 0x7c0]
call fcn.10066289
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x7dc]
call fcn.100e3180
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7d4]
call fcn.100cef50
inc dword [ebp - 0x7b0]
mov ecx, esi
call fcn.10027f12
cmp dword [ebp - 0x7b0], eax
jl 0x100344ed
mov edi, dword [ebp - 0x7e4]
cmp dword [edi], ebx
je 0x10034d04
mov dword [ebp - 0x7f0], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c8]
call fcn.100cef50
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x85c]
call fcn.1003d16b
mov ebx, dword [ebp - 0x7f0]
jmp 0x1003444d