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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6621b84c
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.66203190
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2f8]
push 0
push 8
push 0x252
call fcn.66203900
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x248]
mov ebx, eax
push esi
mov dword [ebp - 0x18], ebx
call fcn.66202f50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
push 0
push 0
push 0xffffffffffffffff
push 0x6621cce8
push 1
call fcn.662033a0
lea ecx, [ebp - 0x248]
call fcn.66204330
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 0x66206514
push edi
lea ebx, [ebx]
test byte [ebx + 0x38], 0x10
jne 0x662064e0
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 0x662064dd
movzx eax, word [esi]
mov ecx, esi
test ax, ax
je 0x662062ed
cmp ax, 0x30
jb 0x662062ed
cmp ax, 0x39
ja 0x662062ed
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x662062d1
mov al, 1
jmp 0x662062ef
xor al, al
test al, al
je 0x662064dd
push dword [ebp + 0xc]
lea ecx, [ebp - 0x198]
call fcn.66202f50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x198]
push 0
push 0
push 0xffffffffffffffff
push 0x6621ccf0
push 1
call fcn.662033a0
push 0
push 0
push 0xffffffffffffffff
lea edi, [ebx + 0x40]
push edi
push 1
lea ecx, [ebp - 0x198]
call fcn.662033a0
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x66206360
push 0
push 0xffffffffffffffff
push eax
push dword [ebp - 0x194]
push dword [ebp - 0x198]
call fcn.66203690
add esp, 0x14
test eax, eax
je 0x662064ce
push esi
call fcn.6620d4de
add esp, 4
lea ecx, [ebp - 0xe8]
mov esi, eax
push dword [ebp + 0xc]
call fcn.66202f50
mov byte [ebp - 4], 3
xor bl, bl
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
cmp eax, esi
jae 0x662063f4
cmp byte [ebp + 0x20], bl
je 0x662063c5
cmp eax, dword [ebp + 0x18]
je 0x662063c5
push 0
push 0
push 0xffffffffffffffff
push 0x6621ccf0
push 1
lea ecx, [ebp - 0xe8]
call fcn.662033a0
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0xe8]
push 0
push 0
push dword [eax + 4]
push dword [eax]
push 1
call fcn.662033a0
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.662041d0
jmp 0x6620642d
cmp byte [ebp + 0x20], 0
je 0x6620642d
cmp esi, dword [ebp + 0x18]
je 0x6620642d
push 0
push 0
push 0xffffffffffffffff
push 0x6621ccf0
push 1
lea ecx, [ebp - 0xe8]
call fcn.662033a0
push 0
push 0
push 0xffffffffffffffff
push edi
push 1
lea ecx, [ebp - 0xe8]
call fcn.662033a0
mov bl, 1
test bl, bl
je 0x662064bc
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xe8]
call fcn.6620adc0
add esp, 8
lea ecx, [ebp - 0xe8]
call fcn.66204330
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 0x662064bc
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.66203210
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x198]
call fcn.66203210
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x248]
call fcn.66204330
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 0x662062a0
pop edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.66203210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f8]
call fcn.66203210
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret