Function at 0x4521c0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
sub esp, 0x670
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x66c], eax
push esi
mov esi, dword [esp + 0x678]
push esi
push str.UNINSTINFO::RemoveDirectoryAll___s__n
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
call fcn.004454c0
lea edx, [esp + 0x470]
add esp, 8
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x452200
lea eax, [esp + 0x468]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x452220
mov ecx, dword [0x46abb0]
mov edx, dword [0x46abb4]
mov dword [eax], ecx
mov cx, word [0x46abb8]
mov dword [eax + 4], edx
push ebx
lea edx, [esp + 0x14]
mov word [eax + 8], cx
push edx
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov byte [esp + 0xb], 0
test eax, eax
je 0x45244e
push ebp
lea ebp, [esp + 0x268]
push edi
mov byte [esp + 0x13], 1
sub ebp, esi
mov eax, esi
movzx ecx, word [eax]
mov word [eax + ebp], cx
add eax, 2
test cx, cx
jne 0x452285
lea edi, [esp + 0x26c]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4522a0
mov ecx, dword [0x46ab94]
lea eax, [esp + 0x48]
mov dword [edi], ecx
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4522c0
lea edi, [esp + 0x26c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4522e0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4522e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x46abac
lea eax, [esp + 0x48]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45232b
test dx, dx
je 0x452327
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45232b
add eax, 4
add ecx, 4
test dx, dx
jne 0x452305
xor eax, eax
jmp 0x452330
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x452434
mov ecx, 0x46aba4
lea eax, [esp + 0x48]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x452367
test dx, dx
je 0x452363
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x452367
add eax, 4
add ecx, 4
test dx, dx
jne 0x452341
xor eax, eax
jmp 0x45236c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x452434
test byte [esp + 0x1c], 0x10
je 0x4523d3
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x26c]
push edx
call fcn.004521c0
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x452434
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4523bc
push str.UNINSTINFO::RemoveDirectoryAll___ERROR_FILE_NOT_FOUND_n
call fcn.004454c0
add esp, 4
jmp 0x452434
lea ecx, [esp + 0x26c]
push ecx
push str.WINNT___directory___s__is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.004454c0
add esp, 8
jmp 0x452422
push 0x80
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x26c]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00452130
test eax, eax
jne 0x452434
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x452415
push str.UNINSTINFO::RemoveDirectoryAll___ERROR_FILE_NOT_FOUND_n
call fcn.004454c0
add esp, 4
jmp 0x452434
push str.WINNT___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.004454c0
add esp, 4
push 4
push 0
lea edx, [esp + 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x452283
pop edi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop ebx
test eax, eax
jne 0x452494
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x45247b
push str.UNINSTINFO::RemoveDirectoryAll___ERROR_FILE_NOT_FOUND_n
call fcn.004454c0
add esp, 4
jmp 0x452494
push esi
push str.WINNT___directory___s__is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.004454c0
add esp, 8
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x670]
mov al, byte [esp + 7]
pop esi
xor ecx, esp
call fcn.00453432
add esp, 0x670
ret 4