Function at 0x1400b9f18
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
mov eax, 0x1b0
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rbp + 0xa8], rax
mov r13d, r8d
mov dword [rsp + 0x44], r8d
mov r12, rdx
mov qword [rsp + 0x58], rdx
mov rsi, rcx
xor r15d, r15d
mov edi, r15d
movzx eax, word [rcx + 0x1c]
mov r14b, al
shr r14b, 7
and r14b, 1
mov ecx, dword [0x14037ceb0]
test ecx, ecx
je 0x1400b9f88
cmp ecx, 2
sete cl
jmp 0x1400b9f92
cmp byte [0x14037cf31], r15b
setne cl
test cl, cl
je 0x1400b9fa0
and al, 0x30
cmp al, 0x20
jne 0x1400ba5ea
cmp dword [0x14037d16c], r15d
jne 0x1400ba5ea
mov dl, 1
mov rcx, rsi
call fcn.1400baa80
test al, al
jne 0x1400ba5ea
mov rbx, r15
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x4c], r15d
lea rdx, [0x140377bd0]
lea rcx, [rbp - 0x18]
call fcn.1400b5034
xor ecx, ecx
test r14b, r14b
jne 0x1400ba1d9
xor r12d, r12d
mov r14d, r12d
cmp r14d, 4
jge 0x1400ba118
mov r13b, r12b
mov qword [rsp + 0x28], r12
mov al, byte [rsi + 0x18]
mov byte [rsp + 0x20], al
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp - 0x68]
call fcn.1400b8ff0
mov edi, dword [rax]
mov rdx, qword [rax + 8]
mov qword [rax + 8], r12
mov rcx, r15
mov r15, rdx
test rcx, rcx
je 0x1400ba03b
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004a846.0]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1400ba055
mov qword [rbp - 0x60], r12
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004a846.0]
test edi, edi
jne 0x1400ba10c
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x4c]
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [r15 + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400ba0d6
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400ba0eb
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400ba0f0
test rbx, rbx
je 0x1400ba0ad
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x4c]
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [r15 + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0x3f2
je 0x1400ba0f7
cmp edi, 0x3fa
je 0x1400ba0f7
cmp edi, 6
je 0x1400ba0f7
mov eax, r12d
jmp 0x1400ba0fc
mov edi, 8
jmp 0x1400ba0eb
mov eax, 1
test eax, eax
je 0x1400ba10c
mov rcx, qword [rsi + 0x10]
call fcn.1400b8df8
mov r13b, 1
inc r14d
test r13b, r13b
jne 0x1400b9fed
test edi, edi
mov r12, qword [rsp + 0x58]
jne 0x1400ba2a4
xor r14d, r14d
test rbx, rbx
je 0x1400ba2a7
movzx ecx, word [rsi + 0x1c]
and ecx, 0xf
cmp dword [rsp + 0x4c], ecx
jne 0x1400ba1d2
sub ecx, 1
je 0x1400ba1a2
cmp ecx, 1
je 0x1400ba1a2
mov eax, dword [rsp + 0x48]
mov r13d, dword [rsp + 0x44]
cmp eax, r13d
jne 0x1400ba1d7
mov r8d, eax
mov rdx, r12
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400ba1d7
mov edi, r14d
test r15, r15
je 0x1400ba184
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 8]
call qword [case.0x14004a846.0]
lea rcx, [rbp - 0x18]
call fcn.1400b4fc0
test rbx, rbx
je 0x1400ba19b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, edi
jmp 0x1400ba5ec
mov eax, dword [rsp + 0x48]
shr rax, 1
cmp word [rbx + rax*2 - 2], r14w
jne 0x1400ba1d2
mov rax, rbx
mov r8, r12
sub r8, rbx
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x1400ba1ce
add rax, 2
test edx, edx
jne 0x1400ba1ba
test ecx, ecx
je 0x1400ba16f
mov r13d, dword [rsp + 0x44]
xor ecx, ecx
mov r14d, ecx
cmp r14d, 4
jge 0x1400ba16f
xor edi, edi
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x28], rdi
mov al, byte [rsi + 0x18]
mov byte [rsp + 0x20], al
lea r9d, [rdi + 4]
xor r8d, r8d
mov rdx, qword [rsi + 0x10]
lea rcx, [rsp + 0x58]
call fcn.1400b8ff0
mov edi, dword [rax]
mov rdx, qword [rax + 8]
xor r8d, r8d
mov qword [rax + 8], r8
mov rcx, r15
mov r15, rdx
test rcx, rcx
je 0x1400ba232
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004a846.0]
xor r8d, r8d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400ba251
mov qword [rsp + 0x60], r8
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004a846.0]
xor r8d, r8d
test edi, edi
jne 0x1400ba4af
movzx r9d, word [rsi + 0x1c]
and r9d, 0xf
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [r15 + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp eax, 0x3f2
je 0x1400ba324
cmp eax, 0x3fa
je 0x1400ba324
cmp eax, 6
je 0x1400ba324
xor eax, eax
jmp 0x1400ba329
xor r14d, r14d
mov rdx, qword [rsi + 8]
movabs rax, 0xcccccccccccccccc
cmp rdx, rax
je 0x1400ba1d2
movzx ecx, word [rsi + 0x1c]
and ecx, 0xf
sub ecx, 1
je 0x1400ba30d
sub ecx, 1
je 0x1400ba30d
sub ecx, 2
je 0x1400ba2f5
cmp ecx, 7
jne 0x1400ba623
mov r13d, dword [rsp + 0x44]
cmp r13d, 8
jne 0x1400ba630
cmp qword [r12], rdx
jmp 0x1400ba16a
mov r13d, dword [rsp + 0x44]
cmp r13d, 4
jne 0x1400ba63d
cmp dword [r12], edx
jmp 0x1400ba16a
mov r13d, dword [rsp + 0x44]
cmp r13d, 2
jb 0x1400ba616
cmp rdx, r12
jmp 0x1400ba16a
mov eax, 1
test eax, eax
je 0x1400ba33d
mov rcx, qword [rsi + 0x10]
call fcn.1400b8df8
mov al, 1
jmp 0x1400ba5d3
xor eax, eax
test edi, edi
je 0x1400ba5d3
lea rcx, [0x140279258]
mov qword [rsp + 0x68], rcx
lea rcx, str.Win32ErrorCode
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x78], edi
mov word [rsp + 0x7c], ax
lea rax, [0x140279320]
mov qword [rbp - 0x58], rax
lea rax, str.RegistryValueName
mov qword [rbp - 0x50], rax
mov rax, qword [rsi]
mov qword [rbp - 0x48], rax
xor eax, eax
mov word [rbp - 0x40], ax
mov r8b, al
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp + 0x18]
call fcn.1400b5c30
lea rax, vtable.Mso::Logging::StructuredObject_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____0_.0
mov qword [rbp + 0x38], rax
lea rax, str.KeyPath
mov qword [rbp + 0x40], rax
movups xmm0, xmmword [rbp + 0x18]
movups xmmword [rbp + 0x48], xmm0
movups xmm1, xmmword [rbp + 0x28]
movups xmmword [rbp + 0x58], xmm1
xor eax, eax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], ax
mov word [rbp + 0x68], ax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, str.Failed_to_write_registry_value.
mov ecx, 0x16928cc
call fcn.1400bbc94
mov rax, qword [rbp + 0x60]
cmp rax, 8
jb 0x1400ba440
mov rcx, qword [rbp + 0x48]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x1400ba43a
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x1400ba5e3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], 7
mov word [rbp + 0x48], ax
lea rcx, [rbp + 0x18]
call fcn.14000ac30
mov ecx, 1
lock xadd dword [0x14037cb8c], ecx
inc ecx
movabs rax, 0x47ae147ae147ae15
mul rcx
mov eax, ecx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x32
sub rcx, rax
lea rax, str.OrapiWriteFail:_RegSetValueExW
lea rdx, [0x14037cb90]
add rcx, rcx
mov dword [rdx + rcx*8], edi
mov qword [rdx + rcx*8 + 8], rax
mov al, byte [rsp + 0x40]
jmp 0x1400ba5d3
lea rax, [0x140279258]
mov qword [rbp - 0x80], rax
lea rax, str.Win32ErrorCode
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], edi
mov word [rbp - 0x6c], r8w
lea rax, [0x140279320]
mov qword [rbp - 0x38], rax
lea rax, str.RegistryValueName
mov qword [rbp - 0x30], rax
mov rax, qword [rsi]
mov qword [rbp - 0x28], rax
mov word [rbp - 0x20], r8w
mov rax, qword [rsi + 0x10]
mov rdx, qword [rax]
mov qword [rbp - 8], r8
mov qword [rbp + 8], r8
mov qword [rbp + 0x10], 7
lea rcx, [rbp - 8]
call fcn.14000ae4c
lea rax, vtable.Mso::Logging::StructuredObject_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____0_.0
mov qword [rbp + 0x70], rax
lea rax, str.KeyName
mov qword [rbp + 0x78], rax
movups xmm0, xmmword [rbp - 8]
movups xmmword [rbp + 0x80], xmm0
movups xmm1, xmmword [rbp + 8]
movups xmmword [rbp + 0x90], xmm1
xor eax, eax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 7
mov word [rbp - 8], ax
mov word [rbp + 0xa0], ax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, str.Failed_to_open_registry_key.
mov ecx, 0x16928cd
call fcn.1400bbc94
lea rcx, [rbp + 0x80]
call fcn.14000ac30
lea rcx, [rbp - 8]
call fcn.14000ac30
mov ecx, 1
lock xadd dword [0x14037cb8c], ecx
inc ecx
movabs rax, 0x47ae147ae147ae15
mul rcx
mov eax, ecx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x32
sub rcx, rax
lea rax, str.OrapiWriteFail:_TryOpenKey_in_WriteValue
jmp 0x1400ba494
inc r14d
test al, al
je 0x1400ba16f
jmp 0x1400ba1dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor eax, eax
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.14024c6d0
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov ecx, 0x59948d
call fcn.1400b3928
int3
xor edx, edx
mov ecx, 0x599491
call fcn.1400b3928
int3
xor edx, edx
mov ecx, 0x59948f
call fcn.1400b3928
int3
xor edx, edx
mov ecx, 0x59948e
call fcn.1400b3928
int3