Function at 0x4101e0
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 0x431fbb
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x443740]
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 0x410510
test al, 0x10
je 0x410510
lea edx, [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.004106d0
mov esi, eax
lea eax, [ebp + 8]
cmp eax, esi
je 0x41027a
cmp dword [ebp + 0x1c], 8
jb 0x41025d
push dword [ebp + 8]
call fcn.0041bbd5
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.004066b0
cmp dword [ebp - 0x14], 8
jb 0x41028b
push dword [ebp - 0x28]
call fcn.0041bbd5
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 0x43b8b8
mov word [ecx], ax
call fcn.00406bf0
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.00406870
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00415160
mov esi, eax
add esp, 0x30
lea eax, [ebp + 8]
cmp eax, esi
je 0x410323
cmp dword [ebp + 0x1c], 8
jb 0x410306
push dword [ebp + 8]
call fcn.0041bbd5
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.004066b0
cmp dword [ebp - 0x14], 8
jb 0x410334
push dword [ebp - 0x28]
call fcn.0041bbd5
add esp, 4
push 0x43c848
lea edx, [ebp + 8]
lea ecx, [ebp - 0x58]
call fcn.00404ee0
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 0x4104cb
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x410380
mov ebx, dword [ebp - 0x2a8]
lea edx, [ebp + 8]
shr ebx, 4
lea ecx, [ebp - 0x28]
push 0x43b8b8
and bl, 1
call fcn.00404ee0
add esp, 4
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00405050
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x14], 8
jb 0x4103cc
push dword [ebp - 0x28]
call fcn.0041bbd5
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 0x41048d
mov ecx, 0x43c850
lea eax, [ebp - 0x27c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410419
test dx, dx
je 0x410415
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410419
add eax, 4
add ecx, 4
test dx, dx
jne 0x4103f3
xor eax, eax
jmp 0x41041e
sbb eax, eax
or eax, 1
test eax, eax
je 0x41049f
mov ecx, 0x43c854
lea eax, [ebp - 0x27c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410456
test dx, dx
je 0x410452
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410456
add eax, 4
add ecx, 4
test dx, dx
jne 0x410430
xor eax, eax
jmp 0x41045b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41049f
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.00406870
call fcn.004101e0
add esp, 0x18
jmp 0x41049f
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 0x4104c3
push dword [ebp - 0x40]
call fcn.0041bbd5
add esp, 4
test bl, bl
je 0x410380
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 0x4104fa
push dword [ebp - 0x58]
call fcn.0041bbd5
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jmp 0x410512
mov bl, 1
cmp dword [ebp + 0x1c], 8
jb 0x410523
push dword [ebp + 8]
call fcn.0041bbd5
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.0041bbda
mov esp, ebp
pop ebp
ret