Function at 0x41caa5
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x129c
call fcn.0046a030
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [0x475014]
mov edi, 0x475014
mov esi, 0x409550
push 2
pop ebx
cmp eax, edi
je 0x41caf2
test byte [eax + 0x1c], bl
je 0x41caf2
cmp byte [eax + 0x19], 5
jb 0x41caf2
push dword [eax + 0x14]
mov edx, esi
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.00414ca8
lea eax, [ebp - 0x418]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x41cb48
mov eax, dword [0x475014]
cmp eax, edi
je 0x41cd35
test byte [eax + 0x1c], bl
je 0x41cd35
cmp byte [eax + 0x19], bl
jb 0x41cd35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x475014]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
mov edx, esi
pop ecx
call fcn.00414ccb
jmp 0x41cd35
lea eax, [ebp - 0x418]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x41cb72
xor ecx, ecx
cmp word [eax + 2], cx
jne 0x41cb72
push 1
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wcsnset]
add esp, 0xc
push 0x40949c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4094a4
lea eax, [ebp - 0x418]
push eax
push 0x4094d8
lea eax, [ebp - 0x1048]
push 0x30c
push eax
call fcn.00416647
add esp, 0x1c
test eax, eax
jns 0x41cbd8
mov ecx, dword [0x475014]
cmp ecx, edi
je 0x41cd35
test byte [ecx + 0x1c], bl
je 0x41cd35
cmp byte [ecx + 0x19], bl
jb 0x41cd35
movzx eax, ax
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xc
jmp 0x41cb3b
lea eax, [ebp - 0x1298]
push eax
lea eax, [ebp - 0x1048]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41cc36
mov eax, dword [0x475014]
cmp eax, edi
je 0x41cd35
test byte [eax + 0x1c], bl
je 0x41cd35
cmp byte [eax + 0x19], bl
jb 0x41cd35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x475014]
mov edx, 0x409550
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
pop ecx
call fcn.00414ccb
jmp 0x41cd35
lea eax, [ebp - 0x126c]
push eax
lea eax, [ebp - 0x418]
push eax
push 0x4094f4
lea eax, [ebp - 0xa30]
push 0x30c
push eax
call fcn.00416647
add esp, 0x14
test eax, eax
js 0x41ccdb
lea eax, [ebp - 0xa30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41ccad
mov eax, dword [0x475014]
cmp eax, edi
je 0x41ccdb
test byte [eax + 0x1c], bl
je 0x41ccdb
cmp byte [eax + 0x19], bl
jb 0x41ccdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa30]
mov edx, 0x409550
push eax
mov eax, dword [0x475014]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.00414cf4
jmp 0x41ccdb
mov eax, dword [0x475014]
cmp eax, edi
je 0x41ccdb
test byte [eax + 0x1c], bl
je 0x41ccdb
cmp byte [eax + 0x19], 5
jb 0x41ccdb
lea ecx, [ebp - 0xa30]
mov edx, 0x409550
push ecx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xf
pop ecx
call fcn.0041bdae
lea eax, [ebp - 0x1298]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41cc36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x41cd2e
mov eax, dword [0x475014]
cmp eax, edi
je 0x41cd2e
test byte [eax + 0x1c], bl
je 0x41cd2e
cmp byte [eax + 0x19], bl
jb 0x41cd2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x475014]
mov edx, 0x409550
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.00414ccb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468ba0
mov esp, ebp
pop ebp
ret