Function at 0x47a700
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488803
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4a3350]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x154], 0
push 0
push 0x49bc14
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x158], edi
mov byte [edi], 0
call fcn.00406980
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0
movq qword [ebp - 0x14c], xmm0
lea ecx, [ebp - 0x14c]
push 0
mov dword [ebp - 0x154], 1
mov dword [ebp - 0x148], 0
call fcn.0046a570
mov ebx, eax
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
jne 0x47a7eb
xor ecx, ecx
jmp 0x47a7fd
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47a7f4
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x144]
call fcn.00406980
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 2
push eax
push dword [ebx + 4]
lea ecx, [ebp - 0x14c]
push ebx
call fcn.0046a850
mov ecx, eax
mov dword [ebp - 0x148], 1
mov dword [ebx + 4], ecx
push 0x104
mov eax, dword [ecx + 4]
mov dword [eax], ecx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [ebp - 0x114], 0
jne 0x47a85d
xor ecx, ecx
jmp 0x47a86f
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47a866
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x144]
call fcn.00406980
push 1
push 0x48ae60
lea ecx, [ebp - 0x144]
call fcn.00406670
lea eax, [ebp - 0x144]
push eax
push dword [ebx + 4]
lea ecx, [ebp - 0x14c]
push ebx
call fcn.0046a850
mov ecx, eax
mov dword [ebp - 0x148], 2
mov dword [ebx + 4], ecx
push 0
push 0x26
mov eax, dword [ecx + 4]
mov dword [eax], ecx
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp byte [ebp - 0x114], 0
jne 0x47a8de
xor ecx, ecx
jmp 0x47a8f0
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47a8e7
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x144]
call fcn.00406980
push 1
push 0x48ae60
lea ecx, [ebp - 0x144]
call fcn.00406670
lea eax, [ebp - 0x144]
push eax
push dword [ebx + 4]
lea ecx, [ebp - 0x14c]
push ebx
call fcn.0046a850
mov ecx, eax
mov dword [ebp - 0x148], 3
mov dword [ebx + 4], ecx
mov eax, dword [ecx + 4]
mov dword [eax], ecx
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
mov esi, dword [ebx]
mov byte [ebp - 4], 3
cmp esi, ebx
je 0x47aa6c
jmp 0x47a970
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
jb 0x47a97b
mov edx, dword [edx]
cmp byte [edx], 0
jne 0x47a984
xor ecx, ecx
jmp 0x47a999
mov ecx, edx
lea edi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47a990
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x12c]
call fcn.00406980
cmp dword [ebp - 0x118], 0x10
lea ecx, [ebp - 0x12c]
lea edx, [ebp - 0x114]
cmovae ecx, dword [ebp - 0x12c]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x47a9c0
push 7
push str.log.txt
lea ecx, [ebp - 0x12c]
call fcn.00406670
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push 0x48b778
cmovae eax, dword [ebp - 0x12c]
push eax
call fcn.00425d2b
mov edi, eax
add esp, 8
test edi, edi
je 0x47aa1b
push 0
push 0
push edi
call fcn.00425e14
push edi
call fcn.00423755
add esp, 0x10
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x47aa3f
test al, 0x10
je 0x47aa4b
mov esi, dword [esi]
cmp esi, ebx
jne 0x47a970
jmp 0x47aa66
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [ebp - 0x150]
cmp byte [ebp - 0x114], 0
jne 0x47aa79
xor ecx, ecx
jmp 0x47aa8b
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47aa82
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
mov ecx, edi
push eax
call fcn.00406670
cmp dword [ebp - 0x118], 0x10
jb 0x47aab1
push dword [ebp - 0x12c]
call fcn.004235a4
add esp, 4
cmp dword [ebp - 0x130], 0x10
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
jb 0x47aae3
push dword [ebp - 0x144]
call fcn.004235a4
add esp, 4
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
call fcn.0046a5b0
push dword [ebp - 0x14c]
call fcn.004235a4
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret