Function at 0x405f40
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498742
mov eax, dword fs:[0]
push eax
mov eax, 0x20dc
call fcn.004818a0
mov eax, dword [0x4b3da0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x2084], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x2082]
push ecx
call fcn.00480a10
add esp, 0xc
xor edx, edx
mov word [ebp - 0x1034], dx
push 0x7fe
push 0
lea eax, [ebp - 0x1032]
push eax
call fcn.00480a10
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x183c], cx
push 0x7fe
push 0
lea edx, [ebp - 0x183a]
push edx
call fcn.00480a10
add esp, 0xc
push 0
push 0x19
lea eax, [ebp - 0x2084]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x1038], eax
push 0
push 0x10
lea ecx, [ebp - 0x1034]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x1860], eax
push 0
push 0
lea edx, [ebp - 0x183c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x1880], eax
lea eax, [ebp - 0x2084]
push eax
lea ecx, [ebp - 0x185c]
call fcn.00406a20
mov dword [ebp - 4], 0
push 0x4ab274
lea ecx, [ebp - 0x185c]
call fcn.00401b60
lea ecx, [ebp - 0x185c]
call fcn.00401f60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1034]
push ecx
lea ecx, [ebp - 0x185c]
call fcn.00406a60
push 0x4ab290
lea ecx, [ebp - 0x185c]
call fcn.00401b60
lea ecx, [ebp - 0x185c]
call fcn.00401f60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x183c]
push edx
lea ecx, [ebp - 0x185c]
call fcn.00406a60
push 0x4ab2ac
lea ecx, [ebp - 0x185c]
call fcn.00401b60
lea ecx, [ebp - 0x185c]
call fcn.00401f60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x183d], 0
lea ecx, [ebp - 0x830]
call fcn.00401460
mov byte [ebp - 4], 1
cmp dword [0x4b8508], 0
je 0x4060ed
mov eax, dword [0x4b8508]
add eax, 0x38
push eax
lea ecx, [ebp - 0x830]
call fcn.004014b0
push 0x4ab2c8
lea ecx, [ebp - 0x830]
call fcn.00401b60
push 0x4ab2cc
lea ecx, [ebp - 0x830]
call fcn.00401b60
xor ecx, ecx
mov word [ebp - 0x814], cx
push 0x7fe
push 0
lea edx, [ebp - 0x812]
push edx
call fcn.00480a10
add esp, 0xc
push 0x3ff
lea ecx, [ebp - 0x830]
call fcn.00401f60
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.0047e268
add esp, 0xc
lea ecx, [ebp - 0x187c]
push ecx
call fcn.00405e50
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x187c]
call fcn.00406a80
movzx edx, al
test edx, edx
je 0x4061b8
mov al, byte [ebp - 0x183d]
mov byte [ebp - 0x20a1], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x187c]
call fcn.00401490
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x830]
call fcn.00401490
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x185c]
call fcn.00401490
mov al, byte [ebp - 0x20a1]
jmp 0x4062e1
cmp dword [0x4b8508], 0
je 0x406216
push 0x4ab2e4
lea ecx, [ebp - 0x187c]
push ecx
lea edx, [ebp - 0x20c0]
push edx
call fcn.00401a10
add esp, 0xc
mov dword [ebp - 0x20e4], eax
mov eax, dword [ebp - 0x20e4]
mov dword [ebp - 0x20e8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20e8]
push ecx
mov ecx, dword [0x4b8508]
add ecx, 0x54
call fcn.004014b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20c0]
call fcn.00401490
push 0x4ab2fc
lea edx, [ebp - 0x187c]
push edx
lea eax, [ebp - 0x20a0]
push eax
call fcn.00401a10
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20a0]
call fcn.00401f60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x814]
push ecx
lea ecx, [ebp - 0x20dc]
call fcn.00406a20
mov byte [ebp - 4], 5
mov edx, dword [0x4b8508]
add edx, 0x54
push edx
lea eax, [ebp - 0x20dc]
push eax
call fcn.00405b80
add esp, 8
test eax, eax
setne cl
mov byte [ebp - 0x183d], cl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20dc]
call fcn.00401490
mov dl, byte [ebp - 0x183d]
mov byte [ebp - 0x20dd], dl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20a0]
call fcn.00401490
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x187c]
call fcn.00401490
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x830]
call fcn.00401490
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x185c]
call fcn.00401490
mov al, byte [ebp - 0x20dd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047dd71
mov esp, ebp
pop ebp
ret