Function at 0x406e00
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5513e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5bb270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
cmp dword [ebp + 8], 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1c], ecx
jbe 0x40705f
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
cmp eax, 3
jne 0x406e9b
cmp dword [ebx + 0x208], 2
jne 0x406e9b
push dword [ebp + 0x20]
mov ecx, esi
push dword [ebp + 0x1c]
push ebx
push dword [esi + 4]
call fcn.004086c0
push 1
mov eax, edi
xor edx, edx
mov ecx, esi
div dword [ebp + 8]
add eax, dword [ebp + 0x10]
push eax
call fcn.004083b0
jmp 0x40700d
cmp eax, 4
jne 0x406f9e
test ecx, ecx
je 0x406f9e
call fcn.004122b0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x407030
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
xor edi, edi
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], edi
jbe 0x406f77
nop
test edi, edi
js 0x40703a
mov eax, dword [ebp + 0x24]
cmp edi, dword [eax + 8]
jge 0x40703a
mov eax, dword [eax + 4]
lea ebx, [esi - 0x10]
mov edx, dword [eax + edi*4]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x406f4d
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x406f3e
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x406f3e
push ecx
call fcn.00402320
add esp, 4
mov dword [ebp - 0x2c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x406f36
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x406f4d
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.004046f0
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp + 0xc]
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x407030
push ebx
push esi
call fcn.005375f1
add esp, 8
test eax, eax
je 0x406fe6
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x406ee0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406f98
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406fd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x406fc2
cmp eax, 5
jne 0x406fd9
cmp dword [esi + 0x14], 4
je 0x406fd9
push 0
push ebx
mov ecx, esi
call fcn.00407910
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x24]
push dword [ebp + 0x18]
add eax, edi
jmp 0x406e86
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407007
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
add ebx, 0x20c
add edi, dword [ebp - 0x24]
inc edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], edi
mov dword [ebp + 0xc], ebx
cmp edx, dword [ebp + 8]
jae 0x40703f
mov ecx, dword [ebp - 0x1c]
jmp 0x406e60
push 0x80004005
call fcn.004022c0
call fcn.0041148d
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40705f
mov eax, 0xbc2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20