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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6617f5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x714f78]
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.004348a3
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 0x41033d
add esi, 0xfffffff0
push esi
call fcn.00407700
add esp, 4
lea esi, [eax + 0x10]
jmp 0x4103a7
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x41036e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x41036e
dec edi
add edi, esi
mov eax, edi
test eax, eax
je 0x410561
mov eax, dword [ecx]
push 1
push 1
call dword [eax]
test eax, eax
je 0x41056b
jmp 0x41038b
call fcn.004237e3
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 0x410570
jmp 0x410354
cmp dword [eax + 8], 1
lea esi, [eax + 0x10]
jl 0x410561
mov dword [esi - 0xc], 1
mov byte [esi + 1], 0
mov al, byte [edi]
mov byte [esi], al
push 0x687b0c
push esi
call fcn.00623866
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 0x4103d5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x4103ea
push 1
push 0x687b0c
lea ecx, [ebp - 0x14]
call fcn.0040b740
push 3
push 0x688364
lea ecx, [ebp - 0x14]
call fcn.0040b740
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push 0
push esi
call fcn.00434b87
test eax, eax
je 0x41050d
nop
lea ecx, [ebp - 0x3c]
call fcn.00434d40
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], eax
call fcn.004350ff
test eax, eax
jne 0x410503
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00434e38
mov ecx, dword [eax]
lea edi, [esi - 0x10]
mov byte [ebp - 4], 3
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x41048f
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x410480
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x410480
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 0x410478
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 0x41048f
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 0x4104ad
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 0x4104d1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x410503
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.004102d0
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 0x410410
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410528
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x3c]
call fcn.00434a64
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 0x41054f
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