Function at 0x45b570
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
mov eax, dword [0x5522c0]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x45b5c2
push esi
mov ecx, edi
call fcn.0045b830
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.004e4be0
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x26a]
push ecx
mov word [esp + 0x26c], ax
call fcn.004e98c0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
add esp, 0xc
push 0x104
push esi
lea edx, [esp + 0x268]
push edx
call edi
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0x25e], 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x45b626
push 0x51d5c8
lea ecx, [esp + 0x264]
push ecx
call ebx
cmp dword [ebp + 0x10], 0
jne 0x45b640
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x260]
push edx
call fcn.0045b830
add esp, 4
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x67a]
push ecx
mov word [esp + 0x67c], ax
call fcn.004e98c0
add esp, 0xc
push 0x104
lea edx, [esp + 0x264]
push edx
lea eax, [esp + 0x678]
push eax
call edi
push 0x51d674
lea ecx, [esp + 0x674]
push ecx
call ebx
push 0x24c
lea edx, [esp + 0x18]
push 0
push edx
mov dword [esp + 0x1c], 0
call fcn.004e98c0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x674]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45b6e0
cmp dword [ebp + 0x10], 0
je 0x45b80c
lea edx, [esp + 0x260]
push edx
jmp 0x45b806
mov eax, dword [esp + 0x10]
test eax, 0x4100
jne 0x45b7dd
test al, 4
jne 0x45b7dd
push 0x51b6d4
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x45b7dd
push 0x519b00
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x45b7dd
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x472]
push eax
mov word [esp + 0x474], dx
call fcn.004e98c0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x264]
push ecx
lea edx, [esp + 0x470]
push edx
call edi
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x46c]
push ecx
call ebx
test byte [esp + 0x10], 0x10
je 0x45b794
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x470]
push ecx
call fcn.0045b570
add esp, 0xc
lea edx, [esp + 0x10]
push edx
jmp 0x45b7e2
cmp dword [ebp + 0x10], 0
je 0x45b7c2
push 0x80
lea edx, [esp + 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x10]
push edx
jmp 0x45b7e2
lea ecx, [esp + 0x468]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.0045b830
add esp, 4
lea edx, [esp + 0x10]
push edx
jmp 0x45b7e2
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45b6e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x10], 0
je 0x45b80c
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x87c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e4be0
mov esp, ebp
pop ebp
ret