Function at 0x140022c90
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
cmp qword [rcx], 8
lea rax, [0x1401231d8]
mov qword [rbp - 0x21], rax
mov r14, rcx
mov rax, qword [rcx + 8]
mov qword [rbp - 0x11], rax
mov qword [rbp - 0x29], 8
mov qword [rbp - 0x19], 8
jb 0x140022d4d
xor r8d, r8d
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x140022d4d
mov rdi, qword [r14]
mov rbx, qword [0x14015f3f8]
sub rdi, 8
mov rcx, rbx
lea rdx, [rdi + 0x12]
call fcn.1400257d0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
xor edx, edx
movzx ecx, byte [rbx + 2]
lea rbx, [rax + 0x10]
mov word [rax], cx
lea rcx, [rbx + 0x10]
mov qword [rbx + 8], rcx
mov qword [rbx], rdi
mov word [rcx + rdi], dx
mov r8, qword [r14]
mov rdx, qword [r14 + 8]
sub r8, 8
mov rcx, qword [rbx + 8]
add rdx, 8
call fcn.1400e19b0
mov rax, rbx
jmp 0x140023092
cmp qword [r14], 0x16
lea rax, str.SystemRoot
mov qword [rbp - 1], rax
mov rax, qword [r14 + 8]
mov qword [rbp + 0xf], rax
mov qword [rsp + 0xc0], rsi
mov qword [rbp - 9], 0x16
mov qword [rbp + 7], 0x16
jb 0x140022e74
mov r8b, 1
lea rdx, [rbp - 9]
lea rcx, [rbp + 7]
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x140022e74
cmp qword [0x14015bdf0], 0
je 0x140022db1
movups xmm0, xmmword [0x14015bde8]
movaps xmmword [rbp - 0x39], xmm0
jmp 0x140022dfc
mov ecx, 0x7ffe0030
mov qword [rbp - 0x31], 0x7ffe0030
call sym.ProcessHacker.exe_PhCountStringZ
add rax, rax
mov qword [rbp - 0x39], rax
cmp word [rax + 0x7ffe002e], 0x5c
jne 0x140022ddc
sub rax, 2
mov qword [rbp - 0x39], rax
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x39], xmm0
mov qword [0x14015bde8], rax
lock or dword [rsp], 0
mov qword [0x14015bdf0], 0x7ffe0030
mov rbx, qword [0x14015f3f8]
mov rsi, qword [rbp - 0x39]
mov rcx, rbx
lea rdi, [rsi - 0x16]
add rdi, qword [r14]
lea rdx, [rdi + 0x12]
call fcn.1400257d0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
xor edx, edx
movzx ecx, byte [rbx + 2]
mov r8, rsi
mov word [rax], cx
lea rbx, [rax + 0x10]
lea rax, [rbx + 0x10]
mov qword [rbx], rdi
mov qword [rbx + 8], rax
mov word [rax + rdi], dx
mov rdx, qword [rbp - 0x31]
mov rcx, qword [rbx + 8]
call fcn.1400e19b0
mov r8, qword [r14]
mov rdx, qword [r14 + 8]
sub r8, 0x16
mov rcx, qword [rbx + 8]
add rdx, 0x16
add rcx, rsi
call fcn.1400e19b0
mov rax, rbx
jmp 0x14002308a
cmp qword [r14], 0x12
lea rax, str.system32_
mov qword [rbp + 0x1f], rax
mov rax, qword [r14 + 8]
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x17], 0x12
mov qword [rbp + 0x27], 0x12
jb 0x140022fa2
mov r8b, 1
lea rdx, [rbp + 0x17]
lea rcx, [rbp + 0x27]
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x140022fa2
cmp qword [0x14015bdf0], 0
je 0x140022ed0
movups xmm0, xmmword [0x14015bde8]
movaps xmmword [rbp - 0x39], xmm0
jmp 0x140022f1b
mov ecx, 0x7ffe0030
mov qword [rbp - 0x31], 0x7ffe0030
call sym.ProcessHacker.exe_PhCountStringZ
add rax, rax
mov qword [rbp - 0x39], rax
cmp word [rax + 0x7ffe002e], 0x5c
jne 0x140022efb
sub rax, 2
mov qword [rbp - 0x39], rax
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x39], xmm0
mov qword [0x14015bde8], rax
lock or dword [rsp], 0
mov qword [0x14015bdf0], 0x7ffe0030
mov rbx, qword [0x14015f3f8]
mov rsi, qword [rbp - 0x39]
mov rcx, rbx
lea rdi, [rsi + 2]
add rdi, qword [r14]
lea rdx, [rdi + 0x12]
call fcn.1400257d0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
xor edx, edx
movzx ecx, byte [rbx + 2]
mov r8, rsi
mov word [rax], cx
lea rbx, [rax + 0x10]
lea rax, [rbx + 0x10]
mov qword [rbx], rdi
mov qword [rbx + 8], rax
mov word [rax + rdi], dx
mov rdx, qword [rbp - 0x31]
mov rcx, qword [rbx + 8]
call fcn.1400e19b0
mov rcx, qword [rbx + 8]
mov eax, 0x5c
mov rdx, rsi
shr rdx, 1
mov word [rcx + rdx*2], ax
mov rcx, qword [rbx + 8]
mov r8, qword [r14]
add rcx, 2
mov rdx, qword [r14 + 8]
add rcx, rsi
call fcn.1400e19b0
mov rax, rbx
jmp 0x14002308a
cmp qword [r14], 0
je 0x140023082
mov rax, qword [r14 + 8]
cmp word [rax], 0x5c
jne 0x140023082
mov rcx, r14
call sym.ProcessHacker.exe_PhResolveDevicePrefix
test rax, rax
jne 0x14002308a
cmp qword [r14], 0x10
lea rax, [0x140123218]
mov qword [rbp + 0x3f], rax
mov rax, qword [r14 + 8]
mov qword [rbp + 0x4f], rax
mov qword [rbp + 0x37], 0x10
mov qword [rbp + 0x47], 0x10
jb 0x140023082
mov r8b, 1
lea rdx, [rbp + 0x37]
lea rcx, [rbp + 0x47]
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x140023082
mov rdi, qword [r14]
mov rbx, qword [0x14015f3f8]
add rdi, 4
mov rcx, rbx
lea rdx, [rdi + 0x12]
call fcn.1400257d0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
xor edx, edx
movzx ecx, byte [rbx + 2]
lea rbx, [rax + 0x10]
mov word [rax], cx
lea rcx, [rbx + 0x10]
mov qword [rbx + 8], rcx
mov eax, 0x3a
mov qword [rbx], rdi
mov word [rcx + rdi], dx
mov rdx, qword [rbx + 8]
mov cx, word [0x7ffe0030]
mov word [rdx], cx
mov rcx, qword [rbx + 8]
mov word [rcx + 2], ax
mov rcx, qword [rbx + 8]
mov r8, qword [r14]
add rcx, 4
mov rdx, qword [r14 + 8]
call fcn.1400e19b0
mov rax, rbx
jmp 0x14002308a
mov rax, r14
lock inc dword [r14 - 8]
mov rsi, qword [rsp + 0xc0]
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret