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

Disassembly:
push 0xffffffffffffffff
push 0x4f8219
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov eax, dword [0x50d0e0]
mov dword [esp + 0x278], 0
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x280]
lea ecx, [esp + 0x14]
push ebp
push str._s
push ecx
mov byte [esp + 0x284], 1
call fcn.004074f0
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x18], edi
jne 0x4b927a
mov eax, dword [esp + 0x14]
mov edx, dword [0x50d0e4]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b9253
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4b9253
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004de3a6
add esp, 4
mov ecx, dword [0x50d0e4]
lea eax, [ebp - 0xc]
cmp eax, ecx
je 0x4b9273
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x4b9273
push esi
call fcn.004de3a6
add esp, 4
xor eax, eax
jmp 0x4b9486
lea ecx, [esp + 0x4c]
push ecx
push 0x510318
call fcn.004dfe9e
lea edx, [esp + 0x54]
mov esi, eax
push edx
push 0x510310
call fcn.004dfe9e
add esp, 0x10
test esi, esi
je 0x4b940c
test eax, eax
je 0x4b940c
test byte [esp + 0x20], 0x10
je 0x4b936d
mov eax, dword [0x50d0e0]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x10]
push ecx
push ebp
push 0x51736c
push edx
mov byte [esp + 0x288], 2
call fcn.004074f0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x20], esp
mov esi, esp
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x4b9304
mov dword [esi], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4b932a
mov ecx, dword [0x50d0e0]
mov dword [esi], ecx
mov eax, dword [esp + 0x14]
test eax, eax
mov edi, eax
je 0x4b931d
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.004021f0
mov edi, dword [esp + 0x1c]
mov ecx, ebx
call fcn.004b91b0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x50d0e4]
mov byte [esp + 0x278], 1
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4b940c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b940c
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
jmp 0x4b9404
mov ecx, dword [0x50d0e0]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x4c]
lea eax, [esp + 0x10]
push edx
push ebp
push 0x51736c
push eax
mov byte [esp + 0x288], 3
call fcn.004074f0
mov eax, dword [ebx + 0xb0]
mov esi, 1
add esp, 0x10
cmp eax, esi
je 0x4b93d5
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b93d5
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4b93d5
cmp dword [ebx + 0xb0], esi
jne 0x4b93a6
mov eax, dword [esp + 0x10]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x278], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b940c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b940c
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004de3a6
add esp, 4
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4b927a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x14]
mov edx, dword [0x50d0e4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b945d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b945d
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004de3a6
add esp, 4
mov ecx, dword [0x50d0e4]
lea eax, [ebp - 0xc]
cmp eax, ecx
je 0x4b9481
lea esi, [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b9481
push esi
call fcn.004de3a6
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x270]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x26c
ret 4