Function at 0x40c2df
Capabilities:
Check for time delay via gettickcount
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push 0x402e60
mov byte [ebp - 8], bl
call fcn.00407fab
test al, al
jne 0x40c55f
push 0x402e50
mov ecx, esi
call fcn.00407fab
test al, al
jne 0x40c55f
push 0x402e6c
mov ecx, esi
call fcn.00407fab
test al, al
je 0x40c56a
cmp dword [esi + 0x60], 0xffffffff
je 0x40c346
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x64]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x1388
jbe 0x40c35b
mov dl, 1
mov ecx, esi
call fcn.0040ac1b
mov dword [esi + 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x64], eax
cmp dword [esi + 0x60], 0xffffffff
je 0x40c36b
test byte [esi + 0x60], 0x10
jne 0x40c55f
mov ecx, esi
call fcn.0040790c
cmp eax, 0x80
je 0x40c55f
lea ecx, [ebp - 0x30]
call fcn.004067af
mov eax, ebx
mov ecx, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call fcn.004079ea
test eax, eax
js 0x40c554
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x40c48c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0xea60
cmp eax, dword [0x410c6c]
jae 0x40c3dc
mov edx, edi
mov ecx, 0x410c60
call fcn.0040678c
test al, al
je 0x40c3dc
mov edi, dword [0x410c5c]
mov dword [ebp - 4], edi
jmp 0x40c493
lea eax, [ebp - 0x14]
mov edx, 0x402b40
push eax
push edi
mov ecx, SysReAllocStringLen
call fcn.0040c23d
test eax, eax
je 0x40c43a
lea eax, [ebp - 0x14]
mov edx, 0x402bb0
push eax
push edi
mov ecx, SysReAllocStringLen
call fcn.0040c23d
mov edi, eax
test edi, edi
je 0x40c43a
mov ecx, dword [ebp - 0x30]
call fcn.004073f0
cmp eax, 0xffffffff
je 0x40c424
mov ecx, eax
call fcn.0040bf08
jmp 0x40c43d
test edi, edi
jle 0x40c433
movzx edi, di
or edi, 0x80070000
test edi, edi
jns 0x40c43a
mov edi, dword [ebp - 0x14]
jmp 0x40c3d4
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x30]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 5
pop ecx
cmp eax, ecx
jae 0x40c490
push 0x22
pop eax
push 0xffffffffffffffff
push dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x410c60
mov word [ebp - 0x1c], ax
call fcn.004068ca
mov edi, dword [ebp - 4]
mov dword [0x410c5c], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x24]
mov dword [0x410c6c], eax
call fcn.00406a9c
jmp 0x40c493
mov edi, ebx
jmp 0x40c493
mov edi, dword [ebp - 4]
mov eax, edi
shr eax, 3
and al, 1
mov dword [ebp - 8], eax
jne 0x40c554
test byte [ebp - 4], 1
je 0x40c520
push 0x10
mov ecx, esi
call fcn.00407ad1
test al, al
je 0x40c520
lea ecx, [ebp - 0x24]
call fcn.004067af
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push ebx
call fcn.0040775d
test eax, eax
js 0x40c516
push 0x402ef0
lea ecx, [ebp - 0x24]
call fcn.00406eb2
test eax, eax
jns 0x40c516
push 0x402ed0
lea ecx, [ebp - 0x24]
call fcn.00406eb2
test eax, eax
jns 0x40c516
push 0x402eb0
lea ecx, [ebp - 0x24]
call fcn.00406eb2
test eax, eax
jns 0x40c516
push 0x402e90
lea ecx, [ebp - 0x24]
call fcn.00406eb2
test eax, eax
jns 0x40c516
mov byte [ebp - 8], 1
lea ecx, [ebp - 0x24]
call fcn.00406a9c
jmp 0x40c554
cmp byte [0x410c85], bl
je 0x40c554
lea ecx, [ebp - 0x3c]
call fcn.004067af
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.004079ea
test eax, eax
js 0x40c549
mov ecx, dword [ebp - 0x3c]
call fcn.0040c818
mov bl, al
lea ecx, [ebp - 0x3c]
call fcn.00406a9c
mov byte [ebp - 8], bl
lea ecx, [ebp - 0x30]
call fcn.00406a9c
mov ebx, dword [ebp - 8]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, ebx
mov dword [ebp - 0x10], ebx
push 0x402e60
mov ecx, esi
mov dword [ebp - 0xc], edi
call fcn.00407fab
test al, al
je 0x40c58a
push 9
pop edi
jmp 0x40c80e
push 0x402e50
mov ecx, esi
call fcn.00407fab
test al, al
je 0x40c59e
push 8
jmp 0x40c584
push 0x402e6c
mov ecx, esi
call fcn.00407fab
lea ecx, [ebp - 0x3c]
test al, al
jne 0x40c5df
call fcn.004067af
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.00407f07
test eax, eax
js 0x40c7fd
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0xc]
call fcn.0040c087
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x40c7fd
call fcn.004067af
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.004079ea
test eax, eax
js 0x40c7fd
lea ecx, [ebp - 0x30]
call fcn.004067af
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00407fd9
test eax, eax
js 0x40c6a9
push dword [ebp - 0x30]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40c6a9
lea ecx, [ebp - 0x30]
call fcn.0040ce16
mov esi, eax
test esi, esi
jns 0x40c6a9
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push 0x403564
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x40c699
cmp esi, 0x80070002
jne 0x40c660
lea ecx, [ebp - 0x24]
call fcn.004067af
push 0x402c34
jmp 0x40c675
cmp esi, 0x800700a1
jne 0x40c699
lea ecx, [ebp - 0x24]
call fcn.004067af
push 0x402c50
push dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push 0x402c44
push eax
call fcn.00406bac
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.0040ce16
lea ecx, [ebp - 0x24]
call fcn.00406a9c
lea ecx, [ebp - 0x30]
call fcn.0040b7dd
lea ecx, [ebp - 0x3c]
jmp 0x40c557
mov esi, dword [ebp - 0x3c]
mov ecx, esi
call fcn.00407351
cmp eax, 0xffffffff
je 0x40c6ca
mov ecx, eax
call fcn.0040becc
mov edi, eax
test edi, edi
je 0x40c6ca
mov dword [ebp - 0x10], ebx
jmp 0x40c6e4
lea edx, [ebp - 0xc]
mov ecx, esi
call fcn.0040c12e
mov edi, dword [ebp - 0xc]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
js 0x40c7f5
mov eax, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
test esi, esi
je 0x40c7cf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0xea60
cmp eax, dword [0x410c6c]
jae 0x40c724
mov edx, esi
mov ecx, 0x410c60
call fcn.0040678c
test al, al
je 0x40c724
mov eax, dword [0x410c5c]
mov dword [ebp - 4], eax
jmp 0x40c7cf
lea eax, [ebp - 0x18]
mov edx, 0x402b40
push eax
push esi
mov ecx, SysReAllocStringLen
call fcn.0040c23d
test eax, eax
je 0x40c784
lea eax, [ebp - 0x18]
mov edx, 0x402bb0
push eax
push esi
mov ecx, SysReAllocStringLen
call fcn.0040c23d
mov dword [ebp - 4], eax
test eax, eax
je 0x40c784
mov ecx, esi
call fcn.004073f0
cmp eax, 0xffffffff
je 0x40c76c
mov ecx, eax
call fcn.0040bf08
jmp 0x40c787
mov eax, dword [ebp - 4]
test eax, eax
jle 0x40c77d
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x40c784
mov eax, dword [ebp - 0x18]
jmp 0x40c71c
mov eax, dword [ebp - 0x18]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 5
pop ecx
cmp eax, ecx
jae 0x40c7cf
push 0x22
pop eax
push 0xffffffffffffffff
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x24]
push esi
mov dword [ebp - 0x24], 0x410c60
mov word [ebp - 0x1c], ax
call fcn.004068ca
mov eax, dword [ebp - 4]
mov dword [0x410c5c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x24]
mov dword [0x410c6c], eax
call fcn.00406a9c
mov ecx, esi
call fcn.004073f0
cmp eax, 0xffffffff
je 0x40c7e6
mov ecx, eax
call fcn.0040bf08
and al, 1
jne 0x40c7f5
test byte [ebp - 4], 1
jne 0x40c7f5
mov dword [ebp - 0x10], 0xc00d0fda
mov edi, ebx
lea ecx, [ebp - 0x30]
call fcn.00406a9c
lea ecx, [ebp - 0x3c]
call fcn.00406a9c
cmp dword [ebp - 0x10], ebx
jl 0x40c55c
test edi, edi
setne bl
jmp 0x40c55f