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 esi
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 esi, 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 esi
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
or eax, eax
jl 0x662065ac
push ebx
push edi
push ebp
lea esp, [esp]
test byte [esi + 0x38], 0x10
jne 0x6620656f
mov edx, dword [esp + 0x518]
mov eax, dword [esi + 0x3c]
shr eax, 1
xor ebx, ebx
mov word [esi + eax*2 + 0x40], bx
mov eax, dword [edx + 4]
lea edi, [esi + eax*2 + 0x42]
or edi, edi
je 0x6620656f
movzx eax, word [edi]
test ax, ax
mov ebx, edi
je 0x6620656f
lea ebx, [ebx]
movzx eax, ax
cmp ax, 0x30
jb 0x6620656f
cmp ax, 0x39
ja 0x6620656f
movzx eax, word [ebx + 2]
sub ebx, 0xfffffffe
or 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
lea ebp, [esi + 0x40]
push 0
push 0
push 0xffffffffffffffff
push ebp
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 edi
call fcn.6620b8f0
add esp, 4
push ebx
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.662034b0
mov byte [esp + 0x508], 3
xor bl, bl
mov edx, dword [esp + 0x524]
mov eax, dword [edx]
cmp eax, edi
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 ebp
lea ecx, [esp + 0x300]
push 0x104
push ecx
mov dword [eax], edi
call fcn.6620c798
mov ecx, dword [esp + 0x52c]
sub esp, 0xfffffff0
push 0xffffffffffffffff
lea edx, [esp + 0x2fc]
push edx
call fcn.662032c0
test bl, bl
je 0x6620654a
xor ebx, ebx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.6620a050
sub esp, 0xfffffff8
lea ecx, [esp + 0x38]
call fcn.66202e50
push 0x60
push ebx
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], ebx
mov dword [esp + 0x44], 0x40
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
cmp eax, ebx
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
lea ecx, [esp + 0xe8]
mov byte [esp + 0x508], 1
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 esi
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
or eax, eax
jge 0x66206330
pop ebp
pop edi
pop ebx
lea ecx, [esp + 0x18c]
mov byte [esp + 0x4fc], 0
call fcn.66203260
mov dword [esp + 0x4fc], 0xffffffff
lea ecx, [esp + 0x23c]
call fcn.66203260
mov edx, dword [esp + 0x4f4]
pop esi
sub esp, 0xfffffb04
mov dword fs:[0], edx
ret
cmp byte [esp + 0x528], 0
je 0x6620654a
cmp edi, dword [esp + 0x520]
je 0x6620654a
xor ebx, ebx
push ebx
push ebx
push 0xffffffffffffffff
push 0x66217cd4
push 1
lea ecx, [esp + 0x4c]
call fcn.66202f40
push ebx
push ebx
push 0xffffffffffffffff
push ebp
push 1
lea ecx, [esp + 0x4c]
call fcn.66202f40
jmp 0x662064c5