Function at 0x10040c020
Capabilities:
Query or enumerate registry value

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x98]
sub rsp, 0x198
mov qword [rbp + 8], 0xfffffffffffffffe
lea rax, str.sql_ntdbms_storengdmudmpld_sqlwriter.yukon_registry_registry.cxx
mov qword [rbp - 0x70], rax
lea rax, str.REGREGSC
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], 0x201
mov qword [rbp - 0x5c], 0x4000
xor ecx, ecx
mov dword [rbp], 0x1000000
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], rcx
lea rax, [rbp - 0x70]
mov qword [rbp + 0x10], rax
mov dword [rsp + 0x68], ecx
lea r15, str.CYKWRegistryKey::GetValue_DWORD
mov qword [rsp + 0x70], r15
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x78], rax
mov r8d, dword [rbp - 0x60]
mov dword [rbp - 0x80], r8d
mov r12d, dword [rbp - 0x5c]
mov dword [rbp - 0x7c], r12d
mov r13d, dword [rbp - 0x58]
mov dword [rbp - 0x78], r13d
lea rbx, [0x1004243d0]
mov rdi, rbx
mov esi, 2
mov r14d, esi
nop dword [rax + rax]
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x10040c14a
cmp dword [rcx + 0x28], 0
je 0x10040c14a
mov rax, qword [rcx]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r12d
mov r9d, r13d
mov rdx, qword [rbp - 0x70]
call qword [rax + 8]
mov rcx, qword [rdi]
mov rax, qword [rcx]
lea rdx, [0x10041465c]
call qword [rax + 0x18]
mov rcx, qword [rdi]
call fcn.1004067a0
mov r8d, dword [rbp - 0x60]
add rdi, 8
sub r14, 1
jne 0x10040c100
cmp byte [rbp + 3], r14b
mov r15, qword [rbp + 0xe0]
je 0x10040c18f
lea rdi, [rbp - 0x50]
mov r14d, 0xa
nop dword [rax + rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x10040c185
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rdi], 0
add rdi, 8
sub r14, 1
jne 0x10040c170
mov r14, qword [rbp + 0xf0]
xor ecx, ecx
mov dword [r14], ecx
mov dword [rbp + 0xf8], ecx
mov dword [rsp + 0x50], ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0xf8]
xor r8d, r8d
mov rdi, qword [rbp + 0xe8]
mov rdx, rdi
mov rcx, qword [r15 + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r10d, eax
cmp eax, 2
jne 0x10040c24e
xor edi, edi
lea r14, str.CYKWRegistryKey::GetValue_DWORD
mov rcx, qword [rbx]
cmp dword [rcx + 8], edi
je 0x10040c233
cmp dword [rcx + 0x28], edi
je 0x10040c233
mov rax, qword [rcx]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9d, r13d
xor r8d, r8d
lea rdx, [0x10041465c]
call qword [rax + 8]
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea r9, str.FALSE
mov r8, r14
lea rdx, str._ls:_Returning_bool:__ls
call qword [rax + 0x10]
mov rcx, qword [rbx]
call fcn.1004067a0
add rbx, 8
sub rsi, 1
jne 0x10040c1e3
lea rcx, [rsp + 0x68]
call fcn.1004016e0
xor al, al
jmp 0x10040c329
test r10d, r10d
je 0x10040c260
cmp r10d, 0xea
jne 0x10040c3c5
cmp dword [rbp + 0xf8], 4
jne 0x10040c44f
xor ecx, ecx
mov dword [rsp + 0x58], ecx
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x60], ecx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [r15 + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r10d, eax
test eax, eax
jne 0x10040c33d
mov eax, dword [rsp + 0x60]
mov dword [r14], eax
xor edi, edi
lea r14, str.CYKWRegistryKey::GetValue_DWORD
mov rcx, qword [rbx]
cmp dword [rcx + 8], edi
je 0x10040c313
cmp dword [rcx + 0x28], edi
je 0x10040c313
mov rax, qword [rcx]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9d, r13d
xor r8d, r8d
lea rdx, [0x10041465c]
call qword [rax + 8]
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea r9, str.TRUE
mov r8, r14
lea rdx, str._ls:_Returning_bool:__ls
call qword [rax + 0x10]
mov rcx, qword [rbx]
call fcn.1004067a0
add rbx, 8
sub rsi, 1
jne 0x10040c2c3
lea rcx, [rsp + 0x68]
call fcn.1004016e0
mov al, 1
add rsp, 0x198
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rax, [rbp + 0x18]
mov qword [rbp + 0xe0], rax
mov dword [rsp + 0x20], 0x4000
mov r9d, 0x23a
lea r8, str.REGREGSC
lea rdx, str.sql_ntdbms_storengdmudmpld_sqlwriter.yukon_registry_registry.cxx
lea rcx, [rbp + 0x18]
call fcn.100401340
mov rdx, rax
test r10d, r10d
jle 0x10040c380
movzx r10d, r10w
or r10d, 0x80070000
lea rcx, [r15 + 0x10]
call fcn.10040bc40
nop
mov ecx, dword [rsp + 0x54]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rsp + 0x58]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rdi
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x20], rax
lea r9, str.RegQueryValueExW_0x_p__s___s_0___lx__0___lu__
mov r8d, r10d
lea rcx, [rsp + 0x68]
call fcn.100406f50
int3
lea rax, [rbp + 0x18]
mov qword [rbp + 0xe0], rax
mov dword [rsp + 0x20], 0x4000
mov r9d, 0x220
lea r8, str.REGREGSC
lea rdx, str.sql_ntdbms_storengdmudmpld_sqlwriter.yukon_registry_registry.cxx
lea rcx, [rbp + 0x18]
call fcn.100401340
mov rdx, rax
test r10d, r10d
jle 0x10040c408
movzx r10d, r10w
or r10d, 0x80070000
lea rcx, [r15 + 0x10]
call fcn.10040bc40
nop
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rbp + 0xf8]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rdi
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x20], rax
lea r9, str.RegQueryValueExW_0x_p__s___s_0___lx__0___lu__
mov r8d, r10d
lea rcx, [rsp + 0x68]
call fcn.100406f50
int3
lea rax, [rbp + 0x18]
mov qword [rbp + 0xe0], rax
mov dword [rsp + 0x20], 0x4000
mov r9d, 0x226
lea r8, str.REGREGSC
lea rdx, str.sql_ntdbms_storengdmudmpld_sqlwriter.yukon_registry_registry.cxx
lea rcx, [rbp + 0x18]
call fcn.100401340
mov rdx, rax
lea rcx, [r15 + 0x10]
call fcn.10040bc40
nop
mov qword [rsp + 0x38], rdi
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
mov rcx, qword [r15 + 8]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rbp + 0xf8]
mov dword [rsp + 0x20], ecx
lea r9, str.Unexpected_type__lu_for_a_DWORD_value_0x_p__s___s
mov r8d, 0x8000ffff
lea rcx, [rsp + 0x68]
call fcn.100401af0
int3