Function at 0x1400d9d60
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push r13
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
xor r13d, r13d
mov rbx, r9
cmp dword [rcx], r13d
jbe 0x1400da0fe
mov qword [rax + 0x20], rsi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r14
mov qword [rax - 0x38], r15
nop dword [rax]
nop word [rax + rax]
mov eax, r13d
imul r15, rax, 0x128
add r15, rcx
mov rcx, rbx
lea rdx, [r15 + 0x18]
call sym.ProcessHacker.exe_PhFindEntryHashtable
test rax, rax
jne 0x1400da0c6
lea rcx, [r15 + 0x18]
call qword [rbx + 0x10]
mov esi, dword [rbx + 0x18]
mov r14d, eax
mov rcx, qword [rbx + 0x20]
dec esi
btr r14d, 0x1f
and esi, r14d
mov r8d, dword [rcx + rsi*4]
cmp r8d, 0xffffffff
je 0x1400d9e2f
nop word [rax + rax]
mov edi, dword [rbx]
add edi, 8
imul edi, r8d
add rdi, qword [rbx + 0x30]
cmp dword [rdi], r14d
jne 0x1400d9e25
lea rcx, [rdi + 8]
lea rdx, [r15 + 0x18]
call qword [rbx + VariantCopy]
test al, al
jne 0x1400d9ebb
mov r8d, dword [rdi + 4]
cmp r8d, 0xffffffff
jne 0x1400d9e00
mov r8d, dword [rbx + 0x3c]
cmp r8d, 0xffffffff
je 0x1400d9e51
mov r9d, dword [rbx]
add r9d, 8
imul r9d, r8d
add r9, qword [rbx + 0x30]
mov eax, dword [r9 + 4]
mov dword [rbx + 0x3c], eax
jmp 0x1400d9e8a
mov r8d, dword [rbx + 0x40]
cmp r8d, dword [rbx + 0x28]
jne 0x1400d9e74
mov edx, dword [rbx + 0x18]
mov rcx, rbx
add edx, edx
call fcn.1400cdcb0
mov esi, dword [rbx + 0x18]
mov r8d, dword [rbx + 0x40]
dec esi
and esi, r14d
mov r9d, dword [rbx]
lea eax, [r8 + 1]
add r9d, 8
mov dword [rbx + 0x40], eax
imul r9d, r8d
add r9, qword [rbx + 0x30]
mov dword [r9], r14d
lea rdx, [rsi*4]
mov rax, qword [rbx + 0x20]
mov ecx, dword [rdx + rax]
mov dword [r9 + 4], ecx
lea rcx, [r9 + 8]
mov rax, qword [rbx + 0x20]
mov dword [rdx + rax], r8d
lea rdx, [r15 + 0x18]
mov r8d, dword [rbx]
call fcn.14010e700
inc dword [rbx + 0x38]
lea rcx, [r15 + 0x30]
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rcx + rdx], 0
jne 0x1400d9ec3
call sym.ProcessHacker.exe_PhConvertMultiByteToUtf16Ex
mov rdx, qword [r15 + 0x18]
mov ecx, 4
cmp rdx, qword [0x1401967c8]
mov rdi, rax
mov eax, 1
mov qword [rbp - 0x21], rdx
cmovbe ecx, eax
xor r12d, r12d
mov dword [rbp - 0x29], ecx
mov ecx, dword [r15 + 0x20]
mov dword [rbp - 0x19], ecx
mov ecx, dword [r15 + 0x24]
mov dword [rbp - 9], ecx
movzx ecx, word [r15 + 0x2e]
add rcx, 0x30
mov qword [rbp - 0x11], r12
add rcx, r15
or rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp byte [rcx + rdx], r12b
jne 0x1400d9f20
call sym.ProcessHacker.exe_PhConvertMultiByteToUtf16Ex
mov rcx, rdi
mov qword [rbp - 1], rax
call sym.ProcessHacker.exe_PhGetFileName
mov qword [rbp + 7], rax
movzx eax, word [r15 + 0x28]
mov word [rbp + 0x17], ax
movzx eax, word [r15 + 0x2c]
mov word [rbp + 0x19], ax
mov eax, 0xffff
mov word [rbp + 0x1b], ax
mov qword [rbp + 0xf], rdi
mov qword [rbp + 0x1f], r12
cmp word [r15 + 0x2e], r12w
jne 0x1400da065
cmp qword [0x140196238], r12
je 0x1400d9f82
movups xmm0, xmmword [0x140196230]
movaps xmmword [rbp - 0x39], xmm0
jmp 0x1400d9fcd
mov ecx, 0x7ffe0030
mov qword [rbp - 0x41], 0x7ffe0030
call sym.ProcessHacker.exe_PhCountStringZ
add rax, rax
mov qword [rbp - 0x49], rax
cmp word [rax + 0x7ffe002e], 0x5c
jne 0x1400d9fad
add rax, 0xfffffffffffffffe
mov qword [rbp - 0x49], rax
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x39], xmm0
mov qword [0x140196230], rax
lock or dword [rsp], r12d
mov qword [0x140196238], 0x7ffe0030
mov r14, qword [rbp - 1]
mov rsi, qword [rbp - 0x39]
mov rdx, qword [0x140196800]
mov rdi, qword [r14]
add rdi, rsi
add rdi, qword [0x14018dd50]
lea rcx, [rdi + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdx, qword [rbp - 0x31]
mov r8, rsi
mov r15, rax
lea rcx, [rax + 0x10]
mov qword [rax], rdi
mov qword [rax + 8], rcx
mov word [rcx + rdi], r12w
mov rdi, qword [rax + 8]
mov rcx, rdi
call fcn.14010e700
mov r8, qword [0x14018dd50]
add rdi, rsi
mov rdx, qword [str.System32Drivers_]
mov rcx, rdi
call fcn.14010e700
add rdi, qword [0x14018dd50]
mov r8, qword [r14]
mov rcx, rdi
mov rdx, qword [r14 + 8]
call fcn.14010e700
mov rcx, qword [rbp + 7]
add rcx, 0xfffffffffffffff0
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400da061
call fcn.1400c8bc0
mov qword [rbp + 7], r15
mov rdx, qword [rbp + 0x77]
lea rcx, [rbp - 0x29]
call qword [rbp + 0x6f]
mov rcx, qword [rbp - 1]
movzx edi, al
add rcx, 0xfffffffffffffff0
or edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400da08d
call fcn.1400c8bc0
mov rcx, qword [rbp + 7]
add rcx, 0xfffffffffffffff0
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400da0a7
call fcn.1400c8bc0
mov rcx, qword [rbp + 0xf]
add rcx, 0xfffffffffffffff0
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400da0c1
call fcn.1400c8bc0
test dil, dil
je 0x1400da0d6
mov rcx, qword [rbp + 0x67]
inc r13d
cmp r13d, dword [rcx]
jb 0x1400d9db0
mov r14, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xf8]
mov r15, qword [rsp + 0xa0]
add rsp, 0xc0
pop r13
pop rbx
pop rbp
ret