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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9f18
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x63fbf0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.0045590c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4056e9
push 0x80004005
call fcn.00406d40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00406cd0
lea ecx, [ebp - 0x3c]
call fcn.004569ef
lea edx, [ebp + 8]
push edx
mov ecx, str..
mov byte [ebp - 4], 2
call fcn.00405d50
mov eax, dword [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.00456a96
test eax, eax
je 0x4058a6
lea ecx, [ebp - 0x3c]
call fcn.00456744
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], eax
call fcn.004569b1
test eax, eax
jne 0x40589c
call fcn.0045590c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4056df
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.004060c0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, 0x619c24
call fcn.00405d50
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00456d72
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004060c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057da
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 ebx, dword [ebp - 0x10]
test eax, eax
je 0x405869
push ecx
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [ebx - 0x10]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x1c], esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40581c
cmp eax, dword [esi]
jne 0x40581c
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x405857
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x405922
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00545e71
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
add edi, 0x10
mov dword [ecx], edi
call fcn.004056a0
add esp, 4
jmp 0x40587c
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40589c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0
jne 0x405738
lea ecx, [ebp - 0x3c]
call fcn.0045665e
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
test eax, eax
jne 0x405927
call fcn.00456a21
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x40590e
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.004063a0
call fcn.00456a21
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40594c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x405972
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