Function at 0x404bd0
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x660
mov eax, dword [0x5b9e84]
xor eax, esp
mov dword [esp + 0x65c], eax
push ebx
mov ebx, dword [esp + 0x668]
push ebp
push 2
mov ebp, ecx
mov dword [esp + 0x10], ebx
push 6
mov ecx, 0x5be328
call fcn.004024e0
cmp eax, 1
mov edx, 0x570668
mov ecx, 0x570640
lea eax, [esp + 0x254]
cmovne ecx, edx
push ecx
push ebx
push str._s_s
push eax
call fcn.00403a40
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x404ed4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x5706ac
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0x360]
push str._s_s
push eax
call fcn.00403a40
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x368]
add esp, 0x10
push eax
call ebx
push 0x5706ac
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0x360]
push str._s_s
push eax
call fcn.00403a40
add esp, 0x10
lea eax, [esp + 0x358]
push eax
call ebx
push 0x5706cc
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0x360]
push str._s_s
push eax
call fcn.00403a40
add esp, 0x10
lea eax, [esp + 0x358]
push eax
call ebx
push 1
lea eax, [esp + 0x258]
mov ecx, ebp
push eax
call fcn.00404330
mov dword [esp + 8], 0
test ebp, ebp
jne 0x404cf6
xor eax, eax
jmp 0x404cf9
mov eax, dword [ebp + 0x20]
lea ecx, [esp + 8]
push ecx
push 0x10
push eax
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x404eef
lea eax, [esp + 0x45c]
push eax
push dword [esp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x404eef
lea ecx, [esp + 0x45c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404d32
sub ecx, edx
push esi
push edi
cmp byte [esp + ecx + 0x463], 0x5c
je 0x404d63
lea edi, [esp + 0x464]
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x404d50
mov ax, word [0x57042c]
mov word [edi], ax
lea edi, [esp + 0x464]
dec edi
nop dword [eax + eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404d70
mov ecx, 7
lea eax, [esp + 0x464]
mov esi, 0x5706ac
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call ebx
cmp dword [0x5be414], 6
jne 0x404dd1
cmp dword [0x5be418], 2
jne 0x404dd1
movups xmm0, xmmword [0x570640]
mov al, byte [0x570658]
mov byte [esp + 0x170], al
movups xmmword [esp + 0x158], xmm0
movq xmm0, qword [0x570650]
movq qword [esp + 0x168], xmm0
jmp 0x404e1b
movups xmm0, xmmword [0x570668]
mov ax, word [0x5706a8]
mov word [esp + 0x198], ax
movups xmmword [esp + 0x158], xmm0
movups xmm0, xmmword [0x570678]
movups xmmword [esp + 0x168], xmm0
movups xmm0, xmmword [0x570688]
movups xmmword [esp + 0x178], xmm0
movups xmm0, xmmword [0x570698]
movups xmmword [esp + 0x188], xmm0
xor esi, esi
cmp byte [esp + 0x158], 0
je 0x404ed2
nop dword [eax + eax]
mov bl, byte [esp + esi + 0x158]
push ebx
call fcn.00403a70
add esp, 4
test al, al
je 0x404e4b
mov eax, 2
jmp 0x404e55
cmp bl, 0x5c
je 0x404e63
mov eax, 1
add esi, eax
cmp byte [esp + esi + 0x158], 0
jne 0x404e30
jmp 0x404e6b
mov byte [esp + esi + 0x158], 0
cmp byte [esp + 0x158], 0
je 0x404ed2
lea eax, [esp + 0x158]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x264]
push str._s_s
push eax
call fcn.00403a40
add esp, 0x10
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x404ed2
push 0x80
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
lea eax, [esp + 0x260]
mov ecx, ebp
push eax
call fcn.00404330
pop edi
pop esi
mov al, 1
mov ecx, dword [esp + 0x664]
pop ebp
pop ebx
xor ecx, esp
call fcn.0053fe9d
add esp, 0x660
ret 4
push 0
push 0
push 0x5706f8
call fcn.0040cee2
xor al, al
jmp 0x404ed6