Function at 0x4054c0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x504628]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.0044c7ef
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405509
push 0x80004005
call fcn.00406bd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00406b40
lea ecx, [ebp - 0x3c]
call fcn.0044d14d
push str..
lea esi, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00405b60
mov edx, dword [ebp + 8]
push 0
push edx
lea ecx, [ebp - 0x3c]
call fcn.0044d1e5
mov edi, dword [ebp - 0x18]
test eax, eax
je 0x40566f
lea ebx, [ebx]
lea ecx, [ebp - 0x3c]
call fcn.0044cf21
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], eax
call fcn.0044d10e
test eax, eax
jne 0x405665
call fcn.0044c7ef
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4054ff
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00405f30
push 0x4f52e8
lea esi, [ebp - 0x14]
call fcn.00405b60
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0044d4a3
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00405f30
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4055fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x3c]
call eax
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x405632
push ecx
lea eax, [esi - 0x10]
mov dword [ebp - 0x24], esp
mov ebx, esp
push eax
call fcn.00406ad0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.004054c0
add esp, 4
jmp 0x405645
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405665
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0
jne 0x405560
lea ecx, [ebp - 0x3c]
call fcn.0044ce3b
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
test eax, eax
jne 0x4056e8
call fcn.0044d176
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056ae
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0044d176
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40570d
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405733
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret