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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5c7004]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 4]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
push 0
push 0
lea esi, [ebx*8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
not esi
push ecx
and esi, 0x20
push eax
or esi, 0x40
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov edi, eax
test edi, edi
js 0x4cfd6f
push 0
push 0
push esi
push dword [ebp + 0x18]
lea eax, [esp + 0x20]
mov dword [esp + 0x40], 0x18
push dword [ebp + 0x14]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
push 0x80
push 0
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x54], 0
push eax
push dword [ebp + 0x10]
lea eax, [esp + 0x44]
mov dword [esp + 0x64], 0x40
push eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov edi, eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test edi, edi
js 0x4cfd6f
test byte [0x5cb4e4], 1
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jne 0x4cfc70
mov eax, 0x5cb4e4
lock bts dword ds:[eax], 0x1f
jae 0x4cfbbd
test byte [0x5cb4e4], 1
jne 0x4cfc70
xor edx, edx
mov ecx, eax
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x4cfc70
push dword [0x5cd4e0]
push 0x28
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
mov ecx, 1
mov word [edi], cx
lock xadd dword [0x5cd4e8], ecx
inc ecx
dec cl
mov dword [edi + 4], 0
movzx eax, cl
lea esi, [edi + 0x10]
push esi
mov byte [edi + 2], cl
mov dword [edi + 8], 0x4cff00
mov dword [edi + 0xc], str.FileStream
mov dword [eax*4 + 0x5cf880], edi
call dword [sym.imp.ntdll.dll_RtlInitializeSListHead]
mov dword [0x5cd688], edi
mov edi, 0x5cb4e4
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x10
mov dword [esi + 0x10], 0x30
lock bts dword [edi], 0
jb 0x4cfc70
mov esi, dword [0x5cb4e8]
test esi, esi
je 0x4cfc46
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
lock xadd dword [edi], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x4cfc70
test esi, esi
je 0x4cfc70
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x5cb4e8], 0
push dword [0x5cd688]
push 0x28
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, dword [esp + 0x20]
mov esi, eax
mov eax, ebx
shl eax, 0xb
not eax
mov dword [esi], ecx
and eax, 0x1000
mov dword [esi + 4], ebx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
test ebx, 0x10000
je 0x4cfd50
push 5
push 0x18
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x4cfd24
test byte [esi + 4], 8
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
jne 0x4cfd50
push 0xe
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 8
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], ecx
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
lea esp, [esp]
test eax, eax
jns 0x4cfd50
lfence
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4cfd3a
call fcn.004c1f60
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esp + 0xc]
lfence
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword ds:[esp + 0x4c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
lfence
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0x18