Function at 0x14000a8c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x460]
sub rsp, 0x560
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rbp + 0x450], rax
lea rax, str.SwapfileControl
mov dword [rbp - 0x78], 0x20001e
mov qword [rbp - 0x70], rax
mov rsi, rcx
lea rax, str.SwapFile
mov dword [rbp - 0x68], 0x120010
mov r15d, 0x20
mov qword [rbp - 0x60], rax
xor edx, edx
lea rcx, [rbp - 0x40]
lea ebx, [r15 - 0x10]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
cmp byte [0x14002744d], 0
jne 0x14000a944
mov ebx, 0xc00000bb
jmp 0x14000ac95
mov rcx, qword [0x140027450]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
mov r8d, 4
mov dword [rsp + 0x20], ebx
lea rdx, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x14000a993
cmp dword [rbp + 0x20], 4
jne 0x14000a993
cmp dword [rbp + 0x24], 4
jne 0x14000a993
cmp dword [rbp + 0x28], 0
jne 0x14000a993
mov ebx, 0xc0000072
jmp 0x14000ac95
mov rcx, qword [0x140027450]
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
mov r8d, 2
mov dword [rsp + 0x20], 0x210
lea rdx, [rbp - 0x68]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x14000aa98
mov rax, qword [rbp + 0x38]
cmp eax, 0x204
ja 0x14000aa98
mov word [rbp - 0x58], ax
lea r8, [rbp - 0x40]
mov word [rbp - 0x56], ax
lea rcx, [rbp - 0x58]
lea rax, [rbp + 0x3c]
xor r9d, r9d
mov qword [rbp - 0x50], rax
xor edx, edx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call fcn.140005150
mov ebx, eax
test eax, eax
js 0x14000ac95
movaps xmm0, xmmword [rbp - 0x40]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rbp - 0x30]
call fcn.14000a550
lea rcx, [rbp - 0x30]
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop dword [rax + rax]
test ebx, ebx
js 0x14000ac95
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000a989
mov ecx, dword [rsp + 0x44]
test ecx, ecx
je 0x14000a989
shl rax, 0x14
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov eax, ecx
shl rax, 0x14
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x50], rax
call fcn.140014090
mov ebx, eax
test eax, eax
js 0x14000ac95
mov rdi, qword [rsp + 0x48]
jmp 0x14000ab94
cmp qword [0x140026740], 0
je 0x14000a989
mov rax, qword [0x140027420]
test rax, rax
jne 0x14000aabc
mov ebx, 0xc0000225
jmp 0x14000ac95
movzx r9d, word [rax + 0x1c]
lea r8, str.___c:_s
lea rax, str.swapfile.sys
mov edx, 0x208
lea rcx, [rbp + 0x240]
mov qword [rsp + 0x20], rax
call fcn.140004384
mov ebx, eax
test eax, eax
js 0x14000ac95
lea rdx, [rbp + 0x240]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rdi, qword [0x140027420]
mov rcx, qword [0x140026740]
mov eax, dword [rdi + 0x10]
and al, r15b
neg al
sbb r8, r8
and r8, 0xfffffffff1000000
add r8, 0x10000000
mov qword [rsp + 0x38], r8
mov r10, r8
mov r11, r8
cmp rcx, 0xffffffffffffffff
jne 0x14000ab52
mov rax, qword [0x140027460]
lea rcx, [rax + rax*2]
shr rcx, 1
mov r9, rcx
jmp 0x14000ab68
mov r9, rcx
cmp r8, rcx
jb 0x14000ab68
mov r8, rcx
mov qword [rsp + 0x38], rcx
mov r10, rcx
mov r11, rcx
movabs rax, 0xcccccccccccccccd
mul qword [rdi + 0x28]
shr rdx, 3
cmp r9, rdx
jb 0x14000ab88
mov rcx, rdx
mov r9, rdx
mov r10, r11
cmp r9, r10
cmovbe rcx, r8
mov qword [rsp + 0x50], rcx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.140007bb0
and qword [rbp - 0x18], 0
lea rax, [rsp + 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x28
lea r9, [rbp + 0x10]
mov qword [rbp - 0x10], rax
lea r8, [rbp - 0x20]
mov dword [rbp - 0x20], 0x30
mov edx, 0xc0100000
mov dword [rbp - 8], 0x40
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x20], 3
movdqu xmmword [rbp], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
test eax, eax
js 0x14000ac19
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x60]
call fcn.14000a760
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test byte [rdi + 0x10], 8
mov ebx, 0x80000000
je 0x14000ac55
mov ecx, dword [rdi + 0x14]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x30]
call fcn.14000acd8
test eax, eax
js 0x14000ac55
cmp dword [rsp + 0x48], 0
je 0x14000ac55
test dword [rsp + 0x30], 0xfffffff0
jne 0x14000ac55
mov ebx, dword [rsp + 0x30]
or ebx, 0xffffffe0
shl ebx, 0x1a
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x78]
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x80]
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x78], rax
call qword [sym.imp.ntdll.dll_NtCreatePagingFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14000ac95
mov byte [0x14002744c], 1
mov qword [rsi], rdi
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.140010a60
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret