Function at 0x401882
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 0x41f5a8
push 0xd
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.004016e1
mov esi, dword [ebp + 8]
pop ecx
cmp byte [esi + 0x108], 0
lea eax, [esi + 8]
push eax
je 0x4018ba
call fcn.00408eab
jmp 0x4018bf
call fcn.00408ba4
test eax, eax
pop ecx
mov dword [ebp + 8], eax
jne 0x4018d2
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [ebp + 8]
push 0x41f590
push 0x17
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.004016e1
cmp byte [ebp + 0xc], 0
pop ecx
pop ecx
mov edi, 0x80000001
je 0x40191d
push 0
push 0x41f37c
push 0x10
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.0040672e
push eax
lea eax, [esi + 8]
push eax
call fcn.00410fd0
add esp, 0x10
test eax, eax
je 0x40196f
lea eax, [esi + 0x408]
push eax
push 0x41f560
push 0x2d
call fcn.0040857d
pop ecx
pop ecx
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
test eax, eax
mov dword [ebp + 8], eax
jne 0x40194a
push 0x41f55c
push 2
jmp 0x401951
push 0x41f554
push 6
call fcn.0040857d
pop ecx
pop ecx
push eax
push 0x41f53c
push 0x17
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.004016e1
pop ecx
pop ecx
cmp byte [ebp + 0xc], 0
je 0x4019a7
push esi
call fcn.00401386
pop ecx
lea eax, [esi + 0x608]
push eax
push 1
push 0x41f344
push 0xb
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.0040672e
pop ecx
pop ecx
push eax
call fcn.00410fd0
pop ecx
test eax, eax
pop ecx
je 0x401a0f
lea eax, [esi + 0x608]
push eax
push 0x41f530
push 0xb
call fcn.0040857d
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0041088a
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
mov dword [ebp + 8], eax
jne 0x4019ea
push 0x41f55c
push 2
jmp 0x4019f1
push 0x41f554
push 6
call fcn.0040857d
pop ecx
pop ecx
push eax
push 0x41f518
push 0x17
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.004016e1
pop ecx
pop ecx
cmp byte [esi + 0x108], 0
mov ebx, 0x41f2c0
lea edi, [esi + 0x208]
je 0x401a8e
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 0x41f514
push eax
call fcn.00410f75
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x618]
push eax
call fcn.00410f75
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 0x401abf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 8], eax
jmp 0x401ab9
lea eax, [esi + 8]
push eax
push edi
push ebx
push 5
call fcn.0040857d
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0041088a
lea eax, [ebp - 0x208]
push eax
call fcn.0040878e
add esp, 0x14
cmp dword [ebp + 8], 0
jne 0x401ac8
push 0x41f55c
push 2
jmp 0x401acf
push 0x41f554
push 6
call fcn.0040857d
pop ecx
pop ecx
push eax
push 0x41f4fc
push 0x17
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.004016e1
cmp byte [esi + 0xc08], 0
lea eax, [esi + 0xc08]
pop ecx
pop ecx
je 0x401b46
push eax
push edi
push ebx
push 5
call fcn.0040857d
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0041088a
lea eax, [ebp - 0x208]
push eax
call fcn.00407f3a
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
push 0x41f4dc
push 0x1e
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.004016e1
pop ecx
pop edi
pop esi
pop ebx
leave
ret