Function at 0x140007030
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1400201b0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea r8, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x50]
mov edx, 0x80
call fcn.140009e60
lea r8, [0x1400200b8]
lea rcx, [rsp + 0x50]
mov edx, 0x80
call fcn.14000b2c0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400072e1
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 0x14000710d
mov eax, dword [rsp + 0x30]
cmp eax, ebx
jae 0x1400070fe
mov eax, ebx
mov dword [rsp + 0x30], ebx
jmp 0x140007107
cmp eax, edi
cmova eax, edi
mov dword [rsp + 0x30], eax
mov dword [0x14002011c], 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 0x14000716e
mov eax, dword [rsp + 0x30]
cmp eax, ebx
jae 0x14000715f
mov eax, ebx
mov dword [rsp + 0x30], ebx
jmp 0x140007168
cmp eax, edi
cmova eax, edi
mov dword [rsp + 0x30], eax
mov dword [0x140020120], 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 0x1400071cf
mov eax, dword [rsp + 0x30]
cmp eax, ebx
jae 0x1400071c0
mov eax, ebx
mov dword [rsp + 0x30], ebx
jmp 0x1400071c9
cmp eax, edi
cmova eax, edi
mov dword [rsp + 0x30], eax
mov dword [0x140020124], 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 0x14000722c
mov eax, dword [rsp + 0x30]
cmp eax, ebx
cmovb eax, ebx
mov dword [rsp + 0x30], eax
mov dword [0x140020128], 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 [0x1400200ec]
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 [0x1400200ec], 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 [0x14002012c]
test eax, eax
cmove ecx, dword [rsp + 0x30]
mov dword [0x14002012c], 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.140009d20
add rsp, 0x168
ret