Function at 0x140126380
Capabilities:
Get file attributes

Disassembly:
push rbx
push r12
sub rsp, 0x138
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rbx, rcx
call fcn.140126000
xor r9d, r9d
lea rdx, [rsp + 0x70]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov ebx, eax
test eax, eax
js 0x14012680a
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], 0
lea r9, [rsp + 0xb0]
mov dword [rsp + 0x40], 0x60
lea r8, [rsp + 0x80]
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x30], 5
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
mov edx, 0x120089
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x80], 0x30
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x98], 0x40
mov qword [rsp + 0x90], rax
movdqu xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
lea rcx, [rsp + 0x70]
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test ebx, ebx
js 0x14012680a
mov rbx, qword [rsp + 0x68]
lea r8, [rsp + 0x100]
mov rcx, rbx
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea rdx, [rsp + 0xc0]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop
test eax, eax
js 0x1401264c5
cmp qword [rsp + 0x108], 0
jne 0x1401264c5
lfence
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov ebx, 0xc0000011
jmp 0x14012680a
mov rdx, rbx
call fcn.14017d6a0
mov rcx, rbx
mov r12, rax
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax]
test r12, r12
je 0x140126805
cmp dword [r12], 0
jne 0x1401267fd
mov qword [rsp + 0x128], r14
mov r14, qword [r12 + 0x20]
test r14, r14
je 0x1401267e4
mov qword [rsp + 0x158], rbp
lea r10, str.name
mov qword [rsp + 0x160], rsi
mov qword [rsp + 0x168], rdi
mov qword [rsp + 0x130], r13
mov qword [rsp + 0x120], r15
nop dword [rax]
cmp dword [r14], 0
jne 0x1401267ac
mov r8d, dword [r14 + 0x38]
mov r9, qword [r14 + 0x40]
test r8d, r8d
jle 0x1401267ac
nop dword [rax + rax]
mov rdx, qword [r9]
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [r10 + rax - 1]
jne 0x1401265cb
nop
cmp rax, 5
jne 0x140126570
mov rcx, qword [r9 + 8]
test rcx, rcx
je 0x1401267ac
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp byte [rcx + rdx], 0
jne 0x1401265a0
call sym.ProcessHacker.exe_PhConvertUtf8ToUtf16Ex
mov r15, rax
test rax, rax
je 0x1401267a5
mov ecx, dword ds:[r14]
cmp ecx, 2
jne 0x1401265dc
mov rcx, qword [r14 + 0x30]
jmp 0x1401265f6
dec r8d
add r9, 0x10
test r8d, r8d
jg 0x140126560
jmp 0x1401267ac
nop dword [rax]
test ecx, ecx
jne 0x140126612
mov rcx, qword [r14 + 0x20]
test rcx, rcx
je 0x140126612
cmp dword [rcx], 2
jne 0x140126612
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x140126612
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rcx + rdx], 0
jne 0x140126602
call sym.ProcessHacker.exe_PhConvertUtf8ToUtf16Ex
jmp 0x140126617
call sym.ProcessHacker.exe_PhReferenceEmptyString
lock bts qword [0x140241b78], 0
mov rbp, rax
jae 0x140126632
lea rcx, [0x140241b78]
call sym.ProcessHacker.exe_PhfAcquireQueuedLockExclusive
movups xmm0, xmmword [r15]
mov rcx, qword [0x140245818]
lea rdx, [rsp + 0xd0]
movups xmmword [rsp + 0xd8], xmm0
call sym.ProcessHacker.exe_PhFindEntryHashtable
mov rbx, rax
test rax, rax
je 0x140126693
mov ecx, dword ds:[rax]
mov rdx, rax
call fcn.140125360
mov ecx, dword [rbx]
mov r9, rbx
mov r8, rbp
mov rdx, rbp
call fcn.140124d40
test al, al
jne 0x140126738
mov ecx, dword [rbx]
lea rdx, [rbx + 0x18]
mov r9, rbx
xor r8d, r8d
call fcn.140124d40
jmp 0x140126738
mov rcx, qword [0x140241998]
mov edx, 4
lea r8d, [rdx + 0x2c]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, qword [r15]
mov edx, 4
mov rcx, qword [0x140241998]
mov r13, rax
mov rdi, qword [r15 + 8]
lea r8, [rsi + 2]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea r8, [rsi + 2]
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call fcn.140188690
mov qword [r13 + 0x10], rbx
mov rax, qword [r15]
mov qword [r13 + 8], rax
lock inc dword [rbp - 8]
mov rbx, qword [0x140245810]
mov qword [r13 + 0x28], rbp
mov eax, dword [rbx]
mov ecx, dword [rbx + 4]
cmp eax, ecx
jne 0x14012672c
mov r8, qword ds:[rbx + 8]
lea eax, [rcx + rcx]
mov rcx, qword [0x140241998]
mov edx, 4
mov r9d, eax
shl r9, 3
mov dword [rbx + 4], eax
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov qword [rbx + 8], rax
mov eax, dword [rbx]
mov ecx, eax
mov rax, qword [rbx + 8]
mov qword [rax + rcx*8], r13
inc dword [rbx]
mov rcx, 0xffffffffffffffff
lock xadd qword [0x140241b78], rcx
movzx eax, cl
and al, 6
cmp al, 2
jne 0x140126770
lea rax, [rcx - 1]
lea rdx, [rax + 4]
lock cmpxchg qword [0x140241b78], rdx
jne 0x140126770
lea rcx, [0x140241b78]
call fcn.140123d80
lea rcx, ss:[rbp - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14012678a
call fcn.1400fbcc0
lea rcx, [r15 - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1401267a5
nop dword [rax]
call fcn.1400fbcc0
lea r10, str.name
mov rax, qword [r14 + 8]
mov r14, rax
test rax, rax
jne 0x140126540
mov r15, qword [rsp + 0x120]
mov r13, qword [rsp + 0x130]
mov rdi, qword [rsp + 0x168]
mov rsi, qword [rsp + 0x160]
mov rbp, qword [rsp + 0x158]
mov rcx, r12
call fcn.14017d080
call sym.ProcessHacker.exe_PhUpdateCachedSettings
mov r14, qword [rsp + 0x128]
xor eax, eax
jmp 0x14012680f
mov rcx, r12
call fcn.14017d080
mov ebx, 0xc0000102
lfence
mov eax, ebx
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x138
pop r12
pop rbx
ret