Function at 0x18005b060
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1801fdc38]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rbp - 0x35], r12d
mov qword [rbp + 0x27], 7
mov qword [rbp + 0x1f], r12
mov word [rbp + 0xf], r12w
lea r8d, [r12 + 0x32]
lea rdx, str.SoftwareMicrosoftInternet_ExplorerSearchScopes_
lea rcx, [rbp + 0xf]
call fcn.180015970
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0xf]
call fcn.180015b20
mov qword [rbp - 0x31], r12
mov dword [rbp - 0x29], r12d
mov qword [rbp - 0x21], r12
lea r8, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae r8, qword [rbp + 0xf]
mov rdx, 0xffffffff80000001
mov r9d, 0x20019
lea rcx, [rbp - 0x31]
call fcn.1800157c0
test eax, eax
je 0x18005b130
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x18005b12b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x18005b276
mov dword [rbp - 0x39], r12d
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x35]
xor r8d, r8d
lea rdx, [0x18017b848]
mov rsi, qword [rbp - 0x31]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18005b257
mov eax, dword [rbp - 0x35]
cmp eax, 1
je 0x18005b176
cmp eax, 2
jne 0x18005b257
mov ebx, dword [rbp - 0x39]
shr ebx, 1
mov word [rbp - 0x39], r12w
mov edx, ebx
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], r12
mov qword [rbp - 9], r12
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.180008510
nop
lea eax, [rbx + rbx]
mov dword [rbp - 0x39], eax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov rbx, qword [rbp - 0x19]
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x35]
xor r8d, r8d
lea rdx, [0x18017b848]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18005b228
mov eax, dword [rbp - 0x35]
cmp eax, 1
je 0x18005b1dc
cmp eax, 2
jne 0x18005b228
test rbx, rbx
je 0x18005b1fd
mov eax, dword [rbp - 0x39]
test eax, eax
je 0x18005b1f9
test al, 1
jne 0x18005b228
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x18005b1fd
jmp 0x18005b228
mov word [rbx], r12w
mov rdx, rbx
mov rcx, rdi
call fcn.180015ad0
nop
test rbx, rbx
je 0x18005b217
mov rcx, rbx
call fcn.1801196dc
nop
test rsi, rsi
je 0x18005b226
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x18005b276
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
test rbx, rbx
je 0x18005b246
mov rcx, rbx
call fcn.1801196dc
nop
test rsi, rsi
je 0x18005b255
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x18005b276
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
test rsi, rsi
je 0x18005b276
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rbp + 0x27], 8
jb 0x18005b286
mov rcx, qword [rbp + 0xf]
call fcn.1801196dc
mov rax, rdi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.180119820
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret