Function at 0x1400d4f40
Capabilities:
Create thread
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
xor r12d, r12d
mov r15, r8
mov r14, rdx
mov qword [rsp + 0x20], r12
lea r8, [rbp + 0x7f]
mov rsi, rcx
xor dil, dil
xor bl, bl
lea r9d, [r12 + 8]
lea edx, [r12 + 0x1a]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400d4f94
cmp qword [rbp + 0x7f], r12
setne dil
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
jae 0x1400d5090
lea r8, [rbp - 0x31]
mov dword [rbp - 0x31], 0xc0000135
lea rdx, [0x1400d6d40]
mov qword [rbp - 0x29], r14
mov rcx, rsi
mov dword [rbp - 0x21], 1
call fcn.1400d68d0
mov ecx, dword [rbp - 0x31]
test eax, eax
cmovs ecx, eax
test dil, dil
je 0x1400d500a
cmp ecx, 0xc0000135
jne 0x1400d500a
mov dword [rbp - 0x19], ecx
lea r8, [rbp - 0x19]
mov rcx, rsi
mov qword [rbp - 0x11], r14
lea rdx, [0x1400d7350]
mov dword [rbp - 9], 1
call fcn.1400d6d90
mov ecx, dword [rbp - 0x19]
test eax, eax
cmovs ecx, eax
test ecx, ecx
js 0x1400d500e
mov bl, 1
test ecx, ecx
jns 0x1400d5015
mov eax, ecx
jmp 0x1400d516c
test bl, bl
je 0x1400d5090
mov rcx, qword [0x140193888]
test rcx, rcx
jne 0x1400d50f3
lea rdx, str.SysWow64_ntdll.dll
mov ecx, 0x7ffe0030
call sym.ProcessHacker.exe_PhConcatStrings2
mov rbx, rax
mov qword [rsp + 0x28], r12
lea rax, [0x140193888]
xor r9d, r9d
lea r8, [0x140169698]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, qword [rbx + 8]
call sym.ProcessHacker.exe_PhGetProcedureAddressRemote
mov edi, eax
lea rcx, [rbx - 0x10]
or edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400d507c
call fcn.1400c8bc0
test edi, edi
jns 0x1400d5087
mov eax, edi
jmp 0x1400d516c
mov rcx, qword [0x140193888]
jmp 0x1400d50f3
lea rax, [0x140158b30]
mov dword [rbp - 0x51], 0x140012
lea r9, [rbp - 0x61]
mov qword [rbp - 0x49], rax
lea r8, [rbp - 0x51]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_LdrGetDllHandle]
test eax, eax
js 0x1400d50f0
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x1400d50f0
lea rax, [0x140169698]
mov dword [rbp - 0x41], 0xd000c
lea r9, [rbp - 0x59]
mov qword [rbp - 0x39], rax
xor r8d, r8d
lea rdx, [rbp - 0x41]
call qword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
mov rcx, qword [rbp - 0x59]
test eax, eax
cmovs rcx, r12
jmp 0x1400d50f3
mov rcx, r12
mov qword [rsp + 0x48], r12
lea rax, [rbp - 0x69]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], r14
xor r8d, r8d
mov qword [rsp + 0x30], rcx
xor edx, edx
mov qword [rsp + 0x28], r12
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
test eax, eax
js 0x1400d516c
mov rcx, qword [rbp - 0x69]
mov r8, r15
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x1400d5160
mov rcx, qword [rbp - 0x69]
lea r9d, [rax + 0x30]
lea r8, [rbp - 1]
mov qword [rsp + 0x20], r12
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rbp - 1]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret