Function at 0x1400c9390
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x145ef49b8]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
movzx r13d, dl
mov byte [rsp + 0x60], dl
mov r12, rcx
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x1d0]
call fcn.14056bc90
mov dword [rsp + 0x78], 0x104
xor edi, edi
mov dword [rsp + 0x68], edi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x1d0]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x1400c966d
mov r15d, edi
mov dword [rsp + 0x64], edi
mov rdx, qword [0x145efeca0]
cmp rdx, qword [0x145efeca8]
je 0x1400c9485
mov dword [rdx], edi
add qword [0x145efeca0], 4
jmp 0x1400c9496
lea r8, [rsp + 0x64]
lea rcx, [0x145efec98]
call fcn.140097620
mov dword [rsp + 0x7c], 0xff
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x7c]
lea r8, [rbp + 0xd0]
mov edx, r15d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1400c965f
mov qword [rbp - 0x58], rdi
mov rbx, rdi
mov qword [rbp - 0x48], rbx
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x40], r14
mov byte [rbp - 0x58], al
lea rsi, [rbp + 0xd0]
movsx edx, byte [rsi]
test dl, dl
je 0x1400c9554
mov rax, r14
sub rax, rbx
lea rcx, [rbp - 0x58]
cmp rax, 1
jb 0x1400c952a
lea rax, [rbx + 1]
mov qword [rbp - 0x48], rax
cmp r14, 0x10
cmovae rcx, qword [rbp - 0x58]
movzx eax, dl
mov byte [rcx + rbx], al
mov byte [rcx + rbx + 1], 0
jmp 0x1400c953f
mov byte [rsp + 0x20], dl
mov r9d, 1
xor r8d, r8d
mov edx, r9d
call fcn.140085e40
inc edi
inc rsi
mov r14, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x48]
cmp edi, 0xff
jb 0x1400c94f5
mov rsi, qword [rbp - 0x58]
test rbx, rbx
je 0x1400c9626
lea rdi, [rbp - 0x58]
cmp r14, 0x10
cmovae rdi, rsi
test rbx, rbx
je 0x1400c95df
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x30]
call fcn.14056bc90
lea rcx, [0x1405cfd60]
lea r13, [0x1405cfd70]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rbp + rax - 0x30], 1
inc rcx
cmp rcx, r13
jne 0x1400c95a0
movzx r13d, byte [rsp + 0x60]
lea rdx, [rbx + rdi]
mov rax, rdi
cmp rdi, rdx
jae 0x1400c95df
movzx ecx, byte [rax]
cmp byte [rbp + rcx - 0x30], 0
je 0x1400c95d6
inc rax
cmp rax, rdx
jb 0x1400c95c2
jmp 0x1400c95df
sub rax, rdi
cmp rax, 0xffffffffffffffff
jne 0x1400c9626
lea rax, [rsp + 0x70]
xor r8d, r8d
lea rdx, [rbp + 0xd0]
mov rcx, r12
mov qword [rsp + 0x20], rax
test r13b, r13b
je 0x1400c969d
mov r9d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400c9626
mov dl, 1
mov rcx, qword [rsp + 0x70]
call fcn.1400c9ad0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp r14, 0x10
jb 0x1400c965f
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400c9657
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c9721
mov rcx, rsi
call fcn.140567150
inc r15d
cmp r15d, dword [rsp + 0x68]
jb 0x1400c9465
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.140567130
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400c9626
mov dword [rbp - 0x80], 4
xor edi, edi
mov dword [rsp + 0x64], edi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.KMD_EnableInternalLargePage
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400c9711
cmp dword [rsp + 0x64], 2
jne 0x1400c9711
mov rcx, qword [0x145efeca0]
mov rax, qword [0x145efec98]
sub rcx, rax
sar rcx, 2
mov dword [rax + rcx*4 - 4], 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400c9628
call fcn.140578e0c
int3