Function at 0x46b800
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 0x46b8eb
xor ecx, ecx
jmp 0x46b8fd
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46b8f4
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 0x46b95d
xor ecx, ecx
jmp 0x46b96f
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46b966
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 0x46b9de
xor ecx, ecx
jmp 0x46b9f0
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46b9e7
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
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [ebp - 0x114], 0
jne 0x46ba5e
xor ecx, ecx
jmp 0x46ba70
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46ba67
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], 4
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 0x46bbec
jmp 0x46baf0
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
jb 0x46bafb
mov edx, dword [edx]
cmp byte [edx], 0
jne 0x46bb04
xor ecx, ecx
jmp 0x46bb19
mov ecx, edx
lea edi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46bb10
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 0x46bb40
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 0x46bb9b
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 0x46bbbf
test al, 0x10
je 0x46bbcb
mov esi, dword [esi]
cmp esi, ebx
jne 0x46baf0
jmp 0x46bbe6
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 0x46bbf9
xor ecx, ecx
jmp 0x46bc0b
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46bc02
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
mov ecx, edi
push eax
call fcn.00406670
cmp dword [ebp - 0x118], 0x10
jb 0x46bc31
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 0x46bc63
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 4