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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10258a52
push eax
mov dword fs:[0], esp
sub esp, 0x3c8
push ebx
push ebp
mov ebp, dword [esp + 0x3e0]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
je 0x1000ef05
cmp dword [esp + 0x3ec], ebx
je 0x1000ef05
mov edi, dword [esp + 0x3f0]
cmp edi, ebx
je 0x1000ef05
mov esi, dword [esp + 0x3f4]
cmp esi, ebx
je 0x1000ef05
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.1006a8d0
add esp, 8
mov eax, dword [0x1030aa70]
mov dword [esp + 0x3e0], ebx
cmp eax, ebx
je 0x1000eaac
mov ecx, dword [esp + 0x3f8]
mov edx, dword [esp + 0x3ec]
mov eax, dword [esp + 0x28]
push 0x5d6
push ecx
push edx
push eax
push str.CMailSafeDoc::DoDecryptCompressFile_lpwszFile__s__lpwszVirtualPath__s__bNeedDecrypt__d___LINE:__d__n
push str.MailSafeDoc
push 4
push 0x1030a1dc
call fcn.100a4680
add esp, 0x20
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0xc]
push edi
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], ebx
call fcn.100088e0
cmp eax, ebx
je 0x1000eed6
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], bl
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x28]
push ebx
push 0x80
push 3
stosw word es:[edi], ax
push ebx
push 5
push connect
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000eed6
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
mov dword [esp + 0x34], ebx
mov ecx, dword [eax]
lea eax, [esp + 0x50]
push ecx
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
push edi
call fcn.1000d9f0
add esp, 0x14
lea edx, [esp + 0x40]
mov esi, eax
mov dword [esp + 0x40], ebx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], eax
call fcn.100a2e50
lea eax, [esp + 0x14]
mov byte [esp + 0x3e0], 1
push eax
push edi
call fcn.10135f50
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x1000eec6
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x1000edab
push 0x102f440c
lea ecx, [esp + 0x20]
call fcn.1008e4f0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x3e0], 2
call esi
push eax
push ebp
lea ecx, [esp + 0x24]
push str._s__d.tmp
push ecx
call fcn.10091c10
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.1006a8d0
add esp, 0x18
mov eax, dword [esp + 0x3f8]
mov byte [esp + 0x3e0], 3
cmp eax, ebx
push ebx
je 0x1000ec04
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push 1
push 2
push ebx
push ecx
push edx
call fcn.10133b20
add esp, 0x18
neg eax
sbb eax, eax
inc eax
jmp 0x1000ec16
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call fcn.1006b200
add esp, 0xc
cmp eax, ebx
je 0x1000ee03
push 0x102f440c
lea ecx, [esp + 0x1c]
call fcn.1008e4f0
mov byte [esp + 0x3e0], 4
call esi
push eax
push ebp
lea edx, [esp + 0x20]
push str._s__d.bak
push edx
call fcn.10091c10
mov eax, dword [esp + 0x28]
push eax
push ebp
call fcn.1006b2d0
add esp, 0x18
test eax, eax
je 0x1000ee93
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
call fcn.1006b2d0
add esp, 8
test eax, eax
je 0x1000ee85
push 0x102f440c
lea ecx, [esp + 0x14]
call fcn.1008e4f0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
push edx
push eax
mov byte [esp + 0x3e8], 5
call fcn.100089b0
test eax, eax
je 0x1000ece6
mov ecx, dword [esp + 0x3f0]
push ecx
call fcn.100495e0
add esp, 4
push eax
call esi
push eax
push 1
call fcn.1001af50
add esp, 4
lea edx, [esp + 0x18]
push eax
push str._s_backup_d__s
push edx
call fcn.10091c10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push 2
push eax
push ecx
call fcn.1006b390
add esp, 0x20
test eax, eax
jne 0x1000ecfc
mov edx, dword [esp + 0x18]
push edx
call fcn.1006b590
add esp, 4
lea ecx, [esp + 0x10]
call fcn.1008ea00
mov eax, dword [esp + 0x3f0]
push eax
call fcn.1009b7f0
mov ecx, dword [esp + 0x48]
mov esi, eax
mov eax, dword [ecx]
push eax
call fcn.1009b7f0
add esp, 8
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.100a3050
test eax, eax
jbe 0x1000ed34
lea ecx, [esp + 0x14]
call fcn.100a3750
jmp 0x1000ed36
xor eax, eax
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x3f0]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x1c]
push edi
push eax
lea eax, [esp + 0x64]
push edx
push eax
push ecx
push esi
push 0xf
mov ecx, 0x102f45c0
call fcn.1001dee0
cmp dword [0x1030aa70], ebx
je 0x1000ed8d
mov edx, dword [esp + 0x10]
push edx
push edi
push str.CMailSafeDoc::DecryptFromCompressFile__s_:_backup_to__s___n
push str.MailSafeDoc
push 1
push 0x1030a1dc
call fcn.100a4680
add esp, 0x18
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 1
mov byte [esp + 0x3e0], 4
call fcn.1008ec90
jmp 0x1000ee93
cmp dword [0x1030aa70], ebx
je 0x1000edda
push eax
mov eax, dword [esp + 0x3f0]
push eax
push ebp
push str.__s__CMailSafeDoc::DecryptFromCompressFile__s_:_No_Access_right__Result:_lu_n
push str.MailSafeDoc
push 4
push 0x1030a1dc
call fcn.100a4680
mov eax, dword [esp + 0x50]
add esp, 0x1c
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
push edx
mov edx, dword [esp + 0x3f0]
push ebx
push 2
push eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
push ecx
push edx
mov ecx, 0x102f4578
call fcn.10018a80
jmp 0x1000eec6
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], ebx
call fcn.101304b0
mov esi, eax
mov eax, dword [0x1030aa70]
add esp, 8
cmp eax, ebx
je 0x1000ee5b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3ec]
push edx
mov edx, dword [esp + 0x48]
push eax
push esi
push ecx
mov eax, dword [edx]
push eax
push str.__s__CMailSafeDoc::DecryptFromCompressFile__s_:_Decrypt_file_failed___ESError:__d__ESLine:__d__LastError:__d__n
push str.MailSafeDoc
push 8
push 0x1030a1dc
call fcn.100a4680
add esp, 0x24
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x38]
push edx
push eax
mov edx, dword [ecx]
mov eax, dword [esp + 0x3f4]
push 2
push esi
push edx
push eax
mov ecx, 0x102f4578
call fcn.10018a80
jmp 0x1000eea4
mov ecx, dword [esp + 0x18]
push ebp
push ecx
call fcn.1006b2d0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x3e0], 3
call fcn.1008ec90
lea ecx, [esp + 0x20]
mov byte [esp + 0x3e0], 2
call fcn.1008ec90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3e0], 1
call fcn.1008ec90
lea ecx, [esp + 0x14]
mov byte [esp + 0x3e0], bl
call fcn.100a2fb0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x1000eeeb
push eax
call fcn.1024ac9a
add esp, 4
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x3e0], 0xffffffff
call fcn.1008ec90
mov eax, dword [esp + 0x3c]
jmp 0x1000ef07
xor eax, eax
mov ecx, dword [esp + 0x3d8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3d4
ret