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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x50bd24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x484], eax
xor eax, eax
mov dword [ebp - 0x230], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x48c], ebx
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41afe0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x230]
call fcn.0041a580
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x230]
mov dword [ebp - 4], 0
cmp word [ecx + eax*2 - 2], 0x5c
je 0x41b037
push 1
push 0x4e30ec
lea ecx, [ebp - 0x230]
call fcn.0041a400
push 1
push 0x4e3124
lea ecx, [ebp - 0x230]
call fcn.0041a400
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x480]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x488], eax
cmp eax, 0xffffffff
jne 0x41b07d
xor esi, esi
jmp 0x41b205
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b5de0
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
nop
push 0x4e3120
lea eax, [ebp - 0x454]
push eax
call esi
test eax, eax
je 0x41b1d9
push 0x4e3128
lea eax, [ebp - 0x454]
push eax
call esi
test eax, eax
je 0x41b1d9
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x48c]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [ebp - 0x480], 0x10
je 0x41b126
push edi
push dword [ebp - 0x484]
lea eax, [ebp - 0x218]
push eax
call fcn.0041af70
mov eax, dword [ebp - 0x484]
add esp, 0xc
cmp dword [eax], 0
je 0x41b1d9
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41b1d9
mov ecx, dword [edi]
test ecx, ecx
je 0x41b1aa
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x41b1aa
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, dword [edi]
mov ebx, eax
mov esi, dword [ecx]
cmp esi, dword [ecx + 4]
je 0x41b170
nop
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x41b15a
mov ecx, dword [esi]
push ebx
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x41b1cd
mov eax, dword [edi]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x41b150
mov esi, dword [edi + 4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x41b1cd
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x41b1d3
push 4
push 0
lea eax, [ebp - 0x218]
push eax
call ebx
jmp 0x41b1d3
mov esi, dword [edi + 4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x41b1d3
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x41b197
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41b0a0
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x41b241
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b237
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b25f
push edx
push ecx
call fcn.004b4077
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b42e4
mov esp, ebp
pop ebp
ret
call fcn.004b905f
int3