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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x87c
mov eax, dword [0x483260]
xor eax, esp
mov dword [esp + 0x878], eax
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov dword [esp + 0x10], ebx
cmp ebx, esi
jne 0x416bc5
xor eax, eax
jmp 0x416df1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416bbe
push 0x24c
lea eax, [esp + 0x20]
push esi
push eax
mov dword [esp + 0x24], esi
call fcn.0043e180
add esp, 0xc
xor eax, eax
mov edi, 0x206
push edi
mov word [esp + 0x67c], ax
lea eax, [esp + 0x67e]
push esi
push eax
call fcn.0043e180
add esp, 0xc
push 0x476ae4
push ebx
mov ebx, 0x475124
push ebx
mov esi, 0x103
lea eax, [esp + 0x684]
push esi
push eax
call fcn.0043f3d3
add esp, 0x14
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x416bbe
mov ecx, 0x4768a8
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416c79
test dx, dx
je 0x416c75
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416c79
add eax, 4
add ecx, 4
test dx, dx
jne 0x416c53
xor eax, eax
jmp 0x416c7e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416dba
mov ecx, 0x476040
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416cb5
test dx, dx
je 0x416cb1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416cb5
add eax, 4
add ecx, 4
test dx, dx
jne 0x416c8f
xor eax, eax
jmp 0x416cba
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416dba
xor eax, eax
test byte [esp + 0x18], 0x10
push edi
push eax
je 0x416d13
mov word [esp + 0x270], ax
lea eax, [esp + 0x272]
push eax
call fcn.0043e180
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x270]
push ebx
push esi
push eax
call fcn.0043f3d3
add esp, 0x14
lea eax, [esp + 0x268]
push eax
call fcn.0041680f
pop ecx
jmp 0x416dba
mov word [esp + 0x478], ax
lea eax, [esp + 0x47a]
push eax
call fcn.0043e180
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x478]
push ebx
push esi
push eax
call fcn.0043f3d3
add esp, 0x14
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x416dba
push edi
push eax
mov word [esp + 0x270], ax
lea eax, [esp + 0x272]
push eax
call fcn.0043e180
add esp, 0xc
lea eax, [esp + 0x470]
push eax
push str._s_bak
lea eax, [esp + 0x270]
push esi
push eax
call fcn.0043f3d3
add esp, 0x10
push 1
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416c4a
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x884]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043b103
mov esp, ebp
pop ebp
ret