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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1024b3ee
push eax
mov eax, dword [0x102f7658]
mov dword fs:[0], esp
sub esp, 0xa54
push ebx
xor ebx, ebx
push esi
mov esi, dword [esp + 0xa6c]
cmp eax, ebx
je 0x1000bf2c
mov eax, dword [esi + 4]
push eax
push str.DecryptMailDoc_arrayIN.GetSize__d_
push str.MailSafeDoc
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
cmp dword [esi + 4], ebx
jne 0x1000bf4a
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa54]
mov dword fs:[0], ecx
add esp, 0xa60
ret
cmp dword [0x102f7658], ebx
je 0x1000bf73
mov eax, dword [esp + 0xa78]
push eax
push str.DecryptMailDoc_dwUserID__lu_
push str.MailPolicy
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
lea ecx, [esp + 0x54]
call fcn.10007510
mov ecx, dword [esp + 0xa84]
mov eax, dword [esp + 0xa78]
lea edx, [esp + 0x54]
push ecx
push edx
push eax
mov dword [esp + 0xa70], ebx
call fcn.1000d8a0
add esp, 0xc
test eax, eax
jne 0x1000bfd1
lea ecx, [esp + 0x54]
mov dword [esp + 0xa64], 0xffffffff
call fcn.100075a0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa54]
mov dword fs:[0], ecx
add esp, 0xa60
ret
push ebp
push edi
push 1
call fcn.10056140
mov dword [esp + 0x58], eax
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x2d0]
mov dword [esp + 0x2cc], ebx
push 0xffffffffffffffff
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2d0]
push ebx
push ecx
call fcn.10055970
add esp, 0x10
lea ecx, [esp + 0xa4]
mov dword [esp + 0x34], eax
push 0xffffffffffffffff
call fcn.1002f9c0
mov edx, dword [esp + 0xa88]
push 0xffffffffffffffff
mov dword [esp + 0x50], ebx
push ebx
mov dword [edx], ebx
mov ebx, dword [esp + 0xa80]
mov ecx, ebx
mov byte [esp + 0xa74], 1
call fcn.1000ec10
mov edi, dword [ebx + 4]
mov ecx, dword [esi + 4]
mov eax, edi
push 0xffffffffffffffff
add eax, ecx
mov ecx, ebx
push eax
call fcn.1000ec10
mov edx, dword [ebx]
mov eax, dword [esi + 4]
mov ebp, dword [esi]
lea ecx, [edi + edi*2]
lea edi, [edx + ecx*4]
mov ecx, eax
dec eax
test ecx, ecx
je 0x1000c07e
lea ebx, [eax + 1]
mov eax, ebp
mov ecx, edi
push eax
add ebp, 0xc
add edi, 0xc
call fcn.1000ed90
dec ebx
jne 0x1000c06b
mov edx, dword [esp + 0xa7c]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.10133a30
add esp, 8
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, ebp
mov byte [esp + 0xa6c], 2
mov dword [esp + 0x44], ebp
jle 0x1000c7a9
mov ecx, dword [esi]
mov eax, dword [ecx + ebp + 8]
lea ecx, [esp + 0x5c]
push eax
call fcn.10007f30
mov ebx, dword [esp + 0x54]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x30], eax
je 0x1000c0ea
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1000c0d9
mov edi, 1
jmp 0x1000c0ea
mov edx, dword [esi]
mov eax, dword [edx + ebp + 8]
push eax
call fcn.10055ec0
add esp, 4
mov edi, eax
mov eax, dword [0x102f7658]
test eax, eax
je 0x1000c113
mov eax, dword [esp + 0x34]
push edi
push eax
push ebx
push str.DecryptMailDoc_bDoCompressFile__lu__bDoDocTraverser__lu__bIsCompressFile__lu_
push str.MailPolicy
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x1c
test edi, edi
je 0x1000c32b
mov ecx, dword [esi]
lea edx, [esp + 0x28]
mov eax, dword [ecx + ebp + 4]
push eax
push edx
call fcn.100602d0
add esp, 8
mov eax, dword [esp + 0x30]
xor ebx, ebx
cmp eax, ebx
mov byte [esp + 0xa6c], 3
jne 0x1000c15f
mov eax, dword [esp + 0x28]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call fcn.1013e230
add esp, 0x28
test eax, eax
jne 0x1000c31a
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x4d6]
mov word [esp + 0x4d4], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xc2]
mov word [esp + 0xc0], bx
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
lea edx, [esp + 0xc0]
stosw word es:[edi], ax
mov eax, dword [ecx + ebp + 8]
lea ecx, [esp + 0x4d4]
push edx
push ecx
push ebx
push ebx
push eax
call fcn.1006bd72
add esp, 0x14
lea ecx, [esp + 0x10]
push 0x102e269c
call fcn.10082dc0
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [esp + 0xc0]
mov edi, ebp
push edx
mov byte [esp + 0xa70], 4
add edi, eax
call ebx
push eax
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x1c]
push str._s__d_s
push ecx
call fcn.100864e0
mov edx, dword [esi]
mov ecx, dword [esp + 0x24]
push ecx
mov eax, dword [edx + ebp + 4]
push eax
call fcn.10060dd0
add esp, 0x1c
test eax, eax
jne 0x1000c24d
mov ecx, dword [esi]
lea edx, [esp + 0xc0]
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.100864e0
mov edx, dword [esi]
mov ecx, dword [esp + 0x24]
push ecx
mov eax, dword [edx + ebp + 4]
push eax
call fcn.10060dd0
add esp, 0x1c
test eax, eax
je 0x1000c309
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1000c295
mov edx, dword [esi]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0xa88]
mov eax, dword [edx + ebp + 8]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0xa88]
push ecx
mov ecx, dword [esp + 0xa88]
push edx
mov edx, dword [esp + 0x20]
push ecx
push eax
lea eax, [esp + 0x2e0]
push edx
push eax
call fcn.1000e490
add esp, 0x20
jmp 0x1000c2cb
mov ecx, dword [esi]
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0xa88]
mov eax, dword [ecx + ebp + 8]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0xa88]
push edx
mov edx, dword [esp + 0xa88]
push ecx
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
call fcn.1000da80
add esp, 0x1c
test eax, eax
je 0x1000c2e8
mov edx, dword [esp + 0xa78]
lea ecx, [esp + 0x10]
push ecx
mov eax, dword [edx]
lea ecx, [eax + ebp + 4]
call fcn.100836f0
jmp 0x1000c2fc
mov ecx, dword [esi]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + ebp + 4]
push eax
push edx
call fcn.10060dd0
add esp, 8
mov eax, dword [esp + 0xa88]
mov dword [eax], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0xa6c], 3
call fcn.10083560
mov byte [esp + 0xa6c], 2
lea ecx, [esp + 0x28]
jmp 0x1000c78d
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1000c792
mov ecx, dword [esi]
lea edx, [esp + 0x20]
mov eax, dword [ecx + ebp + 4]
push eax
push edx
call fcn.100602d0
xor ebx, ebx
mov eax, dword [esp + 0x28]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov byte [esp + 0xa9c], 5
call fcn.1013e230
add esp, 0x30
cmp eax, 3
jne 0x1000c781
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x6dd]
mov byte [esp + 0x6dc], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
push ebx
push 0x80
push 3
stosw word es:[edi], ax
push ebx
push 5
push connect
push ecx
stosb byte es:[edi], al
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000c5cc
mov edx, dword [esp + 0xa84]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x6e0]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
push edi
mov dword [esp + 0x50], ebx
call fcn.1000cf90
add esp, 0x14
mov ebx, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], eax
call fcn.10097720
lea ecx, [esp + 0x14]
mov byte [esp + 0xa6c], 6
push ecx
push edi
call fcn.101437e0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1000c611
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x1000c648
push 0x102e269c
lea ecx, [esp + 0x28]
call fcn.10082dc0
mov edx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, ebp
mov byte [esp + 0xa6c], 7
add edi, edx
call ebx
mov edx, dword [edi + 4]
push eax
push edx
lea eax, [esp + 0x2c]
push 0x102a68e8
push eax
call fcn.100864e0
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.100602d0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
xor edi, edi
mov byte [esp + 0xa84], 8
push edi
push 1
push 2
push edi
push eax
push ecx
call fcn.101413b0
add esp, 0x30
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x58], eax
je 0x1000c6a6
push 0x102e269c
lea ecx, [esp + 0x20]
call fcn.10082dc0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xa74], 9
call fcn.10008000
test eax, eax
je 0x1000c516
mov ecx, dword [esi]
mov edx, dword [ecx + ebp + 8]
push edx
call ebx
push eax
push 1
call fcn.10019a30
add esp, 4
push eax
lea eax, [esp + 0x28]
push str._s_backup_d__s
push eax
call fcn.100864e0
mov ecx, dword [esi]
mov edx, dword [esp + 0x30]
push edx
mov eax, dword [ecx + ebp + 4]
push eax
call fcn.10060dd0
add esp, 0x1c
test eax, eax
je 0x1000c516
mov edi, 1
mov ecx, dword [esp + 0xa78]
lea eax, [esp + 0x24]
push eax
mov edx, dword [ecx]
lea ecx, [edx + ebp + 4]
call fcn.100836f0
test edi, edi
jne 0x1000c53a
lea ecx, [esp + 0x1c]
call fcn.100832d0
lea ecx, [esp + 0x14]
xor ebx, ebx
call fcn.10097920
test eax, eax
jbe 0x1000c554
lea ecx, [esp + 0x14]
call fcn.10098020
mov ebx, eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x6dc]
mov eax, dword [eax + ebp + 8]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
push eax
push 0xf
mov ecx, 0x102e2850
call fcn.1001c8f0
mov eax, dword [0x102f7658]
test eax, eax
je 0x1000c5a9
mov eax, dword [esi]
mov edx, dword [esp + 0x1c]
push edx
mov ecx, dword [eax + ebp + 8]
push ecx
push str.CMailSafeDoc::DecryptMailDoc__s_:_backup_to__s___n
push str.MailSafeDoc
push 1
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x18
mov edx, dword [esp + 0xa88]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa6c], 8
mov dword [edx], 1
call fcn.10083560
jmp 0x1000c735
cmp dword [0x102f7658], ebx
je 0x1000c768
mov eax, dword [esi]
mov edi, ebp
push 0x1e7
add edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [edi + 8]
push eax
push ecx
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_open_decrypt_file__s__failed___LastError:__d__LINE:__d__n
push str.MailSafeDoc
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x20
jmp 0x1000c768
mov eax, dword [0x102f7658]
test eax, eax
je 0x1000c757
mov edx, dword [esi]
mov ecx, dword [esp + 0x18]
mov eax, dword [edx + ebp + 8]
push eax
push ecx
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_CheckAccessRight_failed__n
push str.MailSafeDoc
push 8
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x18
jmp 0x1000c757
mov eax, dword [0x102f7658]
test eax, eax
je 0x1000c67b
mov edx, dword [esi]
push ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx + ebp + 8]
push eax
push ecx
push str.__s__CMailSafeDoc::DecryptMailDoc__s_:_No_Access_right__Result:_lu_n
push str.MailSafeDoc
push 4
push 0x102f6dc4
call fcn.10098fb0
mov ecx, dword [esp + 0x58]
add esp, 0x1c
mov edx, dword [esi]
mov eax, dword [edx + ebp + 8]
mov edx, dword [esp + 0xa80]
push edx
push 0
push 2
push ecx
mov ecx, dword [esp + 0xa8c]
push ecx
push eax
mov ecx, 0x102e2808
call fcn.10017560
jmp 0x1000c757
lea edx, [esp + 0x48]
lea eax, [esp + 0x50]
push edx
push eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x50], edi
call fcn.1013dd40
mov ebx, eax
mov eax, dword [0x102f7658]
add esp, 8
cmp eax, edi
je 0x1000c70c
mov edx, dword [esi]
mov edi, ebp
add edi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x48]
push eax
push ecx
push 0
push 0
call fcn.1013dd40
mov edx, dword [edi + 8]
add esp, 8
push eax
mov eax, dword [esp + 0x24]
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 0x102f6dc4
call fcn.10098fb0
add esp, 0x24
mov ecx, dword [esi]
mov edx, dword [esp + 0xa80]
push edx
mov edx, dword [esp + 0xa80]
mov eax, dword [ecx + ebp + 8]
mov ecx, dword [esp + 0x54]
push ecx
push 2
push ebx
push edx
push eax
mov ecx, 0x102e2808
call fcn.10017560
lea ecx, [esp + 0x38]
mov byte [esp + 0xa6c], 7
call fcn.10083560
lea ecx, [esp + 0x24]
mov byte [esp + 0xa6c], 6
call fcn.10083560
lea ecx, [esp + 0x14]
mov byte [esp + 0xa6c], 5
call fcn.10097880
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1000c781
push eax
call fcn.1023d925
add esp, 4
mov dword [esp + 0x2c], 0
mov byte [esp + 0xa6c], 2
lea ecx, [esp + 0x20]
call fcn.10083560
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 4]
inc eax
add ebp, 0xc
cmp eax, ecx
mov dword [esp + 0x44], eax
jl 0x1000c0ac
mov eax, dword [esp + 0xa88]
pop edi
pop ebp
cmp dword [eax], 0
je 0x1000c7bf
mov dword [esp + 0x44], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0xa64], 1
call fcn.10083560
lea ecx, [esp + 0x9c]
mov byte [esp + 0xa64], 0
call fcn.1002fb20
lea ecx, [esp + 0x54]
mov dword [esp + 0xa64], 0xffffffff
call fcn.100075a0
mov ecx, dword [esp + 0xa5c]
mov eax, dword [esp + 0x44]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa60
ret