Function at 0x100080c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
sub esp, 0xa84
mov eax, dword [0x1003230c]
xor eax, esp
mov dword [esp + 0xa7c], eax
push ebx
mov ebx, dword [esp + 0xa90]
push ebp
push esi
push edi
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x47a]
push ecx
mov word [esp + 0x47c], ax
call fcn.10017160
add esp, 0xc
mov edx, ebx
lea ecx, [esp + 0x880]
call fcn.10006500
push 0x1002de24
lea eax, [esp + 0x884]
call fcn.10006560
mov edx, ebx
lea ecx, [esp + 0x268]
call fcn.10006500
push 0x1002be74
lea eax, [esp + 0x26c]
call fcn.10006560
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x884]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x1000836c
lea edx, [esp + 0x268]
lea ecx, [esp + 0x880]
call fcn.10006500
mov esi, dword [esp + 0xa98]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10008356
lea eax, [esp + 0x44]
push 0x1002de08
push eax
call fcn.10012181
add esp, 8
test eax, eax
je 0x10008183
lea ecx, [esp + 0x44]
push 0x1002de0c
push ecx
call fcn.10012181
add esp, 8
test eax, eax
je 0x10008183
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x26c]
call fcn.10006560
mov al, byte [esp + 0x18]
test al, 0x10
je 0x10008313
lea eax, [esp + 0x268]
push eax
push esi
call fcn.100080c0
add esp, 8
test eax, eax
je 0x10008361
lea ecx, [esp + 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x100082fb
call edi
cmp eax, 5
jne 0x100082fb
lea edx, [esp + 0x268]
push edx
push str.Failed_to_delete_directory__s__directory_access_is_denied
lea eax, [esp + 0x478]
push 0x208
push eax
call fcn.10011853
lea ecx, [esp + 0x480]
push ecx
call fcn.10001180
add esp, 0x14
push esi
call fcn.10007fd0
add esp, 4
test eax, eax
jne 0x100082fb
push 4
push eax
lea edx, [esp + 0x270]
push edx
call ebp
test eax, eax
jne 0x100082bc
call edi
lea ecx, [esp + 0x268]
push ecx
push eax
push str.ERROR:__d___Failed_to_mark__s_as_delete_on_reboot
lea edx, [esp + 0x47c]
push 0x208
push edx
call fcn.10011853
lea eax, [esp + 0x484]
add esp, 0x14
push eax
call fcn.10001180
add esp, 4
lea edx, [esp + 0x880]
lea ecx, [esp + 0x268]
call fcn.10006500
jmp 0x10008183
lea ecx, [esp + 0x268]
push ecx
push str.The_directory__s_is_marked_to_delete_on_reboot
lea edx, [esp + 0x478]
push 0x208
push edx
call fcn.10011853
lea eax, [esp + 0x480]
push eax
call fcn.10001180
add esp, 0x14
push 0x1002cbdc
push str.ISSCHEDULEREBOOT
push esi
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
lea edx, [esp + 0x880]
lea ecx, [esp + 0x268]
call fcn.10006500
jmp 0x10008183
test al, 1
je 0x1000832c
lea ecx, [esp + 0x268]
push 0x80
push ecx
call fcn.100123c5
add esp, 8
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10008373
lea edx, [esp + 0x880]
lea ecx, [esp + 0x268]
call fcn.10006500
jmp 0x10008183
call edi
cmp eax, 0x12
je 0x10008467
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10008546
call edi
cmp eax, 5
jne 0x10008455
lea ecx, [esp + 0x268]
push ecx
push str.Failed_to_delete_file__s__file_access_is_denied
lea edx, [esp + 0x478]
push 0x208
push edx
call fcn.10011853
lea eax, [esp + 0x480]
push eax
call fcn.10001180
add esp, 0x14
push esi
call fcn.10007fd0
add esp, 4
test eax, eax
jne 0x10008455
push 4
push eax
lea ecx, [esp + 0x270]
push ecx
call ebp
test eax, eax
jne 0x10008416
call edi
lea edx, [esp + 0x268]
push edx
push eax
push str.ERROR:__d___Failed_to_mark__s_as_delete_on_reboot
lea eax, [esp + 0x47c]
push 0x208
push eax
call fcn.10011853
lea ecx, [esp + 0x484]
add esp, 0x14
push ecx
call fcn.10001180
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10008546
lea edx, [esp + 0x268]
push edx
push str.The_file__s_is_marked_to_delete_on_reboot
lea eax, [esp + 0x478]
push 0x208
push eax
call fcn.10011853
lea ecx, [esp + 0x480]
push ecx
call fcn.10001180
add esp, 0x14
push 0x1002cbdc
push str.ISSCHEDULEREBOOT
push esi
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10008546
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10008546
call edi
cmp eax, 5
jne 0x10008541
lea edx, [esp + 0x268]
push edx
push str.Failed_to_delete_folder__s__file_access_is_denied
lea eax, [esp + 0x478]
push 0x208
push eax
call fcn.10011853
lea ecx, [esp + 0x480]
push ecx
call fcn.10001180
add esp, 0x14
push esi
call fcn.10007fd0
add esp, 4
test eax, eax
jne 0x10008541
push 4
push eax
push ebx
call ebp
test eax, eax
jne 0x10008509
call edi
lea edx, [esp + 0x268]
push edx
push eax
push str.ERROR:__d___Failed_to_mark__s_as_delete_on_reboot
lea eax, [esp + 0x47c]
push 0x208
push eax
call fcn.10011853
lea ecx, [esp + 0x484]
add esp, 0x14
push ecx
call fcn.10001180
add esp, 4
jmp 0x10008541
push ebx
push str.The_file__s_is_marked_to_delete_on_reboot
lea edx, [esp + 0x478]
push 0x208
push edx
call fcn.10011853
lea eax, [esp + 0x480]
push eax
call fcn.10001180
add esp, 0x14
push 0x1002cbdc
push str.ISSCHEDULEREBOOT
push esi
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
mov eax, 1
mov ecx, dword [esp + 0xa8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001172b
add esp, 0xa84
ret