Function at 0x140008030
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1400211b0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea r8, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x50]
mov edx, 0x80
call fcn.14000ae60
lea r8, [0x1400210b8]
lea rcx, [rsp + 0x50]
mov edx, 0x80
call fcn.14000c2c0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400082e1
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, str.AGFNPIPES
xor r8d, r8d
mov qword [rsp + 0x170], rbx
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x160], rdi
mov dword [rsp + 0x38], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, 1
test eax, eax
lea edi, [rbx + 4]
jne 0x14000810d
mov eax, dword [rsp + 0x30]
cmp eax, ebx
jae 0x1400080fe
mov eax, ebx
mov dword [rsp + 0x30], ebx
jmp 0x140008107
cmp eax, edi
cmova eax, edi
mov dword [rsp + 0x30], eax
mov dword [0x14002111c], eax
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, str.AGFN2PIPES
xor r8d, r8d
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000816e
mov eax, dword [rsp + 0x30]
cmp eax, ebx
jae 0x14000815f
mov eax, ebx
mov dword [rsp + 0x30], ebx
jmp 0x140008168
cmp eax, edi
cmova eax, edi
mov dword [rsp + 0x30], eax
mov dword [0x140021120], eax
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, str.ATKMETHODIPES
xor r8d, r8d
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400081cf
mov eax, dword [rsp + 0x30]
cmp eax, ebx
jae 0x1400081c0
mov eax, ebx
mov dword [rsp + 0x30], ebx
jmp 0x1400081c9
cmp eax, edi
cmova eax, edi
mov dword [rsp + 0x30], eax
mov dword [0x140021124], eax
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, str.EMAMaxRegister
xor r8d, r8d
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rdi, qword [rsp + 0x160]
test eax, eax
jne 0x14000822c
mov eax, dword [rsp + 0x30]
cmp eax, ebx
cmovb eax, ebx
mov dword [rsp + 0x30], eax
mov dword [0x140021128], eax
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, str.AcceptedModes
xor r8d, r8d
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [0x1400210ec]
test eax, eax
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x34]
cmove ecx, dword [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov dword [0x1400210ec], ecx
mov rcx, qword [rsp + 0x40]
lea rdx, str.AvailableBufferBitmap
xor r8d, r8d
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [0x14002112c]
test eax, eax
cmove ecx, dword [rsp + 0x30]
mov dword [0x14002112c], ecx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000ad20
add rsp, 0x168
ret