Function at 0x407a60
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x645a4d
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x6c3afc]
xor eax, esp
mov dword [esp + 0x308], eax
push ebx
push esi
push edi
mov eax, dword [0x6c3afc]
xor eax, esp
push eax
lea eax, [esp + 0x320]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
mov dword [esp + 0x20], ecx
xor edx, edx
mov esi, 7
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], dx
call fcn.00403240
lea eax, [esi + 0x19]
lea edi, [esp + 0x38]
mov dword [esp + 0x328], ebx
call fcn.00401880
lea edi, [esi + 1]
cmp dword [esp + 0x48], ebx
je 0x407b07
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x407af7
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
jne 0x407b21
cmp dword [esp + 0x4c], edi
jb 0x407b1a
mov eax, dword [esp + 0x38]
push eax
call fcn.004effaf
add esp, 4
xor al, al
jmp 0x407e6c
push 0x688768
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.0040aa60
add esp, 0xc
mov byte [esp + 0x328], 1
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], edi
jae 0x407b4e
lea eax, [esp + 0x54]
lea ecx, [esp + 0xc4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x407ba2
cmp dword [esp + 0x68], edi
jb 0x407b79
mov edx, dword [esp + 0x54]
push edx
call fcn.004effaf
add esp, 4
xor eax, eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], ax
cmp dword [esp + 0x4c], edi
jb 0x407b1a
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004effaf
add esp, 4
xor al, al
jmp 0x407e6c
lea edx, [esp + 0xf0]
push edx
push 0x688774
call fcn.005de254
add esp, 8
test eax, eax
je 0x407e0f
lea eax, [esp + 0xf0]
push eax
push 0x688778
call fcn.005de254
add esp, 8
test eax, eax
je 0x407e0f
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0xac]
push edx
call fcn.0040ab50
lea ecx, [esp + 0xf8]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x33c], 2
call fcn.0040ac00
add esp, 0x14
mov byte [esp + 0x328], 4
cmp dword [esp + 0xbc], edi
jb 0x407c2d
mov eax, dword [esp + 0xa8]
push eax
call fcn.004effaf
add esp, 4
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], cx
cmp dword [esp + 0x30], edi
jae 0x407c53
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x407c77
mov ecx, dword [esp + 0x1c]
and eax, 0xfffffffe
cmp dword [esp + 0x30], edi
jae 0x407c6f
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0xc4], 0x10
je 0x407d7c
push ebx
xor edx, edx
push 0x688638
lea ecx, [esp + 0x78]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], dx
call fcn.00403600
mov byte [esp + 0x328], 5
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x407cbf
lea edx, [esp + 0x1c]
xor eax, eax
mov word [esp + 0x8c], ax
mov eax, edx
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407ce0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.00403600
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x90]
push edx
mov byte [esp + 0x330], 6
call fcn.00407a60
add esp, 8
cmp dword [esp + 0xa0], edi
jb 0x407d33
mov eax, dword [esp + 0x8c]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], cx
cmp dword [esp + 0x84], edi
jb 0x407d65
mov edx, dword [esp + 0x70]
push edx
call fcn.004effaf
add esp, 4
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x407d73
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x407def
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x407d8a
lea edx, [esp + 0x1c]
xor eax, eax
mov word [esp + 0x70], ax
mov eax, edx
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407da4
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x78]
call fcn.00403600
mov ecx, dword [esp + 0x18]
push ecx
push 1
lea esi, [esp + 0x78]
mov byte [esp + 0x330], 7
call fcn.00407e90
add esp, 8
cmp dword [esp + 0x84], edi
jb 0x407def
mov edx, dword [esp + 0x70]
push edx
call fcn.004effaf
add esp, 4
mov byte [esp + 0x328], 1
cmp dword [esp + 0x30], edi
jb 0x407e0a
mov eax, dword [esp + 0x1c]
push eax
call fcn.004effaf
add esp, 4
mov esi, 7
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407ba2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x68], edi
jb 0x407e48
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], dx
cmp dword [esp + 0x4c], edi
jb 0x407e6a
mov eax, dword [esp + 0x38]
push eax
call fcn.004effaf
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x320]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x308]
xor ecx, esp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret