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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1638
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x66f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004aa5ff
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x45f69b
push 0x80004005
call fcn.00460d60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
lea esi, [edi - 0x10]
mov eax, dword [ebp + 8]
or ebx, 0xffffffff
lea edx, [eax - 0x10]
cmp edx, esi
je 0x45f704
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x45f6f5
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x45f6f5
push edx
call fcn.00460c80
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x45f6ed
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
jmp 0x45f704
push dword [eax - 0xc]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00460ba0
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
call fcn.004ab08e
push str..
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0045fd70
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.004ab1d0
test eax, eax
je 0x45f93e
lea ecx, [ebp - 0x44]
call fcn.004ab378
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x28], eax
call fcn.004ab708
test eax, eax
jne 0x45f934
call fcn.004aa5ff
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45f691
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
push dword [edi - 0xc]
push edi
call fcn.00460130
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x45f793
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, eax
test edx, edx
jne 0x45f7a1
call fcn.004aa5ff
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov edx, eax
xor ecx, ecx
test edx, edx
setne cl
test ecx, ecx
je 0x45f691
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov eax, 0x64b920
mov byte [ebp - 4], 4
test eax, 0xffff0000
jne 0x45f898
movzx ebx, ax
push ebx
call fcn.004ab84a
test eax, eax
je 0x45f7eb
push ebx
push eax
lea ecx, [ebp - 0x18]
call fcn.00460790
mov esi, dword [ebp - 0x18]
or ebx, 0xffffffff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
push dword [esi - 0xc]
push esi
call fcn.00460130
add esi, 0xfffffff0
mov byte [ebp - 4], 3
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45f81b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x44]
call fcn.004ab42c
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00460130
mov byte [ebp - 4], 3
mov ecx, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45f859
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
push 0x10
call dword [eax + 0x38]
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x45f904
push ecx
mov ecx, dword [esi - 0x10]
lea ebx, [esi - 0x10]
mov dword [ebp - 0x24], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
lea edx, [ebx + 0xc]
mov ecx, eax
jl 0x45f8ad
cmp ecx, dword [ebx]
jne 0x45f8ad
mov eax, 1
lock xadd dword [edx], eax
jmp 0x45f8ef
push 0x64b920
lea ecx, [ebp - 0x18]
call fcn.004605d0
mov esi, dword [ebp - 0x18]
jmp 0x45f7ee
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
je 0x45f9b2
mov ecx, dword [ebx + 4]
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.005c1eed
mov ebx, dword [ebp - 0x18]
add esp, 0x10
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.0045f650
add esp, 4
or ebx, 0xffffffff
jmp 0x45f917
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45f934
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x28], 0
jne 0x45f732
lea ecx, [ebp - 0x44]
call fcn.004ab184
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
setne byte [ebp - 0xd]
call fcn.004ab134
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45f97c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x45f99d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
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.00460430
int3