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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x3c]
mov al, byte [edx + 4]
mov byte [ecx + 0x20], al
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 2
jne 0x15823
mov edx, dword [ebp - 4]
mov byte [edx + 0x20], 1
mov eax, dword [ebp - 0x3c]
mov cx, word [eax + 0x10]
mov word [ebp - 0x44], cx
mov edx, dword [ebp - 0x3c]
mov ax, word [edx + 0x10]
mov word [ebp - 0x42], ax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x12
mov dword [ebp - 0x40], ecx
push 1
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x15876
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x38]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 0
mov eax, dword [ebp - 0x38]
jmp 0x15af7
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0x40
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0
push 0
push 0x868
push 1
push 0
push 0x80
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x18
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x20]
neg edx
sbb edx, edx
and edx, 0xc0000000
add edx, 0xc0000000
push edx
mov eax, dword [ebp - 4]
add eax, 4
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xc0000034
je 0x158fc
cmp dword [ebp - 0x38], 0xc000000f
jne 0x159f2
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x20]
test edx, edx
jne 0x1591b
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x48]
mov eax, dword [ecx + 8]
or eax, dword [edx + 0xc]
jne 0x15943
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], 0xc000000f
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 0
mov eax, 0xc000000f
jmp 0x15af7
push 0
push 0
push 0x868
push 3
push 0
push 0x80
mov ecx, dword [ebp - 0x3c]
add ecx, 8
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x18
push edx
lea eax, [ebp - 0x34]
push eax
push 0xc0000000
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x15994
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, dword [ebp - 0x38]
jmp 0x15af7
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 2
jne 0x159f0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x14], eax
push 0x14
push 8
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x18
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x159f0
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x38]
jmp 0x15af7
jmp 0x15a0a
cmp dword [ebp - 0x38], 0
jge 0x15a0a
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, dword [ebp - 0x38]
jmp 0x15af7
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
push 5
push 0x18
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x18
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x15a51
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x38]
jmp 0x15af7
push 0x11
push 4
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x18
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x15a88
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x38]
jmp 0x15af7
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x5c], edx
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
je 0x15aa6
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov dword [ecx + 0x2c], eax
jmp 0x15ab0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], 7
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x20]
test eax, eax
je 0x15acc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
or edx, 2
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], edx
jmp 0x15adb
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
and edx, 0xfffffffd
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], edx
mov ecx, dword [ebp - 4]
mov byte [ecx], 1
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret 8