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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x258]
sub rsp, 0x340
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x140462840]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r15, rcx
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
lea rdx, [rbp - 0x80]
mov ecx, 6
call fcn.140195770
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov rdx, rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14015693f
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, r12d
cmp dword [rsp + 0x70], r12d
jbe 0x14015692f
mov r14, qword [rbp - 0x80]
nop word [rax + rax]
mov dword [rbp - 0x78], Ordinal_261
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x78]
lea r8, [rbp + 0x30]
mov edx, esi
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x30]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140156b38
mov dword [rsp + 0x64], r12d
mov dword [rsp + 0x60], r12d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x64]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140156868
mov ebx, dword [rsp + 0x60]
mov ecx, ebx
call qword [sym.imp.MSVCR120.dll_malloc]
mov rdi, rax
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.MSVCR120.dll_memset
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x64]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rax, [rbp - 0x58]
mov qword [rbp - 0x60], rax
mov r8d, 3
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140002910
nop
mov rcx, qword [rbp - 0x60]
mov rax, qword [0x140467260]
call qword [rax + 0x28]
mov r14, rax
lea rax, [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
cmp rcx, rax
je 0x14015685f
call qword [sym.imp.MSVCR120.dll_free]
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_free]
mov dword [rsp + 0x64], r12d
mov dword [rsp + 0x60], r12d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.Accel
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401568cc
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.Accel
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rax, qword [0x1404672c0]
call qword [rax + 0x1168]
mov rbx, qword [rax]
mov rdx, r14
mov rcx, rbx
call fcn.1400ede00
test rax, rax
jne 0x1401568fc
mov rdx, r14
mov rcx, rbx
call fcn.1400ee3e0
test rax, rax
je 0x140156918
mov ecx, dword [rax]
cmp ecx, 0xffffffff
je 0x140156918
movzx r9d, byte [rbp - 0x74]
movzx r8d, word [rbp - 0x72]
movzx edx, cx
mov rcx, r15
call fcn.14014f790
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, dword [rsp + 0x70]
jb 0x140156750
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140156b38
mov edx, 0xe141
mov r8d, 0x73
mov r9b, InitCommonControls
mov rcx, r15
call fcn.14014f790
mov edx, 0xe102
mov r8d, 0x57
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0x147
mov r8d, 0x4f
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0xe107
mov r8d, 0x50
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0x88d6
mov r8d, 0x44
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0xe103
mov r8d, 0x53
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0x80fd
mov r8d, 0x31
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0x80fd
mov r8d, 0x61
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0x80fe
mov r8d, 0x30
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0x80fe
mov r8d, 0x60
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0x80ff
mov r8d, 0x32
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0x80ff
mov r8d, 0x62
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0x89
lea r8d, [rdx - 0x38]
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0x812b
mov r8d, 0x6b
mov r9b, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, r15
call fcn.14014f790
mov edx, 0x812b
mov r8d, 0xbb
mov r9b, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, r15
call fcn.14014f790
mov edx, 0x8144
mov r8d, 0x48
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0x8147
mov r8d, 0x47
mov r9b, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, r15
call fcn.14014f790
mov edx, 0x8146
mov r8d, 0x47
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0x80f5
mov r8d, 0x4a
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0x80f6
mov r8d, 0x4b
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0xe100
mov r8d, 0x4e
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0x34
mov r8d, 0xde
mov r9b, 8
mov rcx, r15
call fcn.14014f790
mov edx, 0x25f
mov r8d, 0xba
mov r9b, 8
mov rcx, r15
call fcn.14014f790
nop
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140289bf0
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret