Function at 0x66a870
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70a0b1
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x82d084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2d0], esi
mov eax, dword [esi + 0x298]
lea ecx, [ebp - 0x88]
add eax, 0xfc
push eax
call fcn.0042fc50
lea ebx, [esi + 0x2a8]
mov dword [ebp - 4], 0
push ecx
mov ecx, ebx
mov dword [ebp - 0x2dc], ebx
call fcn.00670320
nop dword [eax + eax]
lea eax, [ebp - 0x2c0]
mov ecx, ebx
push eax
call fcn.00670410
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x40]
call fcn.0042fc50
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x66a92a
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x66a92a
push 1
push 0x761550
lea ecx, [ebp - 0x40]
call fcn.0042ff20
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x2f4], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x66a950
sub ecx, edx
lea eax, [ebp - 0x2c0]
push ecx
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00430160
push ecx
lea edx, [ebp - 0x2f4]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.006185e0
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2e0]
cmp edx, 0x10
jb 0x66a9c0
mov ecx, dword [ebp - 0x2f4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x66a9b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x66ae3c
push edx
push ecx
call fcn.0067bc93
add esp, 8
lea eax, [ebp - 0x70]
mov dword [ebp - 0x2e4], 0
push eax
lea ecx, [esi + 0x90]
mov dword [ebp - 0x2e0], 0xf
mov byte [ebp - 0x2f4], 0
call fcn.0066bb60
mov cl, byte [ebp - 0x8c]
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2f8], 0xf
mov byte [eax], cl
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 0x30c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x66aa16
sub ecx, edx
lea eax, [ebp - 0x2c0]
push ecx
push eax
lea ecx, [ebp - 0x30c]
call fcn.00430160
push ecx
lea edx, [ebp - 0x30c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.006185e0
add esp, 4
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x2f8]
cmp edx, 0x10
jb 0x66aa86
mov ecx, dword [ebp - 0x30c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x66aa7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x66ae3c
push edx
push ecx
call fcn.0067bc93
add esp, 8
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2f8], 0xf
mov byte [ebp - 0x30c], 0
call fcn.0042ff20
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, dword [ebp - 0x94]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.006ab0eb
mov edi, eax
push 0x5c
push edi
call fcn.006d0be9
add esp, 0xc
test eax, eax
je 0x66aaed
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push edi
call fcn.006705a0
push edi
call fcn.00690e3e
add esp, 4
cmp byte [ebp - 0x8c], 0
je 0x66ab30
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
test esi, esi
je 0x66ab1b
cmp esi, 0xffffffff
je 0x66ab1b
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea ecx, [ebp - 0x58]
call fcn.0042fd70
lea ecx, [ebp - 0x70]
call fcn.0042fd70
jmp 0x66ade8
mov ebx, dword [ebp - 0x2d0]
mov eax, dword [ebx + 0x2b0]
test eax, eax
je 0x66ab58
cmp dword [eax + 0x38], 0
je 0x66ab58
mov ecx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 0x2d8], eax
mov esi, dword [ebp - 0x90]
sub esp, 8
movd xmm1, dword [ebx + 0x10]
mov eax, esi
shr eax, 0x1f
cvtdq2pd xmm1, xmm1
movd xmm0, esi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x7e6810]
divsd xmm0, xmm1
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.006d1e80
movd xmm1, dword [ebx + 0x10]
add esi, 0x1e
fstp qword [ebp - 0x18]
cvttsd2si eax, qword [ebp - 0x18]
cvtdq2pd xmm1, xmm1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0xa0]
add eax, esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x7e6810]
divsd xmm0, xmm1
movsd qword [ebp - 0x2cc], xmm0
fld qword [ebp - 0x2cc]
fstp qword [esp]
call fcn.006d1e80
fstp qword [ebp - 0x2cc]
cvttsd2si esi, qword [ebp - 0x2cc]
push 0x10
call fcn.00695088
mov ecx, dword [ebp - 0x2d4]
add esp, 0xc
mov dword [ebp - 0x2c8], eax
mov dword [eax], ecx
mov ecx, dword [ebp - 0x2d8]
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
mov edx, dword [ebx + 0x88]
mov edi, edx
mov esi, dword [ebp - 0x14]
mov eax, dword [edx + 4]
mov cl, byte [eax + 0xd]
test cl, cl
jne 0x66ac4a
mov ecx, eax
cmp dword [ecx + 0x10], esi
jge 0x66ac3d
mov ecx, dword [ecx + 8]
jmp 0x66ac41
mov edi, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x66ac33
mov cl, byte [eax + 0xd]
cmp byte [edi + 0xd], 0
jne 0x66ac55
cmp esi, dword [edi + 0x10]
jge 0x66ac57
mov edi, edx
cmp edi, edx
je 0x66acb3
test cl, cl
jne 0x66ac74
nop
cmp dword [eax + 0x10], esi
jge 0x66ac6a
mov eax, dword [eax + 8]
jmp 0x66ac6e
mov edx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x66ac60
cmp byte [edx + 0xd], 0
jne 0x66ac7f
cmp esi, dword [edx + 0x10]
jge 0x66ac85
mov edx, dword [ebx + 0x88]
mov eax, dword [edx + 0x1c]
lea ecx, [edx + 0x18]
cmp eax, dword [ecx + 8]
je 0x66aca1
mov edx, dword [ebp - 0x2c8]
mov dword [eax], edx
add dword [ecx + 4], 4
jmp 0x66add2
lea edx, [ebp - 0x2c8]
push edx
push eax
call fcn.00455220
jmp 0x66add2
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c8]
mov byte [ebp - 4], 8
push eax
push 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x28], 0
call fcn.00455220
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x88]
call fcn.0066bb80
mov cl, byte [ebp - 0x28]
lea edi, [eax + 4]
mov byte [eax], cl
lea eax, [ebp - 0x24]
cmp edi, eax
je 0x66adca
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sub ebx, eax
mov ecx, dword [edi + 8]
mov esi, ebx
mov edx, dword [edi]
sub ecx, edx
sar esi, 2
sar ecx, 2
cmp esi, ecx
jbe 0x66adb7
cmp esi, 0x3fffffff
ja 0x66ae41
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x2c8], eax
mov eax, 0x3fffffff
sub eax, dword [ebp - 0x2c8]
cmp ecx, eax
ja 0x66ad56
mov eax, dword [ebp - 0x2c8]
add eax, ecx
cmp eax, esi
cmovb eax, esi
mov esi, eax
test edx, edx
je 0x66ada3
shl ecx, 2
cmp ecx, 0x1000
jb 0x66ad85
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x2c8], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x66ae3c
mov edx, dword [ebp - 0x2c8]
push ecx
push edx
call fcn.0067bc93
mov dword [edi], 0
add esp, 8
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push esi
call fcn.00455380
mov dword [edi], eax
mov dword [edi + 4], eax
lea eax, [eax + esi*4]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x24]
mov esi, dword [edi]
push ebx
push eax
push esi
call fcn.0068e280
lea eax, [esi + ebx]
add esp, 0xc
mov dword [edi + 4], eax
lea ecx, [ebp - 0x24]
call fcn.00456350
lea ecx, [ebp - 0x58]
call fcn.0042fd70
lea ecx, [ebp - 0x70]
call fcn.0042fd70
mov ebx, dword [ebp - 0x2dc]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0042fd70
push ecx
mov ecx, ebx
call fcn.00670380
test al, al
je 0x66ae0b
mov esi, dword [ebp - 0x2d0]
jmp 0x66a8e0
mov eax, dword [ebp - 0x2d0]
lea ecx, [ebp - 0x88]
mov byte [eax + 0xa], 1
call fcn.0042fd70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0067ba01
mov esp, ebp
pop ebp
ret
call fcn.00691015
call fcn.004392d0
int3