Function at 0x140043434
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x10], rdx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov rdi, r9
mov rsi, r8
mov r15, rdx
mov rbx, rcx
call fcn.140002dfc
mov rcx, rax
xor r14d, r14d
test rax, rax
je 0x140043a43
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x80], rax
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x140043a43
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x78], rax
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x140043a43
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], r14
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x6c], r14d
mov dword [rsp + 0x60], r14d
mov dword [rdi], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14004359d
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.140009900
lea r12, [rbx + 0x40]
mov rax, qword [r12]
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [rax]
lea r14, [rbx + 0x18]
mov qword [rbp], r14
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.14004b4fc
mov edi, eax
xor esi, esi
test eax, eax
js 0x14004359d
mov eax, dword [rsp + 0x60]
add eax, 2
mov dword [rbp - 0x54], eax
mov ecx, eax
call fcn.14005212c
mov qword [rbp + 8], rax
mov qword [rbp - 0x60], rax
test rax, rax
jne 0x1400435c9
mov edi, 0x8007000e
mov rcx, qword [rbp + 8]
call fcn.140052590
nop
lea rcx, [rbp - 0x80]
call fcn.14003bf5c
mov eax, edi
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r13d, esi
cmp dword [rsp + 0x68], esi
jbe 0x140043593
mov edx, dword [rsp + 0x6c]
add edx, 1
mov dword [rsp + 0x70], edx
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x64], eax
js 0x140043a38
mov r8, qword [rbp - 0x78]
mov ecx, 1
sub ecx, dword [r8 - 8]
mov eax, dword [r8 - 0xc]
sub eax, edx
or eax, ecx
jge 0x14004360f
lea rcx, [rbp - 0x78]
call fcn.1400028a0
mov r8, qword [rbp - 0x78]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov edx, r13d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140043593
mov eax, dword [rsp + 0x70]
cmp eax, 0xffffffff
jne 0x14004366e
mov rcx, qword [rbp - 0x78]
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x140043a38
mov rcx, qword [rbp - 0x78]
cmp eax, dword [rcx - 0xc]
jg 0x140043a38
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbp - 0x78]
mov word [rax + rcx*2], si
mov ecx, dword [rsp + 0x64]
mov dword [rbp - 0x58], ecx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rsi
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
mov dword [rbp - 0x10], 0xa
mov eax, dword [rbp - 0x40]
sub eax, 1
je 0x1400438c4
sub eax, 1
je 0x14004389d
sub eax, 1
je 0x140043894
sub eax, 1
je 0x14004385e
sub eax, 3
je 0x140043726
cmp eax, 4
jne 0x140043902
mov dword [rbp - 0x70], 5
movsxd rax, ecx
mov rcx, qword [rbp - 0x60]
test rax, rax
je 0x140043902
test rcx, rcx
je 0x140043930
cmp rax, 8
ja 0x140043930
mov rdx, rcx
lea rcx, [rbp - 0x48]
mov r8, rax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140043902
mov dword [rbp - 0x70], 2
mov rax, qword [rbp - 0x60]
mov byte [rcx + rax], sil
mov ecx, dword [rsp + 0x64]
inc ecx
mov rax, qword [rbp - 0x60]
mov byte [rcx + rax], sil
mov rdi, qword [rbp - 0x60]
test rdi, rdi
je 0x1400439ee
cmp qword [rbp - 0x28], rsi
ja 0x1400439ee
cmp word [rdi], si
je 0x1400437ab
mov rdx, rdi
lea rcx, [rbp - 8]
call fcn.140009580
nop
mov rbx, qword [rbp - 8]
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.1400145bc
movsxd rax, dword [rbx - 0x10]
lea rdi, [rdi + rax*2]
add rdi, 2
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400437a2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp word [rdi], si
jne 0x14004375f
mov rdi, qword [rbp - 0x60]
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x1400437cf
mov rdx, rbx
mov rbx, qword [rbx]
add rdx, 0x10
mov rcx, r12
call fcn.1400365dc
test rbx, rbx
jne 0x1400437b4
mov rdi, qword [rbp - 0x60]
movsxd rbx, dword [rbp - 0x54]
shr rbx, 1
test rdi, rdi
je 0x1400439ee
mov r15, rdi
mov rsi, qword [rbp - 0x38]
test rsi, rsi
je 0x140043840
lea r14, [rsi]
mov rsi, qword [rsi]
mov r8, qword [r14 + 0x10]
mov eax, dword [r8 - 0x10]
test eax, eax
je 0x140043956
add eax, 2
cmp eax, ebx
jg 0x14004394f
movsxd rdx, ebx
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s
test eax, eax
jne 0x140043948
mov rax, qword [r14 + 0x10]
mov edx, dword [rax - 0x10]
lea eax, [rdx + 1]
movsxd rcx, eax
lea rdi, [rdi + rcx*2]
or eax, 0xffffffff
sub eax, edx
add ebx, eax
test rsi, rsi
jne 0x1400437eb
mov r14, qword [rbp]
xor esi, esi
mov word [rdi], si
add rdi, 2
sub rdi, r15
sar rdi, 1
lea eax, [rdi + rdi]
mov dword [rbp - 0x58], eax
mov r15, qword [rbp + 0x48]
jmp 0x140043902
mov dword [rbp - 0x70], 4
movsxd rax, ecx
mov rcx, qword [rbp - 0x60]
test rax, rax
je 0x140043902
test rcx, rcx
je 0x1400439f8
cmp rax, 4
ja 0x1400439f8
mov rdx, rcx
lea rcx, [rbp - 0x50]
jmp 0x140043719
mov dword [rbp - 0x70], 3
jmp 0x140043902
mov dword [rbp - 0x70], 1
mov rax, qword [rbp - 0x60]
mov byte [rcx + rax], sil
mov rdx, qword [rbp - 0x60]
test rdx, rdx
je 0x1400438d8
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], si
jne 0x1400438b9
jmp 0x1400438e9
mov dword [rbp - 0x70], esi
mov rax, qword [rbp - 0x60]
mov byte [rcx + rax], sil
mov rdx, qword [rbp - 0x60]
test rdx, rdx
jne 0x1400438dc
mov eax, esi
jmp 0x1400438e9
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], si
jne 0x1400438e0
mov r8d, eax
lea rcx, [rbp - 0x68]
call fcn.14000a350
mov rax, qword [r12]
lea rdx, [rbp - 0x68]
mov rcx, r12
call qword [rax]
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.14004b4fc
mov edi, eax
test eax, eax
js 0x14004395d
lea rcx, [rbp - 0x38]
call fcn.140014770
inc r13d
cmp r13d, dword [rsp + 0x68]
jae 0x140043593
jmp 0x1400435d2
xor edx, edx
mov qword [rbp - 0x48], rdx
test rcx, rcx
je 0x140043a02
cmp rax, 8
jmp 0x140043a13
mov edi, 0x80004005
jmp 0x14004395b
mov edi, 0x8007007a
jmp 0x14004395b
mov edi, 0x80070057
xor esi, esi
cmp qword [rbp - 0x28], rsi
jbe 0x1400439c0
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x140043a4e
mov rax, qword [rbx]
mov qword [rbp - 0x38], rax
mov rdx, qword [rbx + 0x10]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140043995
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp - 0x18]
mov qword [rbx], rax
mov qword [rbp - 0x18], rbx
mov rax, qword [rbp - 0x28]
sub rax, 1
mov qword [rbp - 0x28], rax
jne 0x1400439bb
lea rcx, [rbp - 0x38]
call fcn.140014770
mov rax, qword [rbp - 0x28]
test rax, rax
jne 0x140043963
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x18], rsi
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140043593
mov rbx, qword [rcx]
call fcn.140053218
mov rcx, rbx
test rbx, rbx
jne 0x1400439d9
jmp 0x140043593
mov edi, 0x80070057
jmp 0x14004395d
xor edx, edx
mov dword [rbp - 0x50], edx
test rcx, rcx
jne 0x140043a0f
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
jmp 0x140043a20
cmp rax, 4
jbe 0x140043a25
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0x22
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo
mov edi, 0x80004005
lea rcx, [rbp - 0x38]
call fcn.140014770
jmp 0x140043593
mov ecx, 0x80070057
call fcn.140002fa4
nop
mov ecx, 0x80004005
call fcn.140002fa4
nop
mov ecx, 0x80004005
call fcn.140002fa4
int3