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

Disassembly:
push 0xffffffffffffffff
push 0x4d15f1
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4ff0f4]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28c]
mov edi, dword [esp + 0x294]
mov ebp, dword [esp + 0x2a4]
push 0x4ea46c
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00405c50
add esp, 0xc
mov dword [esp + 0x284], 0
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x284], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00405410
cmp ebx, 0xffffffff
je 0x412b34
mov ebx, dword [esp + 0x298]
jmp 0x4129a0
mov ecx, 0x4ea478
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4129d6
test dx, dx
je 0x4129d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4129d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4129b0
xor eax, eax
jmp 0x4129db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x412b11
mov ecx, 0x4ea47c
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412a16
test dx, dx
je 0x412a12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412a16
add eax, 4
add ecx, 4
test dx, dx
jne 0x4129f0
xor eax, eax
jmp 0x412a1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x412b11
push 0x4ea484
lea edx, [esp + 0x24]
push esi
push edx
call fcn.00405c50
add esp, 0xc
mov dword [esp + 0x284], 1
lea ecx, [esp + 0x50]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00405c50
add esp, 0xc
mov byte [esp + 0x284], 3
lea ecx, [esp + 0x20]
call fcn.00405410
test byte [esp + 0x24], 0x10
je 0x412a9f
mov eax, dword [esp + 0x2a0]
mov ecx, dword [esp + 0x29c]
mov edx, dword [esp + 0x290]
push ebp
push eax
push ecx
push ebx
push edi
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.004128f0
mov ecx, dword [esp + 0x30]
add esp, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test bl, bl
je 0x412ab0
mov edx, dword [esp + 0x14]
mov eax, dword [ebp]
push edx
call fcn.00405070
mov eax, dword [esp + 0x14]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412afd
mov eax, dword [esp + 0x14]
push eax
call fcn.00412310
add esp, 4
test al, al
je 0x412afd
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x412afd
mov byte [edi], 1
mov dword [esp + 0x284], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00405410
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4129a0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x290], 0
je 0x412b47
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.004a974c
add esp, 0x274
ret