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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x9b0]
sub rsp, 0xab0
mov rax, qword [0x140136e20]
xor rax, rsp
mov qword [rbp + 0x9a0], rax
xor eax, eax
mov rbx, rdx
mov rdi, r8
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x7a0]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov esi, eax
mov dword [rsp + 0x50], pe_nt_image_headers64
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400bb03f
nop word [rax + rax]
lea rax, [rsp + 0x48]
lea rdx, [rbp + 0x7a0]
inc esi
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x5c], esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, [0x14010a008]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x584]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x60]
mov esi, eax
lea rax, [rsp + 0x40]
lea rdx, [0x14010a018]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], pe_nt_image_headers64
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8d, dword [rsp + 0x40]
mov dword [rsp + 0x64], eax
test r8d, r8d
je 0x1400bad9c
cmp dword [rsp + 0x60], 1
jne 0x1400bad9c
lea ecx, [r8 - 1]
cmp word [rbp + rcx*2 - 0x80], 0
je 0x1400bada2
mov eax, pe_nt_image_headers64
cmp r8d, eax
cmovb eax, r8d
xor ecx, ecx
mov word [rbp + rax*2 - 0x80], cx
jmp 0x1400bada2
xor eax, eax
mov word [rbp - 0x80], ax
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, str.ShowOnBookmarksToolbar
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x580]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x58]
mov ebx, eax
lea rax, [rsp + 0x40]
lea rdx, [0x14010a058]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x180]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0x200
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0x40]
test r11d, r11d
je 0x1400bae4a
cmp dword [rsp + 0x58], 1
jne 0x1400bae4a
lea eax, [r11 - 1]
cmp word [rbp + rax*2 + 0x180], 0
je 0x1400bae53
mov eax, 0x200
cmp r11d, eax
cmovb eax, r11d
xor ecx, ecx
mov word [rbp + rax*2 + 0x180], cx
jmp 0x1400bae53
xor eax, eax
mov word [rbp + 0x180], ax
test esi, esi
jne 0x1400bafee
cmp dword [rsp + 0x64], esi
jne 0x1400bafee
test ebx, ebx
jne 0x1400bafee
cmp dword [rbp + 0x584], ebx
jne 0x1400baf09
mov ecx, 0x830
call fcn.14004af90
lea rdx, [rbp - 0x80]
mov rcx, rax
mov rbx, rax
call fcn.1400925d0
mov qword [rbx + 0x810], rdi
mov rcx, qword [rdi + 0x828]
test rcx, rcx
jne 0x1400baeb7
xor eax, eax
mov qword [rdi + 0x828], rbx
mov qword [rbx + 0x818], rax
jmp 0x1400baeee
lea rax, [rcx + 0x820]
cmp qword [rax], 0
je 0x1400baee0
nop word [rax + rax]
mov rcx, qword [rax]
lea rax, [rcx + 0x820]
cmp qword [rax], 0
jne 0x1400baed0
mov qword [rcx + 0x820], rbx
mov qword [rbx + 0x818], rcx
mov r8, qword [rbp + 0x790]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
call fcn.1400bac50
jmp 0x1400bafee
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x588]
lea rdx, str.Location
xor r8d, r8d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0x40]
test r11d, r11d
je 0x1400baf79
cmp dword [rsp + 0x54], 1
jne 0x1400baf79
lea eax, [r11 - 1]
cmp word [rbp + rax*2 + 0x588], 0
je 0x1400baf84
mov eax, 0x104
cmp r11d, eax
cmovb eax, r11d
xor esi, esi
mov word [rbp + rax*2 + 0x588], si
jmp 0x1400baf86
xor esi, esi
mov word [rbp + 0x588], si
jmp 0x1400baf86
xor esi, esi
mov ecx, 0x830
call fcn.14004af90
lea rdx, [rbp - 0x80]
mov rcx, rax
mov rbx, rax
call fcn.1400925d0
mov qword [rbx + 0x810], rdi
mov rcx, qword [rdi + 0x828]
test rcx, rcx
jne 0x1400bafc2
mov qword [rdi + 0x828], rbx
mov qword [rbx + 0x818], rsi
jmp 0x1400bafee
lea rax, [rcx + 0x820]
cmp qword [rax], 0
je 0x1400bafe0
nop
mov rcx, qword [rax]
lea rax, [rcx + 0x820]
cmp qword [rax], 0
jne 0x1400bafd0
mov qword [rcx + 0x820], rbx
mov qword [rbx + 0x818], rcx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [rsp + 0x5c]
mov rbx, qword [rsp + 0x70]
xor eax, eax
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x7a0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov edx, esi
mov rcx, rbx
mov dword [rsp + 0x50], pe_nt_image_headers64
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400bacd0
mov rcx, qword [rbp + 0x9a0]
xor rcx, rsp
call fcn.14004ae00
mov rbx, qword [rsp + 0xae8]
add rsp, 0xab0
pop rdi
pop rsi
pop rbp
ret