Function at 0x413960
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4315cb
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x442740]
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 dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413c90
test al, 0x10
je 0x413c90
lea edx, [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.00413e50
mov esi, eax
lea eax, [ebp + 8]
cmp eax, esi
je 0x4139fa
cmp dword [ebp + 0x1c], 8
jb 0x4139dd
push dword [ebp + 8]
call fcn.0041ae15
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.00405c10
cmp dword [ebp - 0x14], 8
jb 0x413a0b
push dword [ebp - 0x28]
call fcn.0041ae15
add esp, 4
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x2b0], esp
push 1
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x43a4ec
mov word [ecx], ax
call fcn.00406150
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00405dd0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004142b0
mov esi, eax
add esp, 0x30
lea eax, [ebp + 8]
cmp eax, esi
je 0x413aa3
cmp dword [ebp + 0x1c], 8
jb 0x413a86
push dword [ebp + 8]
call fcn.0041ae15
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.00405c10
cmp dword [ebp - 0x14], 8
jb 0x413ab4
push dword [ebp - 0x28]
call fcn.0041ae15
add esp, 4
push 0x43b5a8
lea edx, [ebp + 8]
lea ecx, [ebp - 0x58]
call fcn.004044b0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2a8]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x413c4b
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x413b00
mov ebx, dword [ebp - 0x2a8]
lea edx, [ebp + 8]
shr ebx, 4
lea ecx, [ebp - 0x28]
push 0x43a4ec
and bl, 1
call fcn.004044b0
add esp, 4
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.004045a0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x14], 8
jb 0x413b4c
push dword [ebp - 0x28]
call fcn.0041ae15
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test bl, bl
je 0x413c0d
mov ecx, 0x43b5b0
lea eax, [ebp - 0x27c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413b99
test dx, dx
je 0x413b95
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413b99
add eax, 4
add ecx, 4
test dx, dx
jne 0x413b73
xor eax, eax
jmp 0x413b9e
sbb eax, eax
or eax, 1
test eax, eax
je 0x413c1f
mov ecx, 0x43b5b4
lea eax, [ebp - 0x27c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413bd6
test dx, dx
je 0x413bd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413bd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x413bb0
xor eax, eax
jmp 0x413bdb
sbb eax, eax
or eax, 1
test eax, eax
je 0x413c1f
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x40]
push eax
call fcn.00405dd0
call fcn.00413960
add esp, 0x18
jmp 0x413c1f
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x2a8]
push eax
push esi
call edi
test eax, eax
mov byte [ebp - 4], 2
sete bl
cmp dword [ebp - 0x2c], 8
jb 0x413c43
push dword [ebp - 0x40]
call fcn.0041ae15
add esp, 4
test bl, bl
je 0x413b00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
cmp dword [ebp - 0x44], 8
jb 0x413c7a
push dword [ebp - 0x58]
call fcn.0041ae15
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jmp 0x413c92
mov bl, 1
cmp dword [ebp + 0x1c], 8
jb 0x413ca3
push dword [ebp + 8]
call fcn.0041ae15
add esp, 4
mov al, bl
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.0041ae1a
mov esp, ebp
pop ebp
ret