Function at 0x66c430
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70bef1
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x82f084]
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.00671f80
nop dword [eax + eax]
lea eax, [ebp - 0x2c0]
mov ecx, ebx
push eax
call fcn.00672070
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 0x66c4ea
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x66c4ea
push 1
push 0x7625f8
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 0x66c510
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.00619de0
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2e0]
cmp edx, 0x10
jb 0x66c580
mov ecx, dword [ebp - 0x2f4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x66c576
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x66c9fc
push edx
push ecx
call fcn.0067d8e3
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.0066d720
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 0x66c5d6
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.00619de0
add esp, 4
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x2f8]
cmp edx, 0x10
jb 0x66c646
mov ecx, dword [ebp - 0x30c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x66c63c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x66c9fc
push edx
push ecx
call fcn.0067d8e3
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.006acd3e
mov edi, eax
push 0x5c
push edi
call fcn.006d2849
add esp, 0xc
test eax, eax
je 0x66c6ad
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push edi
call fcn.00672200
push edi
call fcn.00692a8e
add esp, 4
cmp byte [ebp - 0x8c], 0
je 0x66c6f0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
test esi, esi
je 0x66c6db
cmp esi, 0xffffffff
je 0x66c6db
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 0x66c9a8
mov ebx, dword [ebp - 0x2d0]
mov eax, dword [ebx + 0x2b0]
test eax, eax
je 0x66c718
cmp dword [eax + 0x38], 0
je 0x66c718
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 + 0x7e8490]
divsd xmm0, xmm1
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.006d3ae0
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 + 0x7e8490]
divsd xmm0, xmm1
movsd qword [ebp - 0x2cc], xmm0
fld qword [ebp - 0x2cc]
fstp qword [esp]
call fcn.006d3ae0
fstp qword [ebp - 0x2cc]
cvttsd2si esi, qword [ebp - 0x2cc]
push 0x10
call fcn.00696cd8
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 0x66c80a
mov ecx, eax
cmp dword [ecx + 0x10], esi
jge 0x66c7fd
mov ecx, dword [ecx + 8]
jmp 0x66c801
mov edi, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x66c7f3
mov cl, byte [eax + 0xd]
cmp byte [edi + 0xd], 0
jne 0x66c815
cmp esi, dword [edi + 0x10]
jge 0x66c817
mov edi, edx
cmp edi, edx
je 0x66c873
test cl, cl
jne 0x66c834
nop
cmp dword [eax + 0x10], esi
jge 0x66c82a
mov eax, dword [eax + 8]
jmp 0x66c82e
mov edx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x66c820
cmp byte [edx + 0xd], 0
jne 0x66c83f
cmp esi, dword [edx + 0x10]
jge 0x66c845
mov edx, dword [ebx + 0x88]
mov eax, dword [edx + 0x1c]
lea ecx, [edx + 0x18]
cmp eax, dword [ecx + 8]
je 0x66c861
mov edx, dword [ebp - 0x2c8]
mov dword [eax], edx
add dword [ecx + 4], 4
jmp 0x66c992
lea edx, [ebp - 0x2c8]
push edx
push eax
call fcn.004555d0
jmp 0x66c992
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.004555d0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x88]
call fcn.0066d740
mov cl, byte [ebp - 0x28]
lea edi, [eax + 4]
mov byte [eax], cl
lea eax, [ebp - 0x24]
cmp edi, eax
je 0x66c98a
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 0x66c977
cmp esi, 0x3fffffff
ja 0x66ca01
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x2c8], eax
mov eax, 0x3fffffff
sub eax, dword [ebp - 0x2c8]
cmp ecx, eax
ja 0x66c916
mov eax, dword [ebp - 0x2c8]
add eax, ecx
cmp eax, esi
cmovb eax, esi
mov esi, eax
test edx, edx
je 0x66c963
shl ecx, 2
cmp ecx, 0x1000
jb 0x66c945
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x2c8], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x66c9fc
mov edx, dword [ebp - 0x2c8]
push ecx
push edx
call fcn.0067d8e3
mov dword [edi], 0
add esp, 8
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push esi
call fcn.00455730
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.0068fed0
lea eax, [esi + ebx]
add esp, 0xc
mov dword [edi + 4], eax
lea ecx, [ebp - 0x24]
call fcn.00456700
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.00671fe0
test al, al
je 0x66c9cb
mov esi, dword [ebp - 0x2d0]
jmp 0x66c4a0
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.0067d651
mov esp, ebp
pop ebp
ret
call fcn.00692c65
call fcn.00439460
int3