Function at 0x40b24a
Capabilities:
Check for time delay via gettickcount
Check if file exists
Delete file
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c4
call fcn.0050d9b0
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov bl, dl
test edi, edi
jne 0x40b273
xor al, al
jmp 0x40b807
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40b26c
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push esi
push eax
call fcn.005091d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0xc38], ax
lea eax, [ebp - 0xc36]
push 0x206
push esi
push eax
call fcn.005091d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa30], ax
lea eax, [ebp - 0xa2e]
push 0x206
push esi
push eax
call fcn.005091d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push 0x206
push esi
push eax
call fcn.005091d0
add esp, 0xc
test bl, bl
je 0x40b695
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x828]
xor ebx, ebx
push ebx
push 0x26
push eax
push ebx
call esi
push ebx
push 0x24
lea eax, [ebp - 0xc38]
push eax
push ebx
call esi
push ebx
push 8
lea eax, [ebp - 0xa30]
push eax
push ebx
call esi
push ebx
push 0x1a
lea eax, [ebp - 0x210]
push eax
push ebx
call esi
lea eax, [ebp - 0x210]
mov byte [ebp - 0x10c1], bl
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push eax
push edi
call ebx
test eax, eax
je 0x40b35d
mov byte [ebp - 0x10c1], 1
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x10a8]
call fcn.004058f0
mov esi, 0x53fe1c
push esi
call fcn.004049e1
pop ecx
push eax
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x10a8]
call fcn.0040bcec
push eax
xor esi, esi
lea eax, [ebp - 0x1078]
push esi
push eax
lea ecx, [ebp - 0x10a8]
call fcn.004075ee
push eax
lea ecx, [ebp - 0x10a8]
call fcn.004075c9
push esi
push 1
lea ecx, [ebp - 0x1078]
call fcn.0040536f
cmp dword [ebp - 0x1094], 8
mov eax, dword [ebp - 0x10a8]
jae 0x40b3cf
lea eax, [ebp - 0x10a8]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
push eax
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0xa30]
push eax
lea ecx, [ebp - 0x1060]
call fcn.004058f0
and dword [ebp - 0x10b0], 0
xor eax, eax
push 0x53fe1c
mov dword [ebp - 0x10ac], 7
mov word [ebp - 0x10c0], ax
call fcn.004049e1
pop ecx
push eax
push 0x53fe1c
call fcn.004049e1
pop ecx
push eax
push 0x53fe1c
call fcn.004049e1
pop ecx
push eax
push 0
push 0x53fe1c
lea ecx, [ebp - 0x1060]
call fcn.00407878
inc eax
lea ecx, [ebp - 0x1060]
push eax
push 0x53fe1c
call fcn.00407878
inc eax
lea ecx, [ebp - 0x1060]
push eax
push 0x53fe1c
call fcn.00407878
push eax
push 0
lea eax, [ebp - 0x1078]
push eax
lea ecx, [ebp - 0x1060]
call fcn.004075ee
push eax
lea ecx, [ebp - 0x1060]
call fcn.004075c9
push 0
push 1
lea ecx, [ebp - 0x1078]
call fcn.0040536f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x61e]
push eax
call fcn.005091d0
mov eax, dword [ebp - 0x1060]
add esp, 0xc
cmp dword [ebp - 0x104c], 8
jae 0x40b4c8
lea eax, [ebp - 0x1060]
push eax
lea eax, [ebp - 0x620]
push eax
call esi
cmp byte [ebp - 0x10c1], 0
jne 0x40b4f8
lea eax, [ebp - 0x620]
push eax
push edi
call ebx
test eax, eax
jne 0x40b4f8
mov ecx, edi
call fcn.0040b19c
test eax, eax
jne 0x40b664
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x1048], ax
lea eax, [ebp - 0x1046]
push eax
call fcn.005091d0
add esp, 0xc
mov esi, 0x53fe1c
push esi
call fcn.004049e1
pop ecx
push eax
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x1060]
call fcn.0040bcec
mov ecx, dword [ebp - 0x1050]
mov esi, eax
dec ecx
lea eax, [ebp - 0x1078]
push ecx
lea ecx, [esi + 1]
push ecx
push eax
lea ecx, [ebp - 0x1060]
call fcn.004075ee
push eax
lea ecx, [ebp - 0x10c0]
call fcn.004075c9
push 0
push 1
lea ecx, [ebp - 0x1078]
call fcn.0040536f
push esi
xor esi, esi
lea eax, [ebp - 0x1078]
push esi
push eax
lea ecx, [ebp - 0x1060]
call fcn.004075ee
push eax
lea ecx, [ebp - 0x1060]
call fcn.004075c9
push esi
push 1
lea ecx, [ebp - 0x1078]
call fcn.0040536f
cmp dword [ebp - 0x104c], 8
mov eax, dword [ebp - 0x1060]
jae 0x40b5b1
lea eax, [ebp - 0x1060]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
push eax
lea eax, [ebp - 0x1048]
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xe40], ax
lea eax, [ebp - 0xe3e]
push eax
call fcn.005091d0
mov eax, dword [ebp - 0x10c0]
add esp, 0xc
cmp dword [ebp - 0x10ac], 8
jae 0x40b5f4
lea eax, [ebp - 0x10c0]
push eax
lea eax, [ebp - 0xe40]
push eax
call esi
lea eax, [ebp - 0x828]
push eax
push edi
call ebx
test eax, eax
jne 0x40b664
lea eax, [ebp - 0xc38]
push eax
push edi
call ebx
test eax, eax
jne 0x40b664
lea eax, [ebp - 0x1048]
push eax
push edi
call ebx
test eax, eax
je 0x40b636
lea eax, [ebp - 0xe40]
push eax
push edi
call ebx
test eax, eax
je 0x40b664
xor ebx, ebx
lea ecx, [ebp - 0x10c0]
push ebx
push 1
call fcn.0040536f
push ebx
push 1
lea ecx, [ebp - 0x1060]
call fcn.0040536f
push ebx
push 1
lea ecx, [ebp - 0x10a8]
call fcn.0040536f
jmp 0x40b697
xor ebx, ebx
lea ecx, [ebp - 0x10c0]
push ebx
push 1
call fcn.0040536f
push ebx
push 1
lea ecx, [ebp - 0x1060]
call fcn.0040536f
push ebx
push 1
lea ecx, [ebp - 0x10a8]
call fcn.0040536f
jmp 0x40b26c
xor ebx, ebx
xor eax, eax
push 0x206
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push ebx
push eax
call fcn.005091d0
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40b6ba
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x40b6dd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
push 0x540420
jmp 0x40b6ea
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
push str._s_d.tmp
push 0xffffffffffffffff
mov esi, 0x104
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.005038e8
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x418]
add esp, 0x18
push eax
call edi
push ebx
push 0x4000080
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40b26c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x418]
push eax
call edi
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x1090]
call fcn.004058f0
mov edi, 0x53fe1c
push edi
call fcn.004049e1
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x1090]
call fcn.00407878
push dword [ebp - 0x1080]
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x1078]
push ecx
push eax
lea ecx, [ebp - 0x1090]
call fcn.004075ee
push eax
lea ecx, [ebp - 0x1090]
call fcn.004075c9
push ebx
push 1
lea ecx, [ebp - 0x1078]
call fcn.0040536f
cmp dword [ebp - 0x107c], 8
mov eax, dword [ebp - 0x1090]
jae 0x40b7c2
lea eax, [ebp - 0x1090]
push eax
push str.LocalVirtualStore
lea eax, [ebp - 0x210]
push eax
push str._s_s_s
push 0xffffffffffffffff
push esi
push eax
call fcn.005038e8
add esp, 0x1c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
lea ecx, [ebp - 0x1090]
neg ebx
sbb bl, bl
xor eax, eax
push eax
push 1
inc bl
call fcn.0040536f
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret