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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x465014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x458], edi
push 0x103
push eax
call fcn.004233e8
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4031d0
sub ecx, edx
cmp byte [ebp + ecx - 0x20d], 0x5c
je 0x4031fc
push 0x4542c8
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.004234ab
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push 0x103
push eax
call fcn.004233e8
push 0x454520
lea eax, [ebp - 0x310]
push 0x103
push eax
call fcn.004234ab
add esp, 0x18
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x454], esi
cmp esi, 0xffffffff
jne 0x403258
call ebx
mov dword [edi], eax
mov eax, dword [edi]
mov dword [ebp - 0x45c], eax
cmp dword [edi], 0
jne 0x4033e7
test byte [ebp - 0x450], 0x10
jne 0x4033c9
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.004233e8
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.004234ab
add esp, 0x18
mov dword [edi], 0
lea eax, [ebp - 0x108]
mov esi, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4032d4
mov esi, dword [ebp - 0x454]
mov dword [edi], 2
jmp 0x403260
mov ebx, eax
and ebx, 0x10
cmp dword [edi], 0
jne 0x403410
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call edi
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call edi
mov edi, esi
nop
cmp di, 8
jg 0x4033b7
test ebx, ebx
jne 0x403365
push ebx
push 0x4000000
push 3
push ebx
push 1
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x403365
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4033aa
cmp si, 1
jne 0x4033ac
lea eax, [ebp - 0x108]
push eax
test ebx, ebx
je 0x40337e
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x403384
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4033aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x458]
push 0
mov dword [ecx], eax
movsx eax, di
imul eax, eax, 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x4033ac
xor esi, esi
inc edi
cmp si, 1
je 0x403320
mov edi, dword [ebp - 0x458]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x454]
cmp dword [edi], 0
jne 0x4033e7
lea eax, [ebp - 0x450]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403416
call ebx
cmp eax, 0x12
jne 0x403416
cmp dword [ebp - 0x45c], 0
jne 0x4033f7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040775e
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x454]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403260