Function at 0x14001912c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1420]
mov eax, 0x1520
call fcn.1400322a0
sub rsp, rax
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1560], rbx
mov rax, qword [0x1400548d0]
xor rax, rsp
mov qword [rbp + 0x1410], rax
mov r14, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x200]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x74], 0x104
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov rcx, r14
call fcn.140017348
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x1400191d2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140019242
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8, rsi
lea rdx, str.Failed_to_open_registry_key__s
mov ecx, ebx
call fcn.14000ad50
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001923b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov eax, ebx
jmp 0x1400194da
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rsp + 0x74]
lea rdx, [rbp + 0x200]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
je 0x1400192d3
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8, rsi
lea rdx, str.Failed_to_examine_registry_key__s
mov ecx, ebx
call fcn.14000ad50
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001923b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x14001923b
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x1400194c1
mov esi, r15d
mov edi, 0x80070000
mov dword [rsp + 0x78], 0xff
mov word [rbp], r15w
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x78]
lea r8, [rbp]
mov edx, esi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140019501
cmp dword [rsp + 0x6c], 1
jne 0x1400193b0
mov word [rbp + 0x410], r15w
mov dword [rsp + 0x68], 0x1000
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x410]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, 2
lea r8, [rbp]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14001947a
lea rax, [rbp]
mov qword [rbp - 0x80], rax
lea rax, [rbp + 0x410]
mov qword [rbp - 0x78], rax
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x68]
mov rcx, r14
call fcn.14001a388
jmp 0x1400194b5
cmp dword [rsp + 0x6c], 4
jne 0x1400194b5
mov dword [rsp + 0x68], r15d
mov dword [rsp + 0x7c], 4
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001947a
mov edx, dword [rsp + 0x68]
lea rcx, [rbp - 0x20]
call fcn.140013278
nop
lea rcx, [rbp]
mov qword [rbp - 0x48], rcx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x58]
mov rcx, r14
call fcn.14001a5a4
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14001945d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
call fcn.14000ec50
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x1400194b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
call fcn.14000ec50
jmp 0x1400194b5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, edi
test eax, eax
mov r8d, ebx
lea rdx, str.Failed_to_read_registry_value_hr0x_08x
cmovle ecx, eax
call fcn.14000ad50
inc esi
cmp esi, dword [rsp + 0x70]
jb 0x1400192e7
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400194d8
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
xor eax, eax
mov rcx, qword [rbp + 0x1410]
xor rcx, rsp
call fcn.140031070
mov rbx, qword [rsp + 0x1560]
add rsp, 0x1520
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
lea rdx, str.Failed_to_enumerate_registry_key
mov ecx, ebx
call fcn.14000ad50
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001923b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x14001923b