Function at 0x140157d30
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x298]
sub rsp, 0x380
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140462840]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov r14, rcx
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
xor r15d, r15d
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x70], r15d
mov qword [rbp - 0x68], r15
add r14, 0x2898
mov rcx, r14
call fcn.14013aa00
lea rdx, [rsp + 0x78]
lea ecx, [r15 + 8]
call fcn.140195770
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov r8, rax
mov rdx, 0xffffffff80000002
mov r9d, 0x20019
lea rcx, [rbp - 0x78]
call fcn.14008ff80
test eax, eax
jne 0x140157f64
mov dword [rsp + 0x64], Ordinal_261
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rdi, qword [rbp - 0x78]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140157f4e
mov ebx, r15d
nop
mov dword [rsp + 0x64], Ordinal_261
mov word [rbp + 0x70], r15w
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x64]
lea r8, [rbp + 0x70]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140157f42
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc120u.dll_Ordinal_286]
nop
lea rdx, [0x1402e34f0]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc120u.dll_Ordinal_13897]
mov dword [rsp + 0x70], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
xor r8d, r8d
lea rdx, [rbp + 0x70]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x20], rcx
mov r8d, 3
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140002910
nop
mov rcx, qword [rbp - 0x20]
mov rax, qword [0x140467260]
call qword [rax + 0x28]
mov qword [rbp - 0x60], rax
mov eax, dword [rsp + 0x74]
mov dword [rbp - 0x58], eax
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.140149130
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x48]
mov rcx, r14
call fcn.140149420
nop
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x140157f37
call qword [sym.imp.MSVCR120.dll_free]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140157e30
test rdi, rdi
je 0x140157f60
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x70], r15d
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov r8, rax
mov rdx, 0xffffffff80000001
mov r9d, 0x20019
lea rcx, [rbp - 0x78]
call fcn.14008ff80
mov rsi, qword [rbp - 0x78]
test eax, eax
jne 0x1401581b3
mov dword [rsp + 0x60], Ordinal_261
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x1401581a2
mov edi, r15d
nop dword [rax]
mov dword [rsp + 0x60], Ordinal_261
mov word [rbp + 0x70], r15w
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x70]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140158196
mov dword [rsp + 0x74], 4
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x7c]
xor r8d, r8d
lea rdx, [rbp + 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc120u.dll_Ordinal_286]
nop
lea rdx, [0x1402e34f0]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc120u.dll_Ordinal_13897]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x20], rcx
mov r8d, 3
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140002910
nop
mov rcx, qword [rbp - 0x20]
mov rax, qword [0x140467260]
call qword [rax + 0x28]
mov rcx, qword [r14]
mov rdx, qword [rcx + 8]
mov r8, rcx
cmp byte [rdx + 0x19], 0
jne 0x1401580db
cmp qword [rdx + 0x20], rax
jae 0x1401580cf
mov rdx, qword [rdx + 0x10]
jmp 0x1401580d5
mov r8, rdx
mov rdx, qword [rdx]
cmp byte [rdx + 0x19], 0
je 0x1401580c3
cmp r8, rcx
je 0x1401580f0
cmp rax, qword [r8 + 0x20]
jb 0x1401580f0
mov qword [rbp - 0x50], r8
lea rbx, [rbp - 0x50]
jmp 0x1401580f8
mov qword [rbp - 0x60], rcx
lea rbx, [rbp - 0x60]
mov rbx, qword [rbx]
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x14015810e
call qword [sym.imp.MSVCR120.dll_free]
cmp rbx, qword [r14]
jne 0x14015818b
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x20], rcx
mov r8d, 3
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140002910
nop
mov rcx, qword [rbp - 0x20]
mov rax, qword [0x140467260]
call qword [rax + 0x28]
mov qword [rbp - 0x48], rax
mov eax, dword [rsp + 0x70]
mov dword [rbp - 0x40], eax
lea rdx, [rbp - 0x48]
mov rcx, r14
call fcn.140149130
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x30]
mov rcx, r14
call fcn.140149420
nop
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x14015818b
call qword [sym.imp.MSVCR120.dll_free]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
inc edi
cmp edi, dword [rsp + 0x64]
jb 0x140157ff0
test rsi, rsi
je 0x1401581b3
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r15
test rsi, rsi
je 0x1401581c2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.140289bf0
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret