Function at 0x405130
Capabilities:
Delete directory
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa5d9
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4c4f70
lea ecx, [ebp - 0x48]
call fcn.00404bb0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.00404260
push eax
call fcn.004050d0
add esp, 4
movzx eax, al
test eax, eax
jne 0x4051a8
mov byte [ebp - 0x2f1], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00404310
mov al, byte [ebp - 0x2f1]
jmp 0x4053df
mov dword [ebp - 0x29c], 0
push 0x24c
push 0
lea ecx, [ebp - 0x298]
push ecx
call fcn.00487e90
add esp, 0xc
push 0x4c516c
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00402ea0
add esp, 0xc
mov dword [ebp - 0x2f8], eax
lea ecx, [ebp - 0x29c]
push ecx
mov ecx, dword [ebp - 0x2f8]
call fcn.00404260
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x2c]
call fcn.00404310
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x40523d
mov ecx, dword [ebp + 8]
call fcn.00404260
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 0x2f2], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00404310
mov al, byte [ebp - 0x2f2]
jmp 0x4053df
lea edx, [ebp - 0x270]
push edx
lea ecx, [ebp - 0x2d4]
call fcn.00404bb0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2d4]
push eax
push 0x4c4f6c
call fcn.00407080
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x405289
lea edx, [ebp - 0x2d4]
push edx
push 0x4c5174
call fcn.00407080
add esp, 8
movzx eax, al
test eax, eax
je 0x40529d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2d4]
call fcn.00404310
jmp 0x4053a0
push 0
lea ecx, [ebp - 0x2d4]
call fcn.00404260
push eax
lea ecx, [ebp - 0x48]
call fcn.00402810
cmp eax, 0xffffffff
jne 0x4052cc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2d4]
call fcn.00404310
jmp 0x4053a0
push 0x4c517c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2b8]
push edx
call fcn.00402ea0
add esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.004026e0
mov ecx, dword [ebp - 0x29c]
and ecx, 1
je 0x40531c
push 0x80
lea ecx, [ebp - 0x2b8]
call fcn.00404260
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x29c]
and edx, 0x10
je 0x405338
lea eax, [ebp - 0x2b8]
push eax
call fcn.00405400
add esp, 4
jmp 0x405382
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2f0]
call fcn.00404280
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2f0]
call fcn.00404260
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x2f0]
push edx
lea eax, [ebp - 0x2b8]
push eax
call fcn.00406b40
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2f0]
call fcn.00404310
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b8]
call fcn.00404310
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2d4]
call fcn.00404310
lea ecx, [ebp - 0x29c]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40523d
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x2f3], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00404310
mov al, byte [ebp - 0x2f3]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret