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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00447660
add esp, 0xc
mov dword [ebp - 0x470], 0
push 0x24c
push 0
lea edx, [ebp - 0x46c]
push edx
call fcn.00447660
add esp, 0xc
mov dword [ebp - 0x218], 0
cmp dword [ebp + 8], 0
je 0x4374de
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4374de
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4374e5
xor eax, eax
jmp 0x4376ed
mov edx, dword [ebp + 8]
push edx
push str._s.
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00447c36
add esp, 0x10
lea ecx, [ebp - 0x470]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x43752c
xor eax, eax
jmp 0x4376ed
mov eax, dword [ebp + 0xc]
and eax, 2
je 0x437671
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
movzx eax, word [edx + 2]
test eax, eax
jne 0x437567
mov ecx, dword [ebp - 0x214]
movzx edx, word [ecx]
cmp edx, 0x2e
jne 0x437567
jmp 0x437655
mov eax, dword [ebp - 0x214]
movzx ecx, word [eax + 4]
test ecx, ecx
jne 0x437597
mov edx, dword [ebp - 0x214]
movzx eax, word [edx]
cmp eax, 0x2e
jne 0x437597
mov ecx, dword [ebp - 0x214]
movzx edx, word [ecx + 2]
cmp edx, 0x2e
jne 0x437597
jmp 0x437655
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4989a4
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00447c36
add esp, 0x14
mov eax, dword [ebp - 0x470]
and eax, 1
je 0x4375dd
mov ecx, dword [ebp - 0x470]
and ecx, 0xfffffffe
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x470]
and eax, 0x10
je 0x437603
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00437460
add esp, 8
mov dword [ebp - 0x218], eax
jmp 0x437655
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
push ecx
lea edx, [ebp - 0x210]
push edx
push str.DeleteFile__s____d
call fcn.00437970
add esp, 0xc
cmp dword [ebp - 0x218], 0
jne 0x437655
mov eax, dword [ebp + 0xc]
and eax, 0x100
je 0x437655
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.004370b0
add esp, 8
lea edx, [ebp - 0x470]
push edx
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x437538
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x470]
and edx, 1
je 0x43769d
mov eax, dword [ebp - 0x470]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.RemoveDirectory__s____d
call fcn.00437970
add esp, 0xc
cmp dword [ebp - 0x218], 0
jne 0x4376e7
mov edx, dword [ebp + 0xc]
and edx, 0x100
je 0x4376e7
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004370b0
add esp, 8
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret