Function at 0x10030df8
Capabilities:
Get file size

Disassembly:
push 0x640
mov eax, 0x101c4c05
call fcn.10093213
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x1c]
mov ecx, esi
mov dword [ebp - 0x5d0], eax
mov dword [ebp - 0x5d8], edi
call fcn.1002671f
push eax
push str.DecryptMailDoc_arrayIN.GetSize__d_
push str.MailSafeDoc
push 4
mov ebx, 0x10258cdc
push ebx
call fcn.10023e40
add esp, 0x14
mov ecx, esi
call fcn.1002671f
test eax, eax
jne 0x10030e4f
call fcn.10093296
ret
push dword [ebp + 0x14]
push str.DecryptMailDoc_dwUserID__lu_
push str.MailPolicy
push 4
push ebx
call fcn.10023e40
add esp, 0x14
lea ecx, [ebp - 0x630]
call fcn.1002dd16
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x630]
push eax
push dword [ebp + 0x14]
call fcn.100305bd
pop ecx
pop ecx
test eax, eax
jne 0x10030e9f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x630]
call fcn.1002da80
mov eax, ebx
jmp 0x10030e49
push 1
call fcn.10003aa9
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x64c]
mov dword [ebp - 0x5e4], eax
call fcn.10039609
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x5d0]
mov dword [ebp - 0x5e0], ebx
mov dword [edi], ebx
call fcn.10030db5
mov ecx, dword [ebp - 0x5d0]
push esi
call fcn.10030dbf
push dword [ebp + 0x10]
lea eax, [ebp - 0x5b8]
push eax
call fcn.101824e0
pop ecx
pop ecx
mov byte [ebp - 4], 2
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x5a4], edi
call fcn.1002671f
test eax, eax
jle 0x10031616
push edi
mov ecx, esi
call fcn.1002782d
push dword [eax + 8]
lea ecx, [ebp - 0x630]
call fcn.1002d816
mov dword [ebp - 0x5b4], eax
cmp dword [ebp - 0x5e4], ebx
je 0x10031135
push edi
mov ecx, esi
call fcn.1002782d
push dword [eax + 8]
call fcn.10003893
pop ecx
test eax, eax
je 0x10031135
push edi
mov ecx, esi
call fcn.1002782d
push dword [eax + 4]
lea eax, [ebp - 0x5cc]
push eax
call fcn.10010175
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x5b4], ebx
jne 0x10030f9e
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x5cc]
call fcn.100f1950
add esp, 0x28
test eax, eax
je 0x10030f9e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5cc]
call fcn.100c88e0
jmp 0x10031600
xor eax, eax
push 0x206
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.100932c0
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.100932c0
add esp, 0x18
push edi
mov ecx, esi
call fcn.1002782d
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.100956d8
add esp, 0x14
push 0x101d9c6c
lea ecx, [ebp - 0x5ac]
call fcn.100c8140
mov byte [ebp - 4], 4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
mov ecx, esi
call fcn.1002782d
push dword [eax + 4]
lea eax, [ebp - 0x5ac]
push str._s__d_s
push eax
call fcn.100cb860
add esp, 0x14
push edi
mov ecx, esi
call fcn.1002782d
push dword [ebp - 0x5ac]
mov eax, dword [eax + 4]
push eax
call fcn.1000fc44
pop ecx
pop ecx
cmp eax, ebx
jne 0x100310b8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
inc eax
push eax
push edi
mov ecx, esi
call fcn.1002782d
push dword [eax + 4]
lea eax, [ebp - 0x5ac]
push str._s__d_s
push eax
call fcn.100cb860
add esp, 0x14
push edi
mov ecx, esi
call fcn.1002782d
push dword [ebp - 0x5ac]
mov eax, dword [eax + 4]
push eax
call fcn.1000fc44
pop ecx
pop ecx
cmp eax, ebx
jne 0x100310b8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5ac]
call fcn.100c88e0
jmp 0x10030f8a
push edi
mov ecx, esi
call fcn.1002782d
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x630]
push ecx
lea ecx, [ebp - 0x5b8]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp - 0x5ac]
call fcn.100306e2
add esp, 0x1c
cmp eax, ebx
je 0x1003110c
mov ecx, dword [ebp - 0x5d0]
lea eax, [ebp - 0x5ac]
push eax
push edi
call fcn.1002782d
mov ecx, eax
add ecx, 4
call fcn.100c8a70
jmp 0x10031124
push edi
mov ecx, esi
call fcn.1002782d
push dword [eax + 4]
push dword [ebp - 0x5ac]
call fcn.1000fc44
pop ecx
pop ecx
mov eax, dword [ebp - 0x5d8]
mov dword [eax], 1
jmp 0x100310a4
cmp dword [ebp - 0x5b4], ebx
je 0x10031600
push edi
mov ecx, esi
call fcn.1002782d
push dword [eax + 4]
lea eax, [ebp - 0x5c0]
push eax
call fcn.10010175
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 - 0x5c0]
call fcn.100f1950
add esp, 0x30
cmp eax, 3
je 0x10031187
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c0]
jmp 0x10030f94
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.100932c0
add esp, 0xc
lea ecx, [ebp - 0x5c8]
mov dword [ebp - 0x5b4], ebx
call fcn.100db1f0
mov byte [ebp - 4], 6
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocStringLen
push dword [ebp - 0x5c0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10031228
push 0x206
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x5a4]
mov ecx, esi
call fcn.1002782d
push dword [eax + 8]
push dword [ebp - 0x5b8]
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_open_decrypt_file__s__failed___LastError:__d__LINE:__d__n
push str.MailSafeDoc
push 4
push 0x10258cdc
call fcn.10023e40
add esp, 0x20
jmp 0x100315dc
lea eax, [ebp - 0x5c8]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x5b4]
push eax
lea eax, [ebp - 0x5a0]
push eax
lea eax, [ebp - 0x5b0]
push eax
push edi
mov dword [ebp - 0x5b0], ebx
call fcn.1002f266
add esp, 0x18
mov dword [ebp - 0x5a8], eax
lea eax, [ebp - 0x5dc]
push eax
push edi
mov dword [ebp - 0x5dc], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [ebp - 0x5e8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x5a8], ebx
jne 0x100312b9
push dword [ebp - 0x5a4]
mov ecx, esi
call fcn.1002782d
push dword [eax + 8]
push dword [ebp - 0x5b8]
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_CheckAccessRight_failed__n
push str.MailSafeDoc
push 8
push 0x10258cdc
call fcn.10023e40
add esp, 0x18
jmp 0x100315c8
cmp dword [ebp - 0x5b0], ebx
je 0x10031325
push dword [ebp - 0x5b0]
mov ecx, esi
push dword [ebp - 0x5a4]
call fcn.1002782d
push dword [eax + 8]
push dword [ebp - 0x5b8]
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_No_Access_right__Result:_lu_n
push str.MailSafeDoc
push 4
push 0x10258cdc
call fcn.10023e40
add esp, 0x1c
push dword [ebp - 0x5a4]
mov ecx, esi
call fcn.1002782d
push dword [ebp + 0x14]
mov eax, dword [eax + 8]
push ebx
push 2
push dword [ebp - 0x5b0]
mov ecx, 0x1025abd0
push dword [ebp + 0x10]
push eax
call fcn.100332b0
jmp 0x100315c8
push 0x101d9c6c
lea ecx, [ebp - 0x5c4]
call fcn.100c8140
mov byte [ebp - 4], 7
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push dword [ebp - 0x5a4]
mov ecx, esi
call fcn.1002782d
push dword [eax + 4]
lea eax, [ebp - 0x5c4]
push str._s__d.tmp
push eax
call fcn.100cb860
push dword [ebp - 0x5c4]
lea eax, [ebp - 0x5d4]
push eax
call fcn.10010175
mov byte [ebp - 4], 8
push 1
push 2
push ebx
push dword [ebp - 0x5d4]
push dword [ebp - 0x5c0]
call fcn.100f4ac0
add esp, 0x2c
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x5a8], ebx
jne 0x10031435
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0x5a8]
push eax
mov dword [ebp - 0x5b0], ebx
call fcn.100f1470
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x5b0]
push ebx
push ebx
call fcn.100f1470
pop ecx
pop ecx
push eax
push dword [ebp - 0x5a4]
mov ecx, esi
call fcn.1002782d
push dword [eax + 8]
push dword [ebp - 0x5b8]
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_Decrypt_file_failed___ESError:__d__ESLine:__d__LastError:__d__n
push str.MailSafeDoc
push 8
push 0x10258cdc
call fcn.10023e40
add esp, 0x24
push dword [ebp - 0x5a4]
mov ecx, esi
call fcn.1002782d
push dword [ebp + 0x14]
mov eax, dword [eax + 8]
push dword [ebp - 0x5a8]
mov ecx, 0x1025abd0
push 2
push edi
push dword [ebp + 0x10]
push eax
call fcn.100332b0
jmp 0x100315aa
push 0x101d9c6c
lea ecx, [ebp - 0x5bc]
call fcn.100c8140
mov byte [ebp - 4], 9
push dword [ebp - 0x5dc]
lea ecx, [ebp - 0x630]
push dword [ebp - 0x5e8]
call fcn.1002d687
test eax, eax
je 0x100314be
push dword [ebp - 0x5a4]
mov ecx, esi
call fcn.1002782d
push dword [eax + 8]
call edi
xor edi, edi
push eax
inc edi
push edi
call fcn.10034766
pop ecx
push eax
lea eax, [ebp - 0x5bc]
push str._s_backup_d__s
push eax
call fcn.100cb860
add esp, 0x14
push dword [ebp - 0x5a4]
mov ecx, esi
call fcn.1002782d
push dword [ebp - 0x5bc]
mov eax, dword [eax + 4]
push eax
call fcn.1000fc44
pop ecx
pop ecx
test eax, eax
je 0x100314be
mov dword [ebp - 0x5a8], edi
mov ecx, dword [ebp - 0x5d0]
lea eax, [ebp - 0x5c4]
push eax
push dword [ebp - 0x5a4]
call fcn.1002782d
mov ecx, eax
add ecx, 4
call fcn.100c8a70
cmp dword [ebp - 0x5a8], ebx
jne 0x100314f3
lea ecx, [ebp - 0x5bc]
call fcn.100c8650
lea ecx, [ebp - 0x5c8]
call fcn.100db3f0
test eax, eax
jbe 0x10031515
lea ecx, [ebp - 0x5c8]
call fcn.100dbaf0
mov dword [ebp - 0x5a8], eax
jmp 0x1003151b
mov dword [ebp - 0x5a8], ebx
push dword [ebp - 0x5a4]
mov ecx, esi
call fcn.1002782d
push dword [ebp - 0x5a4]
mov edi, dword [eax + 8]
mov ecx, esi
call fcn.1002782d
mov eax, dword [eax + 8]
push edi
push dword [ebp - 0x5a8]
lea ecx, [ebp - 0x5a0]
push dword [ebp - 0x5b4]
push ecx
push dword [ebp - 0x5bc]
mov ecx, 0x1025aa80
push eax
push 0xf
call fcn.10037a41
push dword [ebp - 0x5bc]
mov ecx, esi
push dword [ebp - 0x5a4]
call fcn.1002782d
push dword [eax + 8]
xor edi, edi
push str.CMailSafeDoc::DecryptMailDoc__s_:_backup_to__s___n
push str.MailSafeDoc
inc edi
push edi
push 0x10258cdc
call fcn.10023e40
mov eax, dword [ebp - 0x5d8]
add esp, 0x18
mov dword [eax], edi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5bc]
call fcn.100c88e0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x5d4]
call fcn.100c88e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5c4]
call fcn.100c88e0
cmp dword [ebp - 0x5b4], ebx
je 0x100315dc
push dword [ebp - 0x5b4]
call fcn.1005fc33
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c8]
call fcn.100db350
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c0]
call fcn.100c88e0
mov edi, dword [ebp - 0x5a4]
inc edi
mov ecx, esi
mov dword [ebp - 0x5a4], edi
call fcn.1002671f
cmp edi, eax
jl 0x10030f09
mov eax, dword [ebp - 0x5d8]
cmp dword [eax], ebx
je 0x1003162a
mov dword [ebp - 0x5e0], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5b8]
call fcn.100c88e0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x64c]
call fcn.100396e5
mov ebx, dword [ebp - 0x5e0]
jmp 0x10030e8c