Function at 0x66206450
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x6621685c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4f0
push ebp
lea ecx, [esp + 0x23c]
call fcn.66202d60
mov dword [esp + 0x4fc], 0
push 0
push 8
push 0x252
lea ecx, [esp + 0x248]
call fcn.66203b20
mov ebp, eax
mov eax, dword [esp + 0x50c]
push eax
lea ecx, [esp + 0x190]
call fcn.66203610
mov byte [esp + 0x4fc], 1
push 0
push 0
push 0xffffffffffffffff
push 0x66217cb8
push 1
lea ecx, [esp + 0x1a0]
call fcn.66202f40
lea ecx, [esp + 0x18c]
call fcn.66202e50
mov edx, dword [esp + 0x504]
push 1
push eax
push 1
push 1
push 0x250
push ebp
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
test eax, eax
jl 0x6620678c
push ebx
push esi
push edi
lea esp, [esp]
test byte [ebp + 0x38], 0x10
jne 0x6620674f
mov eax, dword [ebp + 0x3c]
mov edx, dword [esp + 0x518]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 + 0x40], cx
mov eax, dword [edx + 4]
lea esi, [ebp + eax*2 + 0x42]
test esi, esi
je 0x6620674f
movzx eax, word [esi]
mov ecx, esi
test ax, ax
je 0x6620674f
movzx eax, ax
lea ecx, [ecx]
cmp ax, 0x30
jb 0x6620674f
cmp ax, 0x39
ja 0x6620674f
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x66206550
mov ebx, dword [esp + 0x514]
push ebx
lea ecx, [esp + 0xec]
call fcn.66203610
mov byte [esp + 0x508], 2
push 0
push 0
push 0xffffffffffffffff
push 0x66217cb4
push 1
lea ecx, [esp + 0xfc]
call fcn.66202f40
push 0
push 0
push 0xffffffffffffffff
lea edi, [ebp + 0x40]
push edi
push 1
lea ecx, [esp + 0xfc]
call fcn.66202f40
mov eax, dword [esp + 0x52c]
test eax, eax
je 0x662065ed
mov ecx, dword [esp + 0xe8]
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0xf8]
push eax
push ecx
call fcn.66202b20
add esp, 0x14
test eax, eax
je 0x6620673b
push esi
call fcn.6620bdc0
add esp, 4
push ebx
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.66203610
mov byte [esp + 0x508], 3
mov edx, dword [esp + 0x524]
mov eax, dword [edx]
xor bl, bl
cmp eax, esi
jae 0x662067cd
cmp byte [esp + 0x528], bl
je 0x66206664
cmp eax, dword [esp + 0x520]
je 0x66206664
push 0
push 0
push 0xffffffffffffffff
push 0x66217cb4
push 1
lea ecx, [esp + 0x4c]
call fcn.66202f40
mov ecx, dword [esp + 0x51c]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
push 0
push 0
push eax
push ecx
push 1
lea ecx, [esp + 0x4c]
call fcn.66202f40
mov bl, 1
mov eax, dword [esp + 0x524]
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x300]
push 0x104
push ecx
mov dword [eax], esi
call fcn.6620cc68
mov ecx, dword [esp + 0x52c]
add esp, 0x10
push 0xffffffffffffffff
lea edx, [esp + 0x2fc]
push edx
call fcn.662032c0
test bl, bl
je 0x6620672a
xor esi, esi
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.6620a250
add esp, 8
lea ecx, [esp + 0x38]
call fcn.66202e50
push 0x60
push esi
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
push eax
push 0x40110000
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x38], 0x18
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], 0x40
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
cmp eax, esi
jl 0x6620672a
mov ecx, dword [esp + 0x14]
push 0xd
push 1
lea edx, [esp + 0x1b]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x27], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ntdll.dll_NtClose]
mov byte [esp + 0x508], 2
lea ecx, [esp + 0x38]
call fcn.66203260
mov byte [esp + 0x508], 1
lea ecx, [esp + 0xe8]
call fcn.66203260
lea ecx, [esp + 0x198]
call fcn.66202e50
mov ecx, dword [esp + 0x510]
push 0
push eax
push 1
push 1
push 0x250
push ebp
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
test eax, eax
jge 0x66206510
pop edi
pop esi
pop ebx
mov byte [esp + 0x4fc], 0
lea ecx, [esp + 0x18c]
call fcn.66203260
mov dword [esp + 0x4fc], 0xffffffff
lea ecx, [esp + 0x23c]
call fcn.66203260
mov ecx, dword [esp + 0x4f4]
pop ebp
mov dword fs:[0], ecx
add esp, 0x4fc
ret
cmp byte [esp + 0x528], 0
je 0x6620672a
cmp esi, dword [esp + 0x520]
je 0x6620672a
xor esi, esi
push esi
push esi
push 0xffffffffffffffff
push 0x66217cb4
push 1
lea ecx, [esp + 0x4c]
call fcn.66202f40
push esi
push esi
push 0xffffffffffffffff
push edi
push 1
lea ecx, [esp + 0x4c]
call fcn.66202f40
jmp 0x662066a5