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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6621b91c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4f4
push ebx
push esi
lea ecx, [ebp - 0x2f8]
call fcn.662031a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2f8]
push 0
push 8
push 0x252
call fcn.66203910
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x248]
mov ebx, eax
push esi
mov dword [ebp - 0x18], ebx
call fcn.66202f60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
push 0
push 0
push 0xffffffffffffffff
push 0x6621cd00
push 1
call fcn.662033b0
lea ecx, [ebp - 0x248]
call fcn.66204340
push 1
push eax
push 1
push 1
push 0x250
push ebx
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
test eax, eax
js 0x66206544
push edi
lea ebx, [ebx]
test byte [ebx + 0x38], 0x10
jne 0x66206510
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
shr eax, 1
mov word [ebx + eax*2 + 0x40], cx
mov esi, dword [esi + 4]
add esi, 0x21
lea esi, [ebx + esi*2]
test esi, esi
je 0x6620650d
movzx eax, word [esi]
mov ecx, esi
test ax, ax
je 0x6620631d
cmp ax, 0x30
jb 0x6620631d
cmp ax, 0x39
ja 0x6620631d
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x66206301
mov al, 1
jmp 0x6620631f
xor al, al
test al, al
je 0x6620650d
push dword [ebp + 0xc]
lea ecx, [ebp - 0x198]
call fcn.66202f60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x198]
push 0
push 0
push 0xffffffffffffffff
push 0x6621cd08
push 1
call fcn.662033b0
push 0
push 0
push 0xffffffffffffffff
lea edi, [ebx + 0x40]
push edi
push 1
lea ecx, [ebp - 0x198]
call fcn.662033b0
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x66206390
push 0
push 0xffffffffffffffff
push eax
push dword [ebp - 0x194]
push dword [ebp - 0x198]
call fcn.662036a0
add esp, 0x14
test eax, eax
je 0x662064fe
push esi
call fcn.6620d5ce
add esp, 4
lea ecx, [ebp - 0xe8]
mov esi, eax
push dword [ebp + 0xc]
call fcn.66202f60
mov byte [ebp - 4], 3
xor bl, bl
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
cmp eax, esi
jae 0x66206424
cmp byte [ebp + 0x20], bl
je 0x662063f5
cmp eax, dword [ebp + 0x18]
je 0x662063f5
push 0
push 0
push 0xffffffffffffffff
push 0x6621cd08
push 1
lea ecx, [ebp - 0xe8]
call fcn.662033b0
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0xe8]
push 0
push 0
push dword [eax + 4]
push dword [eax]
push 1
call fcn.662033b0
mov bl, 1
mov eax, dword [ebp + 0x1c]
push 0xffffffffffffffff
push edi
push 0x104
mov dword [eax], esi
lea eax, [ebp - 0x500]
push eax
call fcn.6620ea0d
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x500]
add esp, 0x10
push 0xffffffffffffffff
push eax
call fcn.662041e0
jmp 0x6620645d
cmp byte [ebp + 0x20], 0
je 0x6620645d
cmp esi, dword [ebp + 0x18]
je 0x6620645d
push 0
push 0
push 0xffffffffffffffff
push 0x6621cd08
push 1
lea ecx, [ebp - 0xe8]
call fcn.662033b0
push 0
push 0
push 0xffffffffffffffff
push edi
push 1
lea ecx, [ebp - 0xe8]
call fcn.662033b0
mov bl, 1
test bl, bl
je 0x662064ec
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xe8]
call fcn.6620ae90
add esp, 8
lea ecx, [ebp - 0xe8]
call fcn.66204340
push 0x60
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
push 0
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x18
push eax
push 0x40110000
lea eax, [ebp - 0x14]
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
js 0x662064ec
push 0xd
push 1
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 1
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe8]
call fcn.66203220
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x198]
call fcn.66203220
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x248]
call fcn.66204340
push 0
push eax
push 1
push 1
push 0x250
push ebx
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
test eax, eax
jns 0x662062d0
pop edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.66203220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f8]
call fcn.66203220
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret