Function at 0x1000c8a0
Capabilities:
Check for time delay via gettickcount
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1025a77e
push eax
mov eax, dword [0x1030ceb0]
mov dword fs:[0], esp
sub esp, 0xa58
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0xa70]
cmp eax, ebp
je 0x1000c8ec
mov eax, dword [esi + 4]
push eax
push str.DecryptMailDoc_arrayIN.GetSize__d_
push str.MailSafeDoc
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
cmp dword [esi + 4], ebp
jne 0x1000c90a
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xa58]
mov dword fs:[0], ecx
add esp, 0xa64
ret
cmp dword [0x1030ceb0], ebp
je 0x1000c933
mov eax, dword [esp + 0xa7c]
push eax
push str.DecryptMailDoc_dwUserID__lu_
push str.MailPolicy
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
lea ecx, [esp + 0x58]
call fcn.10007ec0
mov ecx, dword [esp + 0xa90]
mov eax, dword [esp + 0xa7c]
lea edx, [esp + 0x58]
push ecx
push edx
push eax
mov dword [esp + 0xa74], ebp
call fcn.1000e690
add esp, 0xc
test eax, eax
jne 0x1000c991
lea ecx, [esp + 0x58]
mov dword [esp + 0xa68], 0xffffffff
call fcn.10007f50
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xa58]
mov dword fs:[0], ecx
add esp, 0xa64
ret
push edi
push 1
call fcn.10062640
mov dword [esp + 0x44], eax
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x2d0]
mov dword [esp + 0x2cc], ebp
push 0xffffffffffffffff
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2d0]
push ebp
push ecx
call fcn.10061e70
add esp, 0x10
lea ecx, [esp + 0xa4]
mov dword [esp + 0x30], eax
push 0xffffffffffffffff
call fcn.10038610
mov edx, dword [esp + 0xa8c]
mov ecx, dword [esp + 0xa78]
push 0xffffffffffffffff
push ebp
mov byte [esp + 0xa74], 1
mov dword [esp + 0x5c], ebp
mov dword [edx], ebp
call fcn.1000fa60
mov eax, dword [esp + 0xa7c]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.101971a0
add esp, 8
mov eax, dword [esi + 4]
mov byte [esp + 0xa6c], 2
cmp eax, ebp
mov dword [esp + 0x4c], ebp
jle 0x1000d1ce
push ebx
mov edx, dword [esi]
lea ecx, [esp + 0x60]
mov eax, dword [edx + ebp + 8]
push eax
call fcn.100088e0
mov ebx, eax
mov eax, dword [esp + 0x44]
xor edi, edi
test eax, eax
je 0x1000ca66
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1000ca55
mov edi, 1
jmp 0x1000ca66
mov eax, dword [esi]
mov eax, dword [eax + ebp + 8]
push eax
call fcn.100623c0
add esp, 4
mov edi, eax
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1000ca93
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x44]
push edi
push ecx
push edx
push str.DecryptMailDoc_bDoCompressFile__lu__bDoDocTraverser__lu__bIsCompressFile__lu_
push str.MailPolicy
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x1c
test edi, edi
je 0x1000ccd2
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
mov eax, dword [eax + ebp + 4]
push eax
push ecx
call fcn.1006c830
add esp, 8
test ebx, ebx
mov byte [esp + 0xa70], 3
jne 0x1000cad9
mov edx, dword [esp + 0x2c]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
call fcn.10132900
add esp, 0x28
test eax, eax
jne 0x1000ccc1
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x4da]
mov word [esp + 0x4d8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xc6]
mov word [esp + 0xc4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi]
lea ecx, [esp + 0xc4]
lea edx, [esp + 0x4d8]
push ecx
mov eax, dword [eax + ebp + 8]
push edx
push 0
push 0
push eax
call fcn.10079346
add esp, 0x14
lea ecx, [esp + 0x10]
push 0x102f684c
call fcn.10090450
mov ebx, dword [esi]
mov edi, ebp
lea eax, [esp + 0xc4]
add edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov byte [esp + 0xa74], 4
call ebx
mov ecx, dword [edi + 4]
push eax
push ecx
lea edx, [esp + 0x1c]
push str._s__d_s
push edx
call fcn.10093b70
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
push ecx
mov eax, dword [eax + ebp + 4]
push eax
call fcn.1006d230
add esp, 0x1c
test eax, eax
jne 0x1000cbcd
mov ecx, dword [esi]
lea edx, [esp + 0xc4]
mov edi, ebp
push edx
add edi, ecx
call ebx
inc eax
lea ecx, [esp + 0x14]
push eax
mov eax, dword [edi + 4]
push eax
push str._s__d_s
push ecx
call fcn.10093b70
mov edx, dword [esi]
mov ecx, dword [esp + 0x24]
push ecx
mov eax, dword [edx + ebp + 4]
push eax
call fcn.1006d230
add esp, 0x1c
test eax, eax
je 0x1000ccb0
mov eax, dword [esp + 0x34]
mov edx, dword [esi]
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x28]
test eax, eax
mov eax, dword [edx + ebp + 8]
lea edx, [esp + 0x60]
push ecx
push edx
mov edx, dword [esp + 0xa90]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0xa90]
push edx
mov edx, dword [esp + 0xa90]
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
je 0x1000cc22
lea ecx, [esp + 0x2ec]
push ecx
call fcn.1000f2c0
add esp, 0x24
jmp 0x1000cc2a
call fcn.1000e870
add esp, 0x20
test eax, eax
je 0x1000cc87
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1000cc87
mov ebx, dword [esi]
mov ecx, dword [esp + 0xa7c]
mov edi, ebp
push 0xffffffffffffffff
add edi, ebx
mov ebx, dword [ecx + 4]
lea edx, [ebx + 1]
push edx
call fcn.1000fa60
push edi
mov edi, dword [esp + 0xa80]
lea eax, [ebx + ebx*2]
mov ecx, dword [edi]
lea ecx, [ecx + eax*4]
call fcn.1000fbe0
mov eax, dword [edi + 4]
mov ecx, dword [edi]
lea edx, [esp + 0x10]
lea eax, [eax + eax*2]
push edx
lea ecx, [ecx + eax*4 - 8]
call fcn.10090d80
mov eax, dword [esp + 0xa94]
inc dword [eax]
jmp 0x1000cc9b
mov edx, dword [esi]
mov eax, dword [edx + ebp + 4]
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.1006d230
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1000ccb0
mov ecx, dword [esp + 0xa90]
mov dword [ecx], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0xa70], 3
call fcn.10090bf0
mov byte [esp + 0xa70], 2
lea ecx, [esp + 0x2c]
jmp 0x1000d1af
test ebx, ebx
je 0x1000d1b4
mov edx, dword [esi]
mov eax, dword [edx + ebp + 4]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1006c830
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
mov byte [esp + 0xaa0], 5
call fcn.10132900
add esp, 0x30
cmp eax, 3
jne 0x1000d1a3
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x6e1]
mov byte [esp + 0x6e0], bl
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x24]
push ebx
push 0x80
push 3
stosw word es:[edi], ax
push ebx
push 5
push connect
push edx
stosb byte es:[edi], al
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000cfee
mov eax, dword [esp + 0xa88]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x6e4]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
push edi
mov dword [esp + 0x50], ebx
call fcn.1000dd80
add esp, 0x14
lea ecx, [esp + 0x4c]
mov ebx, eax
mov dword [esp + 0x4c], 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], eax
call fcn.100a4db0
lea edx, [esp + 0x18]
mov byte [esp + 0xa70], 6
push edx
push edi
call fcn.10137eb0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1000d033
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x1000d06a
push 0x102f684c
lea ecx, [esp + 0x24]
call fcn.10090450
mov ebx, dword [esi]
mov edi, ebp
add edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0xa70], 7
call ebx
push eax
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x28]
push 0x102b8358
push ecx
call fcn.10093b70
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.1006c830
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x3c]
xor edi, edi
mov byte [esp + 0xa88], 8
push edi
push 1
push 2
push edi
push ecx
push edx
call fcn.10135a80
add esp, 0x30
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x40], eax
je 0x1000d0c8
push 0x102f684c
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], edi
call fcn.10090450
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
push eax
push ecx
lea ecx, [esp + 0x68]
mov byte [esp + 0xa78], 9
call fcn.100089b0
test eax, eax
je 0x1000cec0
mov edx, dword [esi]
mov eax, dword [edx + ebp + 8]
push eax
call ebx
push eax
push 1
call fcn.1001b2f0
add esp, 4
lea ecx, [esp + 0x24]
push eax
push str._s_backup_d__s
push ecx
call fcn.10093b70
mov edx, dword [esi]
mov ecx, dword [esp + 0x30]
push ecx
mov eax, dword [edx + ebp + 4]
push eax
call fcn.1006d230
add esp, 0x1c
test eax, eax
je 0x1000cec0
mov dword [esp + 0x40], 1
mov edx, dword [esp + 0xa7c]
mov ecx, dword [esi]
mov edi, ebp
push 0xffffffffffffffff
mov ebx, dword [edx + 4]
add edi, ecx
mov ecx, edx
lea eax, [ebx + 1]
push eax
call fcn.1000fa60
mov edx, dword [esp + 0xa7c]
lea ecx, [ebx + ebx*2]
mov eax, dword [edx]
lea edx, [edi + 4]
push edx
lea ebx, [eax + ecx*4]
mov ecx, dword [edi]
mov dword [ebx], ecx
lea ecx, [ebx + 4]
call fcn.10090d80
add edi, 8
lea ecx, [ebx + 8]
push edi
call fcn.10090d80
mov ecx, dword [esp + 0xa7c]
lea edx, [esp + 0x20]
push edx
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4 - 8]
call fcn.10090d80
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x1000cf36
lea ecx, [esp + 0x1c]
call fcn.10090960
lea ecx, [esp + 0x18]
call fcn.100a4fb0
test eax, eax
jbe 0x1000cf4e
lea ecx, [esp + 0x18]
call fcn.100a56b0
jmp 0x1000cf50
xor eax, eax
mov edx, dword [esi]
push 1
mov ecx, dword [edx + ebp + 8]
mov edx, dword [esp + 0xa90]
push edx
lea edx, [esp + 0xa8c]
push edx
lea edx, [esp + 0xa94]
push edx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x6fc]
push edx
push eax
push ecx
push 0xf
mov ecx, 0x102f6a00
call fcn.1001e280
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1000cfbf
mov edx, dword [esi]
mov ecx, dword [esp + 0x1c]
push ecx
mov eax, dword [edx + ebp + 8]
push eax
push str.CMailSafeDoc::DecryptMailDoc__s_:_backup_to__s___n
push str.MailSafeDoc
push 1
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
mov ecx, dword [esp + 0xa90]
mov eax, dword [esp + 0xa94]
mov byte [esp + 0xa70], 8
mov dword [ecx], 1
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
lea ecx, [esp + 0x1c]
call fcn.10090bf0
jmp 0x1000d157
cmp dword [0x1030ceb0], ebx
je 0x1000d18a
mov ecx, dword [esi]
mov edi, ebp
push 0x1ec
add edi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi + 8]
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_open_decrypt_file__s__failed___LastError:__d__LINE:__d__n
push str.MailSafeDoc
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x20
jmp 0x1000d18a
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1000d179
mov ecx, dword [esi]
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + ebp + 8]
push edx
push eax
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_CheckAccessRight_failed__n
push str.MailSafeDoc
push 8
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
jmp 0x1000d179
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1000d09d
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esi]
mov edx, dword [ecx + ebp + 8]
push edx
push eax
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_No_Access_right__Result:_lu_n
push str.MailSafeDoc
push 4
push 0x1030c61c
call fcn.100a65e0
mov ecx, dword [esp + 0x58]
add esp, 0x1c
mov edx, dword [esi]
mov eax, dword [edx + ebp + 8]
mov edx, dword [esp + 0xa84]
push edx
push 0
push 2
push ecx
mov ecx, dword [esp + 0xa90]
push ecx
push eax
mov ecx, 0x102f69b8
call fcn.10018e20
jmp 0x1000d179
lea edx, [esp + 0x54]
lea eax, [esp + 0x48]
push edx
push eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x5c], edi
call fcn.10132410
mov ebx, eax
mov eax, dword [0x1030ceb0]
add esp, 8
cmp eax, edi
je 0x1000d12e
mov edx, dword [esi]
mov edi, ebp
add edi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x54]
push eax
push ecx
push 0
push 0
call fcn.10132410
mov edx, dword [edi + 8]
add esp, 8
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_Decrypt_file_failed___ESError:__d__ESLine:__d__LastError:__d__n
push str.MailSafeDoc
push 8
push 0x1030c61c
call fcn.100a65e0
add esp, 0x24
mov ecx, dword [esi]
mov edx, dword [esp + 0xa84]
push edx
mov edx, dword [esp + 0xa84]
mov eax, dword [ecx + ebp + 8]
mov ecx, dword [esp + 0x4c]
push ecx
push 2
push ebx
push edx
push eax
mov ecx, 0x102f69b8
call fcn.10018e20
lea ecx, [esp + 0x38]
mov byte [esp + 0xa70], 7
call fcn.10090bf0
lea ecx, [esp + 0x20]
mov byte [esp + 0xa70], 6
call fcn.10090bf0
lea ecx, [esp + 0x18]
mov byte [esp + 0xa70], 5
call fcn.100a4f10
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1000d1a3
push eax
call fcn.1024cbfa
add esp, 4
mov dword [esp + 0x30], 0
mov byte [esp + 0xa70], 2
lea ecx, [esp + 0x24]
call fcn.10090bf0
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 4]
inc eax
add ebp, 0xc
cmp eax, ecx
mov dword [esp + 0x50], eax
jl 0x1000ca2a
xor ebp, ebp
pop ebx
mov eax, dword [esp + 0xa8c]
pop edi
cmp dword [eax], ebp
je 0x1000d1e2
mov dword [esp + 0x50], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0xa68], 1
call fcn.10090bf0
lea ecx, [esp + 0xa0]
mov byte [esp + 0xa68], 0
call fcn.10038770
lea ecx, [esp + 0x58]
mov dword [esp + 0xa68], 0xffffffff
call fcn.10007f50
mov ecx, dword [esp + 0xa60]
mov eax, dword [esp + 0x50]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xa64
ret