Function at 0x416bd5
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 0x416c05
xor eax, eax
jmp 0x416e31
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416bfe
push 0x24c
lea eax, [esp + 0x20]
push esi
push eax
mov dword [esp + 0x24], esi
call fcn.0043e1d0
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.0043e1d0
add esp, 0xc
push 0x476aec
push ebx
mov ebx, 0x475124
push ebx
mov esi, 0x103
lea eax, [esp + 0x684]
push esi
push eax
call fcn.0043f423
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 0x416bfe
mov ecx, 0x4768b0
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416cb9
test dx, dx
je 0x416cb5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416cb9
add eax, 4
add ecx, 4
test dx, dx
jne 0x416c93
xor eax, eax
jmp 0x416cbe
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416dfa
mov ecx, 0x476048
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416cf5
test dx, dx
je 0x416cf1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416cf5
add eax, 4
add ecx, 4
test dx, dx
jne 0x416ccf
xor eax, eax
jmp 0x416cfa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416dfa
xor eax, eax
test byte [esp + 0x18], 0x10
push edi
push eax
je 0x416d53
mov word [esp + 0x270], ax
lea eax, [esp + 0x272]
push eax
call fcn.0043e1d0
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.0043f423
add esp, 0x14
lea eax, [esp + 0x268]
push eax
call fcn.0041684f
pop ecx
jmp 0x416dfa
mov word [esp + 0x478], ax
lea eax, [esp + 0x47a]
push eax
call fcn.0043e1d0
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.0043f423
add esp, 0x14
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x416dfa
push edi
push eax
mov word [esp + 0x270], ax
lea eax, [esp + 0x272]
push eax
call fcn.0043e1d0
add esp, 0xc
lea eax, [esp + 0x470]
push eax
push str._s_bak
lea eax, [esp + 0x270]
push esi
push eax
call fcn.0043f423
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 0x416c8a
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.0043b155
mov esp, ebp
pop ebp
ret