Function at 0x14000889c
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x168]
sub rsp, 0x260
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rdi, rcx
mov dword [rsp + 0x34], 1
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor esi, esi
mov dword [rsp + 0x30], 0x208
lea r8, [0x1400415f0]
mov ecx, esi
mov rax, r8
cmp qword [rax], rsi
jne 0x140011a24
movsxd rax, ecx
lea rdx, [rax + rax*4]
lea rbx, [r8 + rdx*8]
test rbx, rbx
je 0x140008a74
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011ade
cmp dword [rsp + 0x34], 1
jne 0x140011ade
movzx ecx, word [rsp + 0x40]
test cx, cx
je 0x140011ade
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140011ade
shr eax, 1
mov edx, eax
mov dword [rsp + 0x30], eax
cmp eax, 0x104
jae 0x140011a3f
mov eax, edx
add rax, rax
cmp rax, 0x208
jae 0x140008a9c
mov word [rsp + rax + 0x40], si
movzx ecx, word [rsp + 0x40]
test cx, cx
je 0x140011a4b
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140011a57
mov qword [rbx], rdi
test rdi, rdi
je 0x140011ade
lea rdx, str.GetPerfhostHookVersion
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140011aa4
call qword [case.0x140008ad6.0]
mov dword [rbx + 8], eax
cmp eax, 1
je 0x140011aae
cmp eax, 2
je 0x140011aae
cmp eax, 3
jne 0x140008a46
mov rcx, qword [rbx]
lea rdx, str.InitPerf_v3
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.PerfCodeMarker_v3
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnInitPerf_v3
mov rcx, qword [rbx]
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
cmp qword [rbx + 0x10], rsi
je 0x140011ade
cmp qword [rbx + 0x20], rsi
je 0x140011ade
cmp qword [rbx + 0x18], rsi
je 0x140011ade
mov rcx, rbx
call fcn.140008aa4
test eax, eax
js 0x140011ade
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140009850
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14000b438
int3
inc ecx
lea rdx, [0x140041640]
add rax, 0x28
cmp rax, rdx
jl 0x1400088fe
jmp 0x140008a74
mov word [rbp + 0x146], si
jmp 0x14000899d
mov ecx, 5
int 0x29
jmp 0x1400089a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1400089c5
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.AddDllDirectory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400089c5
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
jmp 0x1400089c5
mov eax, 1
jmp 0x1400089f0
mov rcx, qword [rbx]
lea rdx, str.InitPerf
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.PerfCodeMarker
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnInitPerf
jmp 0x140008a35
mov rcx, qword [rbx]
test rcx, rcx
je 0x140011aec
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
jmp 0x140008a74