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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66aa95
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x71cf78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.00434c32
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
push eax
call fcn.00407700
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov edi, dword [esi - 0xc]
mov byte [ebp - 4], 2
cmp edi, 1
jg 0x41061d
add esi, 0xfffffff0
push esi
call fcn.00407700
add esp, 4
lea esi, [eax + 0x10]
jmp 0x410687
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x41064e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x41064e
dec edi
add edi, esi
mov eax, edi
test eax, eax
je 0x410841
mov eax, dword [ecx]
push 1
push 1
call dword [eax]
test eax, eax
je 0x41084b
jmp 0x41066b
call fcn.00423b74
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
dec edi
mov ecx, eax
add edi, esi
mov eax, edi
test ecx, ecx
je 0x410850
jmp 0x410634
cmp dword [eax + 8], 1
lea esi, [eax + 0x10]
jl 0x410841
mov dword [esi - 0xc], 1
mov byte [esi + 1], 0
mov al, byte [edi]
mov byte [esi], al
push 0x690b6c
push esi
call fcn.0062c66c
add esp, 8
test eax, eax
setne byte [ebp - 0xd]
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4106b5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x4106ca
push 1
push 0x690b6c
lea ecx, [ebp - 0x14]
call fcn.0040b8d0
push 3
push 0x69143c
lea ecx, [ebp - 0x14]
call fcn.0040b8d0
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push 0
push esi
call fcn.00434f16
test eax, eax
je 0x4107ed
nop
lea ecx, [ebp - 0x3c]
call fcn.004350cf
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], eax
call fcn.0043548e
test eax, eax
jne 0x4107e3
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004351c7
mov ecx, dword [eax]
lea edi, [esi - 0x10]
mov byte [ebp - 4], 3
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x41076f
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x410760
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x410760
push edx
call fcn.00407700
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x410758
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x41076f
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00408780
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41078d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x3c]
push 0x10
call dword [eax + 0x38]
test eax, eax
jne 0x4107b1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4107e3
push ecx
lea eax, [esi - 0x10]
mov edi, esp
push eax
mov dword [ebp - 0x18], edi
call fcn.00407700
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.004105b0
add esp, 4
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp dword [ebp - 0x20], 0
jne 0x4106f0
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410808
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x3c]
call fcn.00434df3
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41082f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004020e0
call fcn.004038a0
push 0x80004005
call fcn.004020e0
int3