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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x661a75
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.00434a7c
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
push eax
call fcn.00407710
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 0x41046d
add esi, 0xfffffff0
push esi
call fcn.00407710
add esp, 4
lea esi, [eax + 0x10]
jmp 0x4104d7
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x41049e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x41049e
dec edi
add edi, esi
mov eax, edi
test eax, eax
je 0x410691
mov eax, dword [ecx]
push 1
push 1
call dword [eax]
test eax, eax
je 0x41069b
jmp 0x4104bb
call fcn.00423a0b
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 0x4106a0
jmp 0x410484
cmp dword [eax + 8], 1
lea esi, [eax + 0x10]
jl 0x410691
mov dword [esi - 0xc], 1
mov byte [esi + 1], 0
mov al, byte [edi]
mov byte [esi], al
push 0x687b0c
push esi
call fcn.00623a86
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 0x410505
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x41051a
push 1
push 0x687b0c
lea ecx, [ebp - 0x14]
call fcn.0040b8b0
push 3
push 0x688364
lea ecx, [ebp - 0x14]
call fcn.0040b8b0
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push 0
push esi
call fcn.00434d60
test eax, eax
je 0x41063d
nop
lea ecx, [ebp - 0x3c]
call fcn.00434f19
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], eax
call fcn.004352d8
test eax, eax
jne 0x410633
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00435011
mov ecx, dword [eax]
lea edi, [esi - 0x10]
mov byte [ebp - 4], 3
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x4105bf
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4105b0
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4105b0
push edx
call fcn.00407710
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4105a8
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 0x4105bf
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00408790
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 0x4105dd
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 0x410601
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x410633
push ecx
lea eax, [esi - 0x10]
mov edi, esp
push eax
mov dword [ebp - 0x18], edi
call fcn.00407710
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.00410400
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 0x410540
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410658
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x3c]
call fcn.00434c3d
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 0x41067f
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.004038c0
push 0x80004005
call fcn.004020e0
int3