Function at 0x416dba
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 0x416dea
xor eax, eax
jmp 0x417016
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416de3
push 0x24c
lea eax, [esp + 0x20]
push esi
push eax
mov dword [esp + 0x24], esi
call fcn.0043e330
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.0043e330
add esp, 0xc
push 0x476b74
push ebx
mov ebx, 0x475124
push ebx
mov esi, 0x103
lea eax, [esp + 0x684]
push esi
push eax
call fcn.0043f583
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 0x416de3
mov ecx, 0x476938
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416e9e
test dx, dx
je 0x416e9a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416e9e
add eax, 4
add ecx, 4
test dx, dx
jne 0x416e78
xor eax, eax
jmp 0x416ea3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416fdf
mov ecx, 0x4760d0
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416eda
test dx, dx
je 0x416ed6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416eda
add eax, 4
add ecx, 4
test dx, dx
jne 0x416eb4
xor eax, eax
jmp 0x416edf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416fdf
xor eax, eax
test byte [esp + 0x18], 0x10
push edi
push eax
je 0x416f38
mov word [esp + 0x270], ax
lea eax, [esp + 0x272]
push eax
call fcn.0043e330
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.0043f583
add esp, 0x14
lea eax, [esp + 0x268]
push eax
call fcn.00416a34
pop ecx
jmp 0x416fdf
mov word [esp + 0x478], ax
lea eax, [esp + 0x47a]
push eax
call fcn.0043e330
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.0043f583
add esp, 0x14
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x416fdf
push edi
push eax
mov word [esp + 0x270], ax
lea eax, [esp + 0x272]
push eax
call fcn.0043e330
add esp, 0xc
lea eax, [esp + 0x470]
push eax
push str._s_bak
lea eax, [esp + 0x270]
push esi
push eax
call fcn.0043f583
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 0x416e6f
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.0043b2b9
mov esp, ebp
pop ebp
ret