Function at 0x401fc5
Capabilities:
Delete directory
Delete file
Delete registry key
Delete registry value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
push edi
push 0x41a7f0
push 0xd
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a709
mov esi, dword [ebp + 8]
pop ecx
cmp byte [esi + 0x108], 0
lea eax, [esi + 8]
push eax
je 0x401ffd
call fcn.00409b15
jmp 0x402002
call fcn.0040980e
test eax, eax
pop ecx
mov dword [ebp + 8], eax
jne 0x402015
push 0x7d0
call dword [sym.imp.kernel32.dll_Sleep]
push dword [ebp + 8]
push 0x41a7d8
push 0x17
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a709
cmp byte [ebp + 0xc], 0
pop ecx
pop ecx
jne 0x4020ce
lea eax, [esi + 0x408]
push eax
push 0x41a5b8
push 0x2d
call fcn.00408cb1
pop ecx
mov edi, 0x80000001
pop ecx
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
test eax, eax
jne 0x402067
push 0x41a7d4
push 2
jmp 0x40206e
push 0x41a7cc
push 6
call fcn.00408cb1
pop ecx
pop ecx
push eax
push 0x41a7b4
push 0x17
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a709
pop ecx
lea eax, [esi + 0x608]
pop ecx
push eax
push 0x41a7a8
push 0xb
call fcn.00408cb1
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0040ba39
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push edi
call ebx
test eax, eax
jne 0x4020d7
push 0x41a7d4
push 2
jmp 0x4020de
push esi
call fcn.00401ac3
pop ecx
jmp 0x40213e
push 0x41a7cc
push 6
call fcn.00408cb1
pop ecx
pop ecx
push eax
push 0x41a790
push 0x17
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a709
pop ecx
pop ecx
push 1
push 0x41a4c4
push 0xc
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00408952
push eax
push 0x41a7a8
push 0xb
call fcn.00408cb1
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0040ba39
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push edi
call ebx
mov dword [ebp + 8], eax
cmp byte [esi + 0x108], 0
mov ebx, 0x41a788
lea edi, [esi + 0x208]
je 0x4021bd
lea eax, [ebp - 0x618]
push 0x104
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x618]
push 0x41a784
push eax
call fcn.0040c5ba
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x618]
push eax
call fcn.0040c5ba
add esp, 0x10
lea eax, [ebp - 0x618]
push 0x80
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x4021ee
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x4021e8
lea eax, [esi + 8]
push eax
push edi
push ebx
push 5
call fcn.00408cb1
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0040ba39
lea eax, [ebp - 0x208]
push eax
call fcn.00408f3e
add esp, 0x14
cmp dword [ebp + 8], 0
jne 0x4021f7
push 0x41a7d4
push 2
jmp 0x4021fe
push 0x41a7cc
push 6
call fcn.00408cb1
pop ecx
pop ecx
push eax
push 0x41a76c
push 0x17
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a709
cmp byte [esi + 0xc08], 0
lea eax, [esi + 0xc08]
pop ecx
pop ecx
je 0x40228d
cmp dword [esi + 4], 0xd48
push eax
ja 0x402252
push edi
push ebx
push 5
call fcn.00408cb1
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0040ba39
add esp, 0x10
jmp 0x402260
lea eax, [ebp - 0x208]
push eax
call fcn.0040bb60
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push eax
call fcn.004080e3
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
lea eax, [ebp - 0x208]
push eax
push 0x41a748
call fcn.0040a709
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret