Function at 0x1400c0950
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x670]
sub rsp, 0x770
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rbp + 0x660], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rbp - 0x80], rdx
xor r15d, r15d
mov dword [rsp + 0x60], r15d
cmp qword [rcx], r15
setne cl
mov r9d, 0x278
lea r14, str.C:dvsp4_build_sw_relgfclient_rel_03_28_backendcommonupdtlib_srcwindows_registry.cpp
mov r8, r14
lea rdx, str.Incorrect_state
call fcn.1400684a8
mov dword [rsp + 0x54], r15d
mov dword [rsp + 0x50], r15d
mov rdx, rbx
lea r12d, [r15 + 8]
cmp qword [rbx + 0x18], r12
jb 0x1400c09d5
mov rdx, qword [rbx]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x54]
xor r8d, r8d
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x5c], eax
test eax, eax
jne 0x1400c0eae
mov edx, dword [rsp + 0x50]
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14000c4b8
nop
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1400c0a5e
cmp qword [rbx + 0x18], r12
jb 0x1400c0a26
mov rbx, qword [rbx]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x5c], eax
test eax, eax
jne 0x1400c0f30
mov eax, dword [rsp + 0x50]
mov edx, eax
mov byte [rsp + 0x48], r15b
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.14002c630
mov eax, dword [rsp + 0x54]
mov dword [rsi], eax
lea rbx, [rsi + 4]
mov dword [rbx], r15d
lea rcx, [rsi + 8]
mov qword [rcx], r15
lea rdi, [rsi + 0x10]
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov qword [rsi + 0x30], r15
mov qword [rsi + 0x38], r15
mov qword [rsi + 0x40], r15
lea rdx, [rsi + 0x48]
mov qword [rdx], r15
mov qword [rdx + 8], r15
mov qword [rdx + 0x10], r15
mov dword [rsp + 0x60], 1
cmp eax, 6
ja 0x1400c0c65
je 0x1400c0e44
test eax, eax
je 0x1400c0e44
cmp eax, 2
jbe 0x1400c0b89
cmp eax, 3
je 0x1400c0b4a
add eax, 0xfffffffc
cmp eax, 1
ja 0x1400c1085
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
sub rax, rdx
mov r8d, 4
cmp rax, r8
jne 0x1400c0fb5
mov rcx, rbx
test rdx, rdx
je 0x1400c0b1b
call fcn.140089700
jmp 0x1400c0b30
call fcn.140089b10
call fcn.14009367c
mov dword [rax], SafeArrayPutElement
call fcn.14008d3cc
cmp dword [rsp + 0x54], 5
jne 0x1400c0e44
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx], eax
jmp 0x1400c0e44
lea rax, [rsp + 0x30]
cmp rdx, rax
je 0x1400c0e44
mov rax, qword [rsp + 0x30]
mov qword [rdx], rax
mov rbx, r15
mov qword [rsp + 0x30], rbx
mov rax, qword [rsp + 0x38]
mov qword [rdx + 8], rax
mov qword [rsp + 0x38], r15
mov rax, qword [rsp + 0x40]
mov qword [rdx + 0x10], rax
mov qword [rsp + 0x40], r15
jmp 0x1400c0e49
mov rdx, qword [rsp + 0x38]
mov rax, rdx
mov rbx, qword [rsp + 0x30]
sub rax, rbx
mov rcx, rax
and ecx, 1
je 0x1400c0bc5
mov byte [rsp + 0x49], r15b
sub rax, rcx
lea r8, [rsp + 0x49]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14002c630
mov rdx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
cmp rbx, rdx
je 0x1400c0e49
mov rax, rdx
sub rax, rbx
lea rcx, [rax - 1]
cmp rax, rcx
jbe 0x1400c101a
cmp byte [rcx + rbx], r15b
jne 0x1400c0c03
lea rcx, [rax - 2]
cmp rax, rcx
jbe 0x1400c101a
cmp byte [rcx + rbx], r15b
jne 0x1400c0c03
add rdx, 0xfffffffffffffffe
mov qword [rsp + 0x38], rdx
sub rdx, rbx
shr rdx, 1
mov rax, qword [rdi + 0x10]
cmp rdx, rax
ja 0x1400c0c29
mov rax, rdi
cmp qword [rdi + 0x18], r12
jb 0x1400c0c1e
mov rax, qword [rdi]
mov qword [rdi + 0x10], rdx
mov word [rax + rdx*2], r15w
jmp 0x1400c0c3a
lfence
xor r8d, r8d
sub rdx, rax
mov rcx, rdi
call fcn.14000f6c0
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
sub r9, r8
mov rax, qword [rdi + 0x10]
lea rdx, [rax + rax]
cmp qword [rdi + 0x18], r12
jb 0x1400c0c58
mov rdi, qword [rdi]
mov rcx, rdi
call fcn.1400c1c50
jmp 0x1400c0e44
cmp eax, 7
je 0x1400c0cc4
jbe 0x1400c1085
cmp eax, 0xa
jbe 0x1400c0e44
cmp eax, 0xb
jne 0x1400c1085
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
sub rax, rdx
cmp rax, r12
jne 0x1400c1020
mov r8, r12
test rdx, rdx
je 0x1400c0caa
call fcn.140089700
jmp 0x1400c0e44
call fcn.140089b10
call fcn.14009367c
mov dword [rax], SafeArrayPutElement
call fcn.14008d3cc
jmp 0x1400c0e44
mov rdx, qword [rsp + 0x38]
mov rax, rdx
mov rbx, qword [rsp + 0x30]
sub rax, rbx
mov rcx, rax
and ecx, 1
je 0x1400c0d00
mov byte [rsp + 0x4a], r15b
sub rax, rcx
lea r8, [rsp + 0x4a]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14002c630
mov rdx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
cmp rbx, rdx
je 0x1400c0e49
mov byte [rsp + 0x4b], r15b
cmp qword [rsp + 0x40], rdx
je 0x1400c0d27
mov byte [rdx], r15b
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
jmp 0x1400c0d3b
lea r8, [rsp + 0x4b]
lea rcx, [rsp + 0x30]
call fcn.1400c04b0
mov rdx, qword [rsp + 0x38]
mov byte [rsp + 0x4c], r15b
cmp qword [rsp + 0x40], rdx
je 0x1400c0d59
mov byte [rdx], r15b
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
jmp 0x1400c0d6d
lea r8, [rsp + 0x4c]
lea rcx, [rsp + 0x30]
call fcn.1400c04b0
mov rdx, qword [rsp + 0x38]
mov byte [rsp + 0x4d], r15b
cmp qword [rsp + 0x40], rdx
je 0x1400c0d8b
mov byte [rdx], r15b
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
jmp 0x1400c0d9f
lea r8, [rsp + 0x4d]
lea rcx, [rsp + 0x30]
call fcn.1400c04b0
mov rdx, qword [rsp + 0x38]
mov byte [rsp + 0x4e], r15b
cmp qword [rsp + 0x40], rdx
je 0x1400c0db5
mov byte [rdx], r15b
inc qword [rsp + 0x38]
jmp 0x1400c0dc4
lea r8, [rsp + 0x4e]
lea rcx, [rsp + 0x30]
call fcn.1400c04b0
mov rbx, qword [rsp + 0x30]
cmp word [rbx], r15w
je 0x1400c0e49
mov qword [rbp + 0x430], r15
mov qword [rbp + 0x438], 7
mov word [rbp + 0x420], r15w
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], r15w
jne 0x1400c0ded
mov rdx, rbx
lea rcx, [rbp + 0x420]
call fcn.140001a78
nop
lea rdx, [rbp + 0x420]
lea rcx, [rsi + 0x30]
call fcn.1400251f0
nop
lea rcx, [rbp + 0x420]
call fcn.140001a14
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.14008d6e0
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], r15w
jne 0x1400c0dcf
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400c0e84
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
cmp rdx, 0x1000
jb 0x1400c0e7c
lfence
add rdx, 0x27
mov rax, qword [rsp + 0x30]
mov rbx, qword [rax - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c0ea8
mov rcx, rbx
call fcn.14006b200
mov rax, rsi
mov rcx, qword [rbp + 0x660]
xor rcx, rsp
call fcn.14006b320
add rsp, 0x770
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14008d3ec
int3
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea rcx, [rbp - 0x68]
call fcn.14000c690
nop
lea rdx, str.RegQueryValueExW_failed_with
mov rcx, rax
call fcn.140025668
lea rdx, [rsp + 0x5c]
mov rcx, rax
call fcn.1400c032c
lea rdx, [rbp + 0x440]
mov rcx, rax
call fcn.14000c648
nop
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0x28b
mov r9, r14
mov r8d, ebx
lea rdx, [rbp + 0x440]
lea rcx, [rbp + 0x4e0]
call fcn.1400686ec
lea rdx, [0x140123850]
lea rcx, [rbp + 0x4e0]
call fcn.140089d68
nop
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea rcx, [rbp + 0x80]
call fcn.14000c690
nop
lea rdx, str.RegQueryValueExW_failed_with
mov rcx, rax
call fcn.140025668
lea rdx, [rsp + 0x5c]
mov rcx, rax
call fcn.1400c032c
lea rdx, [rbp + 0x460]
mov rcx, rax
call fcn.14000c648
nop
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0x29f
mov r9, r14
mov r8d, ebx
lea rdx, [rbp + 0x460]
lea rcx, [rbp + 0x5a0]
call fcn.1400686ec
lea rdx, [0x140123850]
lea rcx, [rbp + 0x5a0]
call fcn.140089d68
nop
lea rcx, [rbp + 0x168]
call fcn.14000c690
nop
lea rdx, str.Invalid_DWORD_size:
mov rcx, rax
call fcn.140025668
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.14002c154
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.140048d64
lea rdx, [rbp + 0x480]
mov rcx, rax
call fcn.14000c648
nop
mov r8d, 0x305
lea rdx, str.C:dvsp4_build_sw_relgfclient_rel_03_28_backendcommonupdtlib_srcwindows_registry.cpp
lea rcx, [rbp + 0x480]
call fcn.140003b4c
nop
call fcn.1400c1648
int3
lea rcx, [rbp + 0x250]
call fcn.14000c690
nop
lea rdx, str.Invalid_QWORD_size:
mov rcx, rax
call fcn.140025668
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.14002c154
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140048d64
lea rdx, [rbp + 0x4a0]
mov rcx, rax
call fcn.14000c648
nop
mov r8d, 0x311
lea rdx, str.C:dvsp4_build_sw_relgfclient_rel_03_28_backendcommonupdtlib_srcwindows_registry.cpp
lea rcx, [rbp + 0x4a0]
call fcn.140003b4c
nop
lea rcx, [rbp + 0x338]
call fcn.14000c690
nop
lea rdx, str.Invalid_registry_value_type
mov rcx, rax
call fcn.140025668
lea rdx, [rsp + 0x54]
mov rcx, rax
call fcn.140011918
lea rdx, [rbp + 0x4c0]
mov rcx, rax
call fcn.14000c648
nop
mov r8d, 0x316
lea rdx, str.C:dvsp4_build_sw_relgfclient_rel_03_28_backendcommonupdtlib_srcwindows_registry.cpp
lea rcx, [rbp + 0x4c0]
call fcn.140003b4c
int3