Function at 0x10030e16
Capabilities:
Get file size

Disassembly:
push 0x3d4
mov eax, 0x101cfc38
call fcn.10097128
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x39c], eax
mov dword [ebp - 0x3b0], ebx
mov dword [ebp - 0x3d4], edi
test eax, eax
je 0x10031312
test ebx, ebx
je 0x10031312
test edi, edi
je 0x10031312
test esi, esi
je 0x10031312
push eax
lea eax, [ebp - 0x3b4]
push eax
call fcn.10011269
and dword [ebp - 4], 0
push 0x5b7
push dword [ebp + 0x18]
push ebx
push dword [ebp - 0x3b4]
mov ebx, 0x10266f7c
push str.CMailSafeDoc::DoDecryptCompressFile_lpwszFile__s__lpwszVirtualPath__s__bNeedDecrypt__d___LINE:__d__n
push str.MailSafeDoc
push 4
push ebx
call fcn.10024f90
mov eax, dword [esi]
and dword [ebp - 0x3c4], 0
and dword [ebp - 0x3b8], 0
mov dword [ebp - 0x3d0], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x3c0], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x3c8], eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
add esp, 0x28
lea ecx, [ebp - 0x3bc]
mov dword [ebp - 0x3d8], eax
mov dword [ebp - 0x3dc], esi
call fcn.100e08e0
mov byte [ebp - 4], 1
push edi
mov ecx, esi
call fcn.1002f063
test eax, eax
je 0x100312ec
xor eax, eax
mov byte [ebp - 0x398], 0
lea edi, [ebp - 0x397]
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
xor esi, esi
lea eax, [ebp - 0x388]
push esi
push eax
call fcn.100971d0
add esp, 0xc
push esi
push 0x80
push 3
push esi
push 5
push SysReAllocStringLen
push dword [ebp - 0x3b4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100312ec
and dword [ebp - 0x3a0], 0
lea eax, [ebp - 0x3bc]
push eax
mov eax, dword [ebp - 0x3c8]
push dword [eax]
lea eax, [ebp - 0x3b8]
push eax
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x3a0]
push eax
push esi
call fcn.10030ab6
and dword [ebp - 0x3cc], 0
add esp, 0x18
mov edi, eax
lea eax, [ebp - 0x3cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 0x3e0], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x100312d7
cmp dword [ebp - 0x3a0], 0
je 0x10031008
push dword [ebp - 0x3a0]
push dword [ebp - 0x3b0]
push dword [ebp - 0x39c]
push str.__s__CMailSafeDoc::DecryptFromCompressFile__s_:_No_Access_right__Result:_lu_n
push str.MailSafeDoc
push 4
push ebx
call fcn.10024f90
mov eax, dword [ebp - 0x3c0]
add esp, 0x1c
push dword [eax]
mov eax, dword [ebp - 0x3d0]
push 0
push 2
push dword [ebp - 0x3a0]
mov ecx, 0x10268e70
push dword [eax]
push dword [ebp - 0x3b0]
call fcn.1003509a
jmp 0x100312d7
mov esi, 0x101e3ae4
push esi
lea ecx, [ebp - 0x3a8]
call fcn.100cc080
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push dword [ebp - 0x39c]
lea eax, [ebp - 0x3a8]
push 0x101eebe0
push eax
call fcn.100cf7a0
push dword [ebp - 0x3a8]
lea eax, [ebp - 0x3ac]
push eax
call fcn.10011269
add esp, 0x18
mov byte [ebp - 4], 3
xor eax, eax
push eax
cmp dword [ebp + 0x18], eax
je 0x1003107e
push 1
push 2
push eax
push dword [ebp - 0x3ac]
push dword [ebp - 0x3b4]
call fcn.100fec20
add esp, 0x18
neg eax
sbb eax, eax
inc eax
jmp 0x10031092
push dword [ebp - 0x3ac]
push dword [ebp - 0x3b4]
call fcn.10010ca2
add esp, 0xc
test eax, eax
jne 0x10031115
and dword [ebp - 0x3a0], eax
and dword [ebp - 0x39c], eax
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x3a0]
push eax
call fcn.100fb5b0
push dword [ebp - 0x3a0]
mov esi, eax
push dword [ebp - 0x39c]
mov eax, dword [ebp - 0x3d8]
push esi
push dword [ebp - 0x3b0]
push dword [eax]
push str.__s__CMailSafeDoc::DecryptFromCompressFile__s_:_Decrypt_file_failed___ESError:__d__ESLine:__d__LastError:__d__n
push str.MailSafeDoc
push 8
push ebx
call fcn.10024f90
mov eax, dword [ebp - 0x3c0]
add esp, 0x2c
push dword [eax]
mov eax, dword [ebp - 0x3d0]
push dword [ebp - 0x3a0]
mov ecx, 0x10268e70
push 2
push esi
push dword [eax]
push dword [ebp - 0x3b0]
call fcn.1003509a
jmp 0x100312b9
push esi
lea ecx, [ebp - 0x3a4]
call fcn.100cc080
mov byte [ebp - 4], 4
call edi
push eax
push dword [ebp - 0x39c]
lea eax, [ebp - 0x3a4]
push str._s__d.bak
push eax
call fcn.100cf7a0
push dword [ebp - 0x3a4]
push dword [ebp - 0x39c]
call fcn.10010d38
add esp, 0x18
test eax, eax
je 0x100312aa
push dword [ebp - 0x39c]
push dword [ebp - 0x3a8]
call fcn.10010d38
pop ecx
pop ecx
test eax, eax
je 0x10031297
push esi
lea ecx, [ebp - 0x39c]
call fcn.100cc080
mov byte [ebp - 4], 5
push dword [ebp - 0x3cc]
mov ecx, dword [ebp - 0x3dc]
push dword [ebp - 0x3e0]
call fcn.1002eed4
test eax, eax
je 0x100311e5
push dword [ebp - 0x3d4]
call fcn.1003c77d
pop ecx
push eax
call edi
push eax
push 1
call fcn.10036550
pop ecx
push eax
lea eax, [ebp - 0x39c]
push str._s_backup_d__s
push eax
call fcn.100cf7a0
push 2
push dword [ebp - 0x39c]
push dword [ebp - 0x3a4]
call fcn.10010dcb
add esp, 0x20
test eax, eax
jne 0x100311fc
push dword [ebp - 0x3a4]
call fcn.10010f37
pop ecx
lea ecx, [ebp - 0x39c]
call fcn.100cc590
push dword [ebp - 0x3d4]
call fcn.100d9380
pop ecx
lea ecx, [ebp - 0x3bc]
mov esi, eax
call fcn.100e0ae0
test eax, eax
jbe 0x10031226
lea ecx, [ebp - 0x3bc]
call fcn.100e11e0
jmp 0x10031228
xor eax, eax
push 0
push dword [ebp - 0x3c0]
mov ecx, 0x10268d20
push dword [ebp - 0x3c8]
push dword [ebp - 0x3b0]
push eax
push dword [ebp - 0x3b8]
lea eax, [ebp - 0x398]
push eax
push dword [ebp - 0x39c]
push esi
push 0xf
call fcn.10039861
push dword [ebp - 0x39c]
xor esi, esi
push dword [ebp - 0x3b0]
inc esi
push str.CMailSafeDoc::DecryptFromCompressFile__s_:_backup_to__s___n
push str.MailSafeDoc
push esi
push ebx
call fcn.10024f90
add esp, 0x18
mov dword [ebp - 0x3c4], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x39c]
call fcn.100cc820
jmp 0x100312aa
push dword [ebp - 0x39c]
push dword [ebp - 0x3a4]
call fcn.10010d38
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3a4]
call fcn.100cc820
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3ac]
call fcn.100cc820
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3a8]
call fcn.100cc820
cmp dword [ebp - 0x3b8], 0
je 0x100312ec
push dword [ebp - 0x3b8]
call fcn.10063b47
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3bc]
call fcn.100e0a40
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3b4]
call fcn.100cc820
mov eax, dword [ebp - 0x3c4]
jmp 0x10031314
xor eax, eax
call fcn.100971ab
ret