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

Disassembly:
mov eax, 0x4a0c74
call fcn.0049e6bc
sub esp, 0x288
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x28], ecx
xor ebx, ebx
xor eax, eax
push 7
mov dword [ebp - 4], ebx
pop ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x24], ax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x40]
call fcn.0041ef03
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 8]
dec eax
push eax
call fcn.00424d05
push 0x5c
pop ecx
cmp word [eax], cx
je 0x45a4c2
mov esi, 0x4ca9a4
push esi
call fcn.00438238
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.004232bf
mov esi, 0x4ca9bc
push esi
call fcn.00438238
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.004232bf
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x294]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45a4ff
mov esi, ebx
jmp 0x45a64f
mov ebx, dword [ebp + 0x20]
lea eax, [ebp - 0x268]
push 0x4ca9c4
push eax
call fcn.0043890f
pop ecx
pop ecx
test eax, eax
je 0x45a628
lea eax, [ebp - 0x268]
push 0x4ca9b0
push eax
call fcn.0043890f
pop ecx
pop ecx
test eax, eax
je 0x45a628
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.0041ef03
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 8]
dec eax
push eax
call fcn.00424d05
push 0x5c
pop ecx
cmp word [eax], cx
je 0x45a576
push 0x4ca9b8
call fcn.00438238
pop ecx
push eax
push 0x4ca9b8
lea ecx, [ebp - 0x24]
call fcn.004232bf
cmp word [ebp - 0x268], 0
jne 0x45a584
xor eax, eax
jmp 0x45a591
lea eax, [ebp - 0x268]
push eax
call fcn.00438238
pop ecx
push eax
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x24]
call fcn.004232bf
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x45a5cd
and eax, 0xfffffffe
lea ecx, [ebp - 0x24]
cmp dword [ebp - 0x10], 8
push eax
cmovae ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x294], 0x10
lea eax, [ebp - 0x24]
je 0x45a606
push ebx
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0041ee74
mov ecx, dword [ebp - 0x28]
mov edx, edi
call fcn.0045a44e
add esp, 0x1c
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 8
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x45a628
cmp dword [ebp - 0x10], 8
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x24]
cmp edi, eax
je 0x45a628
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.0041ef03
lea eax, [ebp - 0x294]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x45a643
cmp byte [ebx], 0
je 0x45a502
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.0041f6b8
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.0041f6b8
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.0041f6b8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret