Function at 0x41af61
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a1ac
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4444c4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41af9c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
jmp 0x41afa2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
push 0
push dword [ebp - 0x38]
call fcn.0041ee0e
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41afdd
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41afca
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
jmp 0x41afd0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41afe5
xor eax, eax
inc eax
jmp 0x41b111
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41aff8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
jmp 0x41affe
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41b013
xor eax, eax
inc eax
jmp 0x41b111
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41b026
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
jmp 0x41b02c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
push 0x80
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41b04d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
jmp 0x41b053
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41b10e
push 0x43cf30
push dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call fcn.00417892
add esp, 0xc
cmp dword [ebp - 0x20], 8
jb 0x41b08b
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
jmp 0x41b091
lea eax, [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41b0a4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
jmp 0x41b0aa
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
push 1
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x20], 8
jb 0x41b0c6
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x54], eax
jmp 0x41b0cc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41b0fa
cmp dword [ebp - 0x20], 8
jb 0x41b0e7
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x58], eax
jmp 0x41b0ed
lea eax, [ebp - 0x34]
mov dword [ebp - 0x58], eax
push 4
push 0
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
and dword [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004050af
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041c438
leave
ret