Function at 0x40ba80
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44e25b
mov eax, dword fs:[0]
push eax
sub esp, 0xa80
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0xa78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4677a0]
xor eax, esp
push eax
lea eax, [esp + 0xa94]
mov dword fs:[0], eax
mov edi, dword [esp + 0xaa8]
mov esi, dword [esp + 0xaa4]
mov ebx, edi
call fcn.00409760
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bad5
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
push esi
mov ecx, 0x104
lea ebx, [esp + 0x888]
je 0x40bb0b
push str._s
call fcn.00402d10
push esi
push 0x4583bc
jmp 0x40bb1b
push 0x45c3c4
call fcn.00402d10
push esi
push 0x45c0cc
mov ecx, 0x104
lea ebx, [esp + 0x27c]
call fcn.00402d10
mov eax, ebx
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bb34
sub eax, edx
sar eax, 1
lea ebp, [esp + eax*2 + 0x26c]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bb50
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
push edi
mov ecx, 0x104
lea ebx, [esp + 0x478]
je 0x40bb7b
push 0x4583bc
jmp 0x40bb80
push 0x45c0cc
call fcn.00402d10
lea eax, [esp + 0x47c]
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bb92
sub eax, edx
sar eax, 1
lea esi, [esp + eax*2 + 0x474]
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40bbcf
lea ebx, [esp + 0x474]
call fcn.00409760
test eax, eax
je 0x40bec7
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x888]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40be57
mov ebx, dword [esp + 0xaac]
test byte [esp + 0x1c], 0x10
je 0x40bc90
cmp word [esp + 0x48], 0x2e
je 0x40be3f
lea eax, [esp + 0x26c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bc24
sub eax, edx
lea ecx, [esp + 0x48]
sar eax, 1
push ecx
mov edx, 0x104
sub edx, eax
mov ecx, ebp
call fcn.004043e0
lea eax, [esp + 0x474]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bc50
sub eax, edx
lea edx, [esp + 0x48]
push edx
sar eax, 1
mov edx, 0x104
sub edx, eax
mov ecx, esi
call fcn.004043e0
push ebx
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0x274]
push ecx
call fcn.0040ba80
add esp, 0xc
jmp 0x40be3f
xor edx, edx
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x26c]
mov word [ebp], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bca5
sub eax, edx
lea ecx, [esp + 0x48]
sar eax, 1
push ecx
mov edx, 0x104
sub edx, eax
mov ecx, ebp
call fcn.004043e0
lea eax, [esp + 0x474]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bcd1
sub eax, edx
lea edx, [esp + 0x48]
push edx
sar eax, 1
mov edx, 0x104
sub edx, eax
mov ecx, esi
call fcn.004043e0
lea edi, [esp + 0x474]
lea ecx, [esp + 0x26c]
call fcn.00403660
test eax, eax
jne 0x40be2d
lea eax, [esp + 0x67c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x67c]
lea edx, [eax + 2]
jmp 0x40bd30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bd30
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x67a], 0x5c
je 0x40bd89
mov ecx, 0x104
lea eax, [esp + 0x67c]
cmp word [eax], 0
je 0x40bd66
add eax, 2
sub ecx, 1
jne 0x40bd56
jmp 0x40bd89
test ecx, ecx
je 0x40bd89
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax*2 + 0x67c]
mov eax, 0x457ff4
call fcn.00407450
call fcn.00420e12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40be8b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x680]
push edx
lea eax, [esp + 0x1c]
push str._s_s.temp
push eax
mov dword [esp + 0xaac], 0
call fcn.00402bb0
mov edi, dword [esp + 0x24]
add esp, 0x10
cmp dword [edi - 4], 1
jle 0x40bdf2
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.004029b0
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x26c]
call fcn.00403660
test eax, eax
jne 0x40be95
lea eax, [edi - 0x10]
mov dword [esp + 0xa9c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40be2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x40be3f
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40bc03
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [esp + 0xa94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa78]
xor ecx, esp
call fcn.00435010
add esp, 0xa8c
ret
push 0x80004005
call fcn.00402bd0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [edi - 0x10]
mov dword [esp + 0xa9c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bec7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40be63