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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1025a9d2
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 0x1000f297
cmp dword [esp + 0x3ec], ebx
je 0x1000f297
mov edi, dword [esp + 0x3f0]
cmp edi, ebx
je 0x1000f297
mov esi, dword [esp + 0x3f4]
cmp esi, ebx
je 0x1000f297
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.1006c830
add esp, 8
mov eax, dword [0x1030ceb0]
mov dword [esp + 0x3e0], ebx
cmp eax, ebx
je 0x1000ee3c
mov ecx, dword [esp + 0x3f8]
mov edx, dword [esp + 0x3ec]
mov eax, dword [esp + 0x28]
push 0x633
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 0x1030c61c
call fcn.100a65e0
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 0x1000f268
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 0x1000f268
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.1000dd80
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.100a4db0
lea eax, [esp + 0x14]
mov byte [esp + 0x3e0], 1
push eax
push edi
call fcn.10137eb0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x1000f258
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x1000f13d
push 0x102f684c
lea ecx, [esp + 0x20]
call fcn.10090450
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.10093b70
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.1006c830
add esp, 0x18
mov eax, dword [esp + 0x3f8]
mov byte [esp + 0x3e0], 3
cmp eax, ebx
push ebx
je 0x1000ef94
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push 1
push 2
push ebx
push ecx
push edx
call fcn.10135a80
add esp, 0x18
neg eax
sbb eax, eax
inc eax
jmp 0x1000efa6
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call fcn.1006d160
add esp, 0xc
cmp eax, ebx
je 0x1000f195
push 0x102f684c
lea ecx, [esp + 0x1c]
call fcn.10090450
mov byte [esp + 0x3e0], 4
call esi
push eax
push ebp
lea edx, [esp + 0x20]
push str._s__d.bak
push edx
call fcn.10093b70
mov eax, dword [esp + 0x28]
push eax
push ebp
call fcn.1006d230
add esp, 0x18
test eax, eax
je 0x1000f225
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
call fcn.1006d230
add esp, 8
test eax, eax
je 0x1000f217
push 0x102f684c
lea ecx, [esp + 0x14]
call fcn.10090450
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 0x1000f076
mov ecx, dword [esp + 0x3f0]
push ecx
call fcn.10049990
add esp, 4
push eax
call esi
push eax
push 1
call fcn.1001b2f0
add esp, 4
lea edx, [esp + 0x18]
push eax
push str._s_backup_d__s
push edx
call fcn.10093b70
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push 2
push eax
push ecx
call fcn.1006d2f0
add esp, 0x20
test eax, eax
jne 0x1000f08c
mov edx, dword [esp + 0x18]
push edx
call fcn.1006d4f0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.10090960
mov eax, dword [esp + 0x3f0]
push eax
call fcn.1009d750
mov ecx, dword [esp + 0x48]
mov edi, eax
mov eax, dword [ecx]
push eax
call fcn.1009d750
add esp, 8
lea ecx, [esp + 0x14]
mov ebp, eax
call fcn.100a4fb0
test eax, eax
jbe 0x1000f0c4
lea ecx, [esp + 0x14]
call fcn.100a56b0
jmp 0x1000f0c6
xor eax, eax
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x3ec]
push 1
push ebp
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
push esi
push eax
lea eax, [esp + 0x68]
push edx
push eax
push ecx
push edi
push 0xf
mov ecx, 0x102f6a00
call fcn.1001e280
cmp dword [0x1030ceb0], ebx
je 0x1000f11f
mov edx, dword [esp + 0x10]
push edx
push esi
push str.CMailSafeDoc::DecryptFromCompressFile__s_:_backup_to__s___n
push str.MailSafeDoc
push 1
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 1
mov byte [esp + 0x3e0], 4
call fcn.10090bf0
jmp 0x1000f225
cmp dword [0x1030ceb0], ebx
je 0x1000f16c
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 0x1030c61c
call fcn.100a65e0
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, 0x102f69b8
call fcn.10018e20
jmp 0x1000f258
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], ebx
call fcn.10132410
mov esi, eax
mov eax, dword [0x1030ceb0]
add esp, 8
cmp eax, ebx
je 0x1000f1ed
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 0x1030c61c
call fcn.100a65e0
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, 0x102f69b8
call fcn.10018e20
jmp 0x1000f236
mov ecx, dword [esp + 0x18]
push ebp
push ecx
call fcn.1006d230
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x3e0], 3
call fcn.10090bf0
lea ecx, [esp + 0x20]
mov byte [esp + 0x3e0], 2
call fcn.10090bf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3e0], 1
call fcn.10090bf0
lea ecx, [esp + 0x14]
mov byte [esp + 0x3e0], bl
call fcn.100a4f10
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x1000f27d
push eax
call fcn.1024cbfa
add esp, 4
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x3e0], 0xffffffff
call fcn.10090bf0
mov eax, dword [esp + 0x3c]
jmp 0x1000f299
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