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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0a06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x120]
call fcn.00413e80
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 0
push 0x4b0e64
mov edx, dword [ebp - 0x84]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00452d90
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x120]
call fcn.00431070
push 0x250
push 0
lea ecx, [ebp - 0x3b8]
push ecx
call fcn.00464f70
add esp, 0xc
lea edx, [ebp - 0x108]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x14], 8
jb 0x4525f1
mov dword [ebp - 0x48], 1
jmp 0x4525f8
mov dword [ebp - 0x48], 0
mov dl, byte [ebp - 0x48]
mov byte [ebp - 0xd], dl
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x45261a
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], edx
lea eax, [ebp - 0x3b8]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
je 0x452aa6
push 0x4b0e6c
lea edx, [ebp - 0x38c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x45290b
push 0x4b0e70
lea eax, [ebp - 0x38c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x45290b
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x150]
call fcn.00413e80
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x98], edx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x38c]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
lea edx, [ebp - 0x138]
push edx
call fcn.00452d90
add esp, 0xc
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x108]
call fcn.00404a80
lea ecx, [ebp - 0x138]
call fcn.00431070
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x150]
call fcn.00431070
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x3b8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x452720
mov eax, dword [ebp - 0x18]
and eax, 0xfffffffe
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x18]
and ecx, 2
je 0x452738
mov edx, dword [ebp - 0x18]
and edx, 0xfffffffd
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x24], 0
je 0x4527ae
lea eax, [ebp - 0x108]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x14], 8
jb 0x45275f
mov dword [ebp - 0x50], 1
jmp 0x452766
mov dword [ebp - 0x50], 0
mov al, byte [ebp - 0x50]
mov byte [ebp - 0xe], al
movzx ecx, byte [ebp - 0xe]
test ecx, ecx
je 0x452788
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x3b8]
and eax, 0x10
je 0x45289f
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 8
jb 0x4527de
mov dword [ebp - 0x58], 1
jmp 0x4527e5
mov dword [ebp - 0x58], 0
mov cl, byte [ebp - 0x58]
mov byte [ebp - 0xf], cl
movzx edx, byte [ebp - 0xf]
test edx, edx
je 0x452807
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xb4]
push eax
call fcn.00452550
add esp, 0xc
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x14], 8
jb 0x452852
mov dword [ebp - 0x60], 1
jmp 0x452859
mov dword [ebp - 0x60], 0
mov cl, byte [ebp - 0x60]
mov byte [ebp - 0x10], cl
movzx edx, byte [ebp - 0x10]
test edx, edx
je 0x45287b
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp - 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x45290b
lea eax, [ebp - 0x108]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x14], 8
jb 0x4528c0
mov dword [ebp - 0x68], 1
jmp 0x4528c7
mov dword [ebp - 0x68], 0
mov al, byte [ebp - 0x68]
mov byte [ebp - 0x11], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x4528e9
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x3b8]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x452650
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x10], 0
je 0x452a82
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x1c]
and eax, 1
je 0x452964
mov ecx, dword [ebp - 0x1c]
and ecx, 0xfffffffe
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x3c], 1
mov edx, dword [ebp - 0x1c]
and edx, 2
je 0x45297c
mov eax, dword [ebp - 0x1c]
and eax, 0xfffffffd
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], 1
cmp dword [ebp - 0x3c], 0
je 0x4529f2
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x4529a3
mov dword [ebp - 0x70], 1
jmp 0x4529aa
mov dword [ebp - 0x70], 0
mov cl, byte [ebp - 0x70]
mov byte [ebp - 0x12], cl
movzx edx, byte [ebp - 0x12]
test edx, edx
je 0x4529cc
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x168]
push edx
call fcn.00452f30
add esp, 8
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x44]
cmp dword [edx + 0x14], 8
jb 0x452a2c
mov dword [ebp - 0x78], 1
jmp 0x452a33
mov dword [ebp - 0x78], 0
mov al, byte [ebp - 0x78]
mov byte [ebp - 0x13], al
movzx ecx, byte [ebp - 0x13]
test ecx, ecx
je 0x452a55
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x168]
call fcn.00431070
mov dword [ebp - 0xec], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.00431070
mov eax, dword [ebp - 0xec]
jmp 0x452ac8
mov dword [ebp - 0xf0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.00431070
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret