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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6621b82c
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 0x6621cce8
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 0x66206524
push edi
lea ebx, [ebx]
test byte [ebx + 0x38], 0x10
jne 0x662064f0
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 0x662064ed
movzx eax, word [esi]
mov ecx, esi
test ax, ax
je 0x662062fd
cmp ax, 0x30
jb 0x662062fd
cmp ax, 0x39
ja 0x662062fd
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x662062e1
mov al, 1
jmp 0x662062ff
xor al, al
test al, al
je 0x662064ed
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 0x6621ccf0
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 0x66206370
push 0
push 0xffffffffffffffff
push eax
push dword [ebp - 0x194]
push dword [ebp - 0x198]
call fcn.662036a0
add esp, 0x14
test eax, eax
je 0x662064de
push esi
call fcn.6620d4de
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 0x66206404
cmp byte [ebp + 0x20], bl
je 0x662063d5
cmp eax, dword [ebp + 0x18]
je 0x662063d5
push 0
push 0
push 0xffffffffffffffff
push 0x6621ccf0
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.6620e91d
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x500]
add esp, 0x10
push 0xffffffffffffffff
push eax
call fcn.662041e0
jmp 0x6620643d
cmp byte [ebp + 0x20], 0
je 0x6620643d
cmp esi, dword [ebp + 0x18]
je 0x6620643d
push 0
push 0
push 0xffffffffffffffff
push 0x6621ccf0
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 0x662064cc
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xe8]
call fcn.6620add0
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 0x662064cc
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 0x662062b0
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