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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10189bce
push eax
mov eax, dword [0x10201328]
mov dword fs:[0], esp
sub esp, 0x844
push esi
mov esi, dword [esp + 0x858]
push edi
xor edi, edi
cmp eax, edi
je 0x1000a81c
mov eax, dword [esi + 4]
push eax
push str.DecryptMailDoc_arrayIN.GetSize__d_
push str.MailSafeDoc
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x14
cmp dword [esi + 4], edi
jne 0x1000a83a
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x844]
mov dword fs:[0], ecx
add esp, 0x850
ret
cmp dword [0x10201328], edi
je 0x1000a863
mov eax, dword [esp + 0x868]
push eax
push str.DecryptMailDoc_dwUserID__lu_
push str.MailPolicy
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x14
lea ecx, [esp + 0x50]
call fcn.10007450
mov ecx, dword [esp + 0x874]
mov eax, dword [esp + 0x868]
lea edx, [esp + 0x50]
push ecx
push edx
push eax
mov dword [esp + 0x860], edi
call fcn.1000c0d0
add esp, 0xc
test eax, eax
jne 0x1000a8c1
lea ecx, [esp + 0x50]
mov dword [esp + 0x854], 0xffffffff
call fcn.100074e0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x844]
mov dword fs:[0], ecx
add esp, 0x850
ret
push ebx
push ebp
push 1
call fcn.1004c650
add esp, 4
lea ecx, [esp + 0xa0]
mov dword [esp + 0x50], eax
push 0xffffffffffffffff
call fcn.10029d10
mov ecx, dword [esp + 0x878]
mov ebx, dword [esp + 0x868]
push 0xffffffffffffffff
push edi
mov dword [ecx], edi
mov ecx, ebx
mov byte [esp + 0x864], 1
mov dword [esp + 0x50], edi
call fcn.1000ce10
mov edi, dword [ebx + 4]
mov eax, dword [esi + 4]
mov edx, edi
push 0xffffffffffffffff
add edx, eax
mov ecx, ebx
push edx
call fcn.1000ce10
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 0x1000a943
lea ebx, [eax + 1]
mov eax, ebp
mov ecx, edi
push eax
add ebp, 0xc
add edi, 0xc
call fcn.1000cf90
dec ebx
jne 0x1000a930
mov edx, dword [esp + 0x86c]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.100c0140
add esp, 8
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
mov byte [esp + 0x85c], 2
mov dword [esp + 0x40], ebx
jle 0x1000afda
xor ebp, ebp
jmp 0x1000a977
xor ebx, ebx
mov ecx, dword [esi]
mov eax, dword [ecx + ebp + 8]
lea ecx, [esp + 0x58]
push eax
call fcn.10007e70
mov edi, eax
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x1000ab66
mov edx, dword [esi]
mov eax, dword [edx + ebp + 8]
push eax
call fcn.1004c3d0
add esp, 4
test eax, eax
je 0x1000ab66
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
mov eax, dword [eax + ebp + 4]
push eax
push ecx
call fcn.10054580
add esp, 8
cmp edi, ebx
mov byte [esp + 0x85c], 3
jne 0x1000a9ea
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.100f0030
add esp, 0x28
test eax, eax
jne 0x1000ab55
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2c6]
mov word [esp + 0x2c4], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xbe]
mov word [esp + 0xbc], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi]
lea ecx, [esp + 0xbc]
lea edx, [esp + 0x2c4]
push ecx
mov eax, dword [eax + ebp + 8]
push edx
push ebx
push ebx
push eax
call fcn.1005fcbf
add esp, 0x14
lea ecx, [esp + 0x10]
push 0x101ec534
call fcn.10076d80
mov edi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [esp + 0xbc]
mov byte [esp + 0x85c], 4
push eax
add edi, ebp
call ebx
mov ecx, dword [edi + 4]
push eax
push ecx
lea edx, [esp + 0x1c]
push str._s__d_s
push edx
call fcn.1007a4a0
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
push ecx
mov eax, dword [eax + ebp + 4]
push eax
call fcn.10054eb0
add esp, 0x1c
test eax, eax
jne 0x1000aad0
mov edi, dword [esi]
lea edx, [esp + 0xbc]
push edx
add edi, ebp
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.1007a4a0
mov edx, dword [esi]
mov ecx, dword [esp + 0x24]
push ecx
mov eax, dword [edx + ebp + 4]
push eax
call fcn.10054eb0
add esp, 0x1c
test eax, eax
je 0x1000ab44
mov edx, dword [esi]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x878]
mov eax, dword [edx + ebp + 8]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x878]
push ecx
mov ecx, dword [esp + 0x878]
push edx
mov edx, dword [esp + 0x20]
push ecx
push eax
push edx
call fcn.1000c2b0
add esp, 0x1c
test eax, eax
je 0x1000ab23
mov ecx, dword [esp + 0x868]
lea eax, [esp + 0x10]
push eax
mov edx, dword [ecx]
lea ecx, [edx + ebp + 4]
call fcn.100776b0
jmp 0x1000ab37
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + ebp + 4]
push eax
push ecx
call fcn.10054eb0
add esp, 8
mov edx, dword [esp + 0x878]
mov dword [edx], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x85c], 3
call fcn.10077520
mov byte [esp + 0x85c], 2
lea ecx, [esp + 0x2c]
jmp 0x1000afbc
cmp edi, ebx
je 0x1000afc1
mov eax, dword [esi]
lea ecx, [esp + 0x24]
mov eax, dword [eax + ebp + 4]
push eax
push ecx
call fcn.10054580
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
mov byte [esp + 0x88c], 5
call fcn.100f0030
add esp, 0x30
cmp eax, 3
jne 0x1000afb0
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x4cd]
mov byte [esp + 0x4cc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push 0x80
push 3
push ebx
stosb byte es:[edi], al
mov eax, dword [esp + 0x34]
push 5
push closesocket
push eax
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000adff
mov ecx, dword [esp + 0x874]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x4d0]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
push edi
mov dword [esp + 0x44], ebx
call fcn.1000b7c0
add esp, 0x14
lea edx, [esp + 0x44]
mov ebx, eax
mov dword [esp + 0x44], 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], eax
call fcn.10089ed0
lea eax, [esp + 0x14]
mov byte [esp + 0x85c], 6
push eax
push edi
call fcn.100f55c0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1000ae42
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x1000ae79
push 0x101ec534
lea ecx, [esp + 0x24]
call fcn.10076d80
mov edi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x85c], 7
add edi, ebp
call ebx
mov ecx, dword [edi + 4]
push eax
push ecx
lea edx, [esp + 0x28]
push 0x101c2ecc
push edx
call fcn.1007a4a0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.10054580
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
push 1
xor edi, edi
push 2
push edi
push edx
push eax
mov byte [esp + 0x888], 8
call fcn.100f31a0
add esp, 0x2c
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x54], eax
je 0x1000aed7
push 0x101ec534
lea ecx, [esp + 0x1c]
call fcn.10076d80
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
push ecx
push edx
lea ecx, [esp + 0x60]
mov byte [esp + 0x864], 9
call fcn.10007f40
test eax, eax
je 0x1000ad49
mov eax, dword [esi]
mov ecx, dword [eax + ebp + 8]
push ecx
call ebx
push eax
push 1
call fcn.10017640
add esp, 4
lea edx, [esp + 0x20]
push eax
push str._s_backup_d__s
push edx
call fcn.1007a4a0
mov eax, dword [esi]
mov ecx, dword [esp + 0x2c]
push ecx
mov eax, dword [eax + ebp + 4]
push eax
call fcn.10054eb0
add esp, 0x1c
test eax, eax
je 0x1000ad49
mov edi, 1
mov eax, dword [esp + 0x868]
lea edx, [esp + 0x20]
push edx
mov ecx, dword [eax]
lea ecx, [ecx + ebp + 4]
call fcn.100776b0
test edi, edi
jne 0x1000ad6d
lea ecx, [esp + 0x18]
call fcn.10077290
lea ecx, [esp + 0x14]
xor ebx, ebx
call fcn.1008a0d0
test eax, eax
jbe 0x1000ad87
lea ecx, [esp + 0x14]
call fcn.1008a7d0
mov ebx, eax
mov edx, dword [esi]
mov ecx, dword [esp + 0x28]
mov eax, dword [edx + ebp + 8]
lea edx, [esp + 0x4cc]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
push eax
push 0xf
mov ecx, 0x101ec6e0
call fcn.1001a460
mov eax, dword [0x10201328]
test eax, eax
je 0x1000addc
mov eax, dword [esi]
mov edx, dword [esp + 0x18]
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 0x10200a94
call fcn.1008b760
add esp, 0x18
mov edx, dword [esp + 0x878]
lea ecx, [esp + 0x18]
mov byte [esp + 0x85c], 8
mov dword [edx], 1
call fcn.10077520
jmp 0x1000af64
cmp dword [0x10201328], ebx
je 0x1000af97
mov edi, dword [esi]
push 0x1cf
add edi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x20]
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 0x10200a94
call fcn.1008b760
add esp, 0x20
jmp 0x1000af97
mov eax, dword [0x10201328]
test eax, eax
je 0x1000af86
mov edx, dword [esi]
mov ecx, dword [esp + 0x1c]
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 0x10200a94
call fcn.1008b760
add esp, 0x18
jmp 0x1000af86
mov eax, dword [0x10201328]
test eax, eax
je 0x1000aeac
mov edx, dword [esi]
push ecx
mov ecx, dword [esp + 0x20]
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 0x10200a94
call fcn.1008b760
mov ecx, dword [esp + 0x4c]
add esp, 0x1c
mov edx, dword [esi]
mov eax, dword [edx + ebp + 8]
mov edx, dword [esp + 0x870]
push edx
push 0
push 2
push ecx
mov ecx, dword [esp + 0x87c]
push ecx
push eax
mov ecx, 0x101ec698
call fcn.10015170
jmp 0x1000af86
lea edx, [esp + 0x38]
lea eax, [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
call fcn.100efb50
mov ebx, eax
mov eax, dword [0x10201328]
add esp, 8
cmp eax, edi
je 0x1000af3b
mov edi, dword [esi]
add edi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push 0
push 0
call fcn.100efb50
mov edx, dword [edi + 8]
add esp, 8
push eax
mov eax, dword [esp + 0x28]
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 0x10200a94
call fcn.1008b760
add esp, 0x24
mov ecx, dword [esi]
mov edx, dword [esp + 0x870]
push edx
mov edx, dword [esp + 0x870]
mov eax, dword [ecx + ebp + 8]
mov ecx, dword [esp + 0x40]
push ecx
push 2
push ebx
push edx
push eax
mov ecx, 0x101ec698
call fcn.10015170
lea ecx, [esp + 0x34]
mov byte [esp + 0x85c], 7
call fcn.10077520
lea ecx, [esp + 0x20]
mov byte [esp + 0x85c], 6
call fcn.10077520
lea ecx, [esp + 0x14]
mov byte [esp + 0x85c], 5
call fcn.1008a030
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1000afb0
push eax
call fcn.1017c36b
add esp, 4
mov dword [esp + 0x28], 0
mov byte [esp + 0x85c], 2
lea ecx, [esp + 0x24]
call fcn.10077520
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 4]
inc eax
add ebp, 0xc
cmp eax, ecx
mov dword [esp + 0x40], eax
jl 0x1000a975
xor ebx, ebx
mov eax, dword [esp + 0x878]
pop ebp
mov ecx, dword [eax]
cmp ecx, ebx
pop ebx
je 0x1000aff1
mov dword [esp + 0x40], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x854], 1
call fcn.10077520
lea ecx, [esp + 0x98]
mov byte [esp + 0x854], 0
call fcn.10029e70
lea ecx, [esp + 0x50]
mov dword [esp + 0x854], 0xffffffff
call fcn.100074e0
mov ecx, dword [esp + 0x84c]
mov eax, dword [esp + 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x850
ret