Function at 0x40be80
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x444289
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45d55c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x58]
cmp dword [ebp - 0xc], ebx
mov dword [esp + 0x50], ebx
jne 0x40befd
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
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 0x40bee7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push ecx
lea esi, [ebp - 0x10]
mov dword [esp + 0x30], esp
mov edi, esp
push esi
call fcn.00401350
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040b2d0
add esp, 4
test eax, eax
jne 0x40bf5b
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf42
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ecx, dword [ebp - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x40c1ff
cmp eax, ecx
jg 0x40c1ff
mov al, byte [eax + ebp]
cmp al, 0x5c
jne 0x40bfc4
mov eax, ecx
add eax, 0xffffffff
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x60]
call fcn.0040b8e0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 1
call fcn.004016b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x50], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bfc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x58]
lea ecx, [esp + 0x30]
call fcn.0041d6c1
push 0x44cd6c
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x5c], 2
call fcn.00401770
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 3
call fcn.0041d74d
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x50], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c023
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40c1da
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x30]
call fcn.0041d552
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.0041d994
mov eax, dword [eax]
push 0x44cd68
or ebx, 1
push eax
mov byte [esp + 0x58], 4
mov dword [esp + 0x20], ebx
call fcn.0042e637
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40c09e
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x34]
call fcn.0041d994
mov eax, dword [eax]
push 0x44cd64
push eax
or ebx, 2
call fcn.0042e637
add esp, 8
test eax, eax
sete al
test al, al
mov byte [esp + 0x17], 0
je 0x40c0a3
mov byte [esp + 0x17], 1
test bl, 2
je 0x40c0cf
mov eax, dword [esp + 0x1c]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c0cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 1
mov dword [esp + 0x50], 2
je 0x40c0ff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c0ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
jne 0x40c1d2
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x34]
call fcn.0041d904
mov eax, dword [eax]
push 0x80
push eax
call edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c142
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x34]
call eax
test eax, eax
je 0x40c19b
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
lea ecx, [esp + 0x38]
call fcn.0041d904
call fcn.0040be80
add esp, 4
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x34]
call fcn.0041d904
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40c1c6
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x34]
call fcn.0041d904
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c1d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40c031
lea ecx, [esp + 0x30]
call fcn.0041d482
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x50], 0
call fcn.0041d6e5
jmp 0x40bec3
push 0x80070057
call fcn.00401020
int3