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

Disassembly:
push 0xffffffffffffffff
push 0x662163ac
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.66203960
mov ebp, eax
mov eax, dword [esp + 0x50c]
push eax
lea ecx, [esp + 0x190]
call fcn.662034b0
mov byte [esp + 0x4fc], 1
push 0
push 0
push 0xffffffffffffffff
push 0x66217cd8
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 0x662065ac
push ebx
push esi
push edi
lea esp, [esp]
test byte [ebp + 0x38], 0x10
jne 0x6620656f
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 0x6620656f
movzx eax, word [esi]
mov ecx, esi
test ax, ax
je 0x6620656f
movzx eax, ax
lea ecx, [ecx]
cmp ax, 0x30
jb 0x6620656f
cmp ax, 0x39
ja 0x6620656f
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x66206370
mov ebx, dword [esp + 0x514]
push ebx
lea ecx, [esp + 0xec]
call fcn.662034b0
mov byte [esp + 0x508], 2
push 0
push 0
push 0xffffffffffffffff
push 0x66217cd4
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 0x6620640d
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 0x6620655b
push esi
call fcn.6620b8f0
add esp, 4
push ebx
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.662034b0
mov byte [esp + 0x508], 3
mov edx, dword [esp + 0x524]
mov eax, dword [edx]
xor bl, bl
cmp eax, esi
jae 0x662065ed
cmp byte [esp + 0x528], bl
je 0x66206484
cmp eax, dword [esp + 0x520]
je 0x66206484
push 0
push 0
push 0xffffffffffffffff
push 0x66217cd4
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.6620c798
mov ecx, dword [esp + 0x52c]
add esp, 0x10
push 0xffffffffffffffff
lea edx, [esp + 0x2fc]
push edx
call fcn.662032c0
test bl, bl
je 0x6620654a
xor esi, esi
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.6620a050
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 0x6620654a
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 0x66206330
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 0x6620654a
cmp esi, dword [esp + 0x520]
je 0x6620654a
xor esi, esi
push esi
push esi
push 0xffffffffffffffff
push 0x66217cd4
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 0x662064c5