Function at 0x140007840
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14003e2f0]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
and qword [rsp + 0x38], 0
lea rdx, str.SoftwareMicrosoft
and qword [rsp + 0x48], 0
mov rdi, rcx
and qword [rsp + 0x50], 0
mov ebx, 0x20019
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400078e4
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.HTML_Help_CollectionsDeveloper_Collections
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000790a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400231c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, CSocketWnd::CSocketWnd
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], CSocketWnd::CSocketWnd
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Language
mov dword [rsp + 0x34], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x14000796e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400078d9
lea rax, [rsp + 0x48]
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140007994
mov rcx, qword [rsp + 0x38]
jmp 0x140007963
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], CSocketWnd::CSocketWnd
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Preferred
mov dword [rsp + 0x34], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x1400079e3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000798d
lea rax, [rsp + 0x50]
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140007a09
mov rcx, qword [rsp + 0x48]
jmp 0x1400079db
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], CSocketWnd::CSocketWnd
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Filename
mov dword [rsp + 0x34], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x60]
mov ecx, 4
lea rdx, str.Help__s
call fcn.140020a74
test ebx, ebx
jne 0x1400078e4
mov rcx, qword [rdi + 0x450]
test rcx, rcx
je 0x140007aad
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
and qword [rdi + 0x450], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi + 0x450], rax
test rax, rax
je 0x1400078e4
mov al, 1
jmp 0x1400078e6