Function at 0x40f690
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x834]
sub esp, 0x834
push 0xffffffffffffffff
push 0x470b10
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x49ab20]
xor eax, ebp
mov dword [ebp + 0x830], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x83c]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.ReleaseDoc_Start_
call fcn.00414dc0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp + 0x422]
push ecx
mov word [ebp + 0x420], ax
call fcn.00451660
add esp, 0x10
push 0x104
call fcn.0041f980
push eax
lea edx, [ebp + 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x840], 0
je 0x40f731
push 1
mov ecx, ebx
call fcn.0040b130
test eax, eax
je 0x40f889
lea eax, [ebp + 0x420]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405330
push 0xb
push str.EDFAT16.eed
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00404bc0
push ecx
lea edx, [ebp + 0x420]
mov ecx, esp
mov dword [ebp - 0x20], esp
lea edi, [ebx + 0x214]
push edx
mov dword [edi], 0x41
call fcn.00405330
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.ESAFENETOUT
mov byte [ebp - 4], 1
call fcn.00405330
mov eax, dword [ebp - 0x18]
push ecx
mov dword [ebp - 0x14], esp
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], 2
call fcn.00404440
mov ecx, dword [ebp - 0x14]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
push edi
mov byte [ebp - 4], 0
call fcn.00416820
add esp, 0x10
test eax, eax
jne 0x40f890
mov edx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edx
call esi
lea eax, [ebp + 0x420]
push eax
call esi
push 0x477168
call fcn.00414dc0
push str.2150_GetSecretBoxMount
call fcn.00414dc0
add esp, 8
push 1
lea ecx, [ebp - 0x10]
push ecx
mov ecx, 0x49e48c
call fcn.0041eb80
mov esi, eax
push 0x33
lea edx, [ebp - 0x14]
push edx
mov ecx, 0x49e48c
mov byte [ebp - 4], 3
call fcn.0041eb80
mov esi, dword [esi]
mov eax, dword [eax]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f840
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f863
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f889
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40fbaf
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call edi
push eax
call fcn.00414920
add esp, 4
push 1
call edi
push eax
call fcn.004019a0
add esp, 8
call edi
push eax
call fcn.00401a90
add esp, 4
lea ecx, [ebp]
call fcn.00407050
cmp dword [esi + 0x1d4], 0x500000
push 0x206
sbb edi, edi
xor ecx, ecx
push ecx
lea edx, [ebp + 0x62a]
push edx
mov byte [ebp - 4], 4
inc edi
mov dword [ebp - 0x20], 0
mov word [ebp + 0x628], cx
call fcn.00451660
add esp, 0xc
lea eax, [esi + 0x3e]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e8a0
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40f916
mov dword [ebp - 0x14], eax
jmp 0x40f94d
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, 0x3fffffff
mov dword [ebp - 0x10], eax
jle 0x40f931
mov dword [ebp - 0x14], 0
jmp 0x40f94d
add eax, eax
call fcn.004522f0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, esp
push 3
push ecx
push edx
push eax
call fcn.00402920
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x214]
push eax
mov eax, dword [ebp - 0x14]
push eax
push ecx
lea edx, [ebp + 0x628]
push str._c:_s_x08
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
test edi, edi
je 0x40f9ca
push 0x24
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x49e48c
call fcn.0041eb80
mov ecx, dword [esi + 0x1d4]
mov eax, dword [eax]
push 0
push ecx
lea edx, [ebp + 0x628]
push edx
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 6
call fcn.00407970
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, edi
neg ecx
sbb ecx, ecx
lea edx, [ebp]
and ecx, edx
mov eax, edi
neg eax
push 0
push ecx
sbb eax, eax
and eax, 0x4071e0
push eax
lea ecx, [ebp + 0x628]
push ecx
push 0
call fcn.00423a00
add esp, 0x14
mov dword [ebp - 0x10], eax
test edi, edi
je 0x40fa06
lea ecx, [ebp]
call fcn.004070b0
jmp 0x40fa09
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x10], 0
jne 0x40fad6
push 0x477118
call fcn.00414dc0
push str.2205_ProgressCallback_error
call fcn.00414dc0
add esp, 8
push 1
lea edx, [ebp - 0x10]
push edx
mov ecx, 0x49e48c
call fcn.0041eb80
mov esi, eax
push 0x33
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x49e48c
mov byte [ebp - 4], 7
call fcn.0041eb80
mov esi, dword [esi]
mov eax, dword [eax]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40faa2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fac5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.004070a0
jmp 0x40f863
test edi, edi
je 0x40fb01
test eax, eax
je 0x40fb01
lea ecx, [ebp - 0x1c]
call fcn.0040ab90
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.004070a0
lea ecx, [ebp - 0x18]
call fcn.0040ab90
xor eax, eax
jmp 0x40fbaf
push 0x208
lea edi, [ebx + 4]
push 0
push edi
call fcn.00451660
lea ecx, [esi + 0x152]
push ecx
add esi, 0x50
push esi
lea edx, [ebp + 0x628]
push edx
push str._s_s_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
push 0x104
lea eax, [ebp + 0x628]
mov dword [ebx + 0xbd0], 1
push eax
add ebx, 0xbd4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.004070a0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fbaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x830]
xor ecx, ebp
call fcn.004522e0
add ebp, 0x834
mov esp, ebp
pop ebp
ret 8