Function at 0x4067d0
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4389a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0x58]
cmp dword [ebp - 0xc], ebx
mov dword [esp + 0x50], ebx
jne 0x40680f
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x406a21
lea ecx, [esp + 0x30]
call fcn.0040c66b
push 0x43ca78
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x5c], 1
call fcn.00406570
add esp, 0xc
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 2
call fcn.0040c6e3
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x50], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40686b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, ebx
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
je 0x406a07
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop
lea ecx, [esp + 0x30]
call fcn.0040c44c
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
call fcn.0040c90b
mov eax, dword [eax]
push 0x43ca74
or ebx, 1
push eax
mov byte [esp + 0x58], 3
mov dword [esp + 0x1c], ebx
call fcn.00415852
add esp, 8
test eax, eax
je 0x4068e3
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040c90b
mov eax, dword [eax]
push 0x43ca70
push eax
or ebx, 2
call fcn.00415852
add esp, 8
test eax, eax
mov byte [esp + 0x13], 0
jne 0x4068e8
mov byte [esp + 0x13], 1
test bl, 2
je 0x406912
mov eax, dword [esp + 0x18]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406912
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 1
mov dword [esp + 0x50], 1
je 0x406940
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406940
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
jne 0x4069fb
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
call fcn.0040c86c
mov eax, dword [eax]
push 0x80
push eax
call ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406982
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
push 0x10
lea ecx, [esp + 0x34]
call dword [eax + 0x38]
test eax, eax
je 0x4069c6
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ecx
lea ecx, [esp + 0x38]
call fcn.0040c86c
mov ecx, dword [esp + 0x28]
call fcn.004067d0
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x34]
call fcn.0040c86c
mov eax, dword [eax]
push eax
call edi
mov eax, dword [esp + 0x28]
jmp 0x4069e1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
call fcn.0040c86c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4069fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
jne 0x406880
mov ebp, dword [esp + 0x58]
lea ecx, [esp + 0x30]
call fcn.0040c37c
push ebp
call edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 0
call fcn.0040c68f
lea eax, [ebp - 0x10]
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 4