Function at 0x140050720
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7d8]
sub rsp, 0x8b0
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401cde90]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov r13, rcx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r13], rax
mov r12d, 1
mov dword [rsp + 0x30], r12d
mov word [rbp - 0x60], r14w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call fcn.1400d8c20
mov r15d, r14d
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x68], r14
mov r8d, dword [0x1401d5d60]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
cmp ecx, 4
jne 0x140050868
test r8d, r8d
je 0x140050868
mov eax, r8d
and eax, 0x80000001
jge 0x140050807
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x14005081e
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov dword [0x1401d5d60], eax
jmp 0x14005082d
lea r8d, [r8*2 + 1]
mov dword [0x1401d5d60], r8d
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov ecx, r8d
sub ecx, eax
je 0x140050851
sub ecx, 2
je 0x140050855
dec ecx
je 0x140050858
jmp 0x140050863
add r8d, 2
inc r8d
add r8d, 2
mov dword [0x1401d5d60], r8d
test r8d, r8d
jne 0x1400507f6
mov qword [rsp + 0x78], r14
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftInternet_Explorer
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r9d, eax
test eax, eax
jne 0x1400508aa
mov dword [rsp + 0x60], r14d
mov r9d, r14d
mov r15, qword [rsp + 0x78]
mov qword [rsp + 0x58], r15
mov r8d, dword [0x1401d5d60]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub ecx, edx
cmp ecx, 7
jne 0x140050952
test r8d, r8d
je 0x140050952
nop dword [rax + rax]
mov eax, r8d
and eax, 0x80000001
jge 0x1400508f1
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x140050908
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov dword [0x1401d5d60], eax
jmp 0x140050917
lea r8d, [r8*2 + 1]
mov dword [0x1401d5d60], r8d
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov ecx, r8d
sub ecx, eax
je 0x14005093b
sub ecx, 2
je 0x14005093f
dec ecx
je 0x140050942
jmp 0x14005094d
add r8d, 2
inc r8d
add r8d, 2
mov dword [0x1401d5d60], r8d
test r8d, r8d
jne 0x1400508e0
test r9d, r9d
jne 0x140050f50
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
lea r8, str.svcVe
test r8, 0xffffffffffff0000
jne 0x1400509ab
movzx ebx, r8w
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x140050a1d
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002760
jmp 0x140050a1d
mov esi, dword [rbx - 0x10]
mov rdi, r8
sub rdi, rbx
sar rdi, 1
mov ecx, r12d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 5
or eax, ecx
jge 0x1400509e2
mov edx, 5
lea rcx, [rsp + 0x48]
call fcn.140002560
mov rbx, qword [rsp + 0x48]
lea r8, str.svcVe
movsxd rdx, dword [rbx - 0xc]
mov r9d, 0xa
mov rcx, rbx
add rdx, rdx
cmp rdi, rsi
ja 0x140050a02
lea r8, [rbx + rdi*2]
call fcn.1400d400c
jmp 0x140050a07
call fcn.1400d41cc
cmp dword [rbx - 0xc], 5
jl 0x140050f45
mov dword [rbx - 0x10], 5
mov word [rbx + 0xa], r14w
lea r8, str.rsion
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x80]
call fcn.14001b320
nop
mov dword [rsp + 0x54], 0x800
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140050aa0
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
jbe 0x140050a7a
mov ebx, 0xd
jmp 0x140050aa0
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x140050a98
test al, 1
jne 0x140050a91
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x140050a9d
mov ebx, 0xd
jmp 0x140050aa0
mov word [rbp - 0x60], r14w
mov ebx, r14d
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
or rdi, 0xffffffffffffffff
lock add dword [rdx + 0x10], edi
jg 0x140050abc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140050ad5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
jne 0x140050c41
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x60]
lea rax, [rbp - 0x60]
test rax, 0xffffffffffff0000
jne 0x140050b34
movzx esi, cx
mov ecx, esi
call fcn.1400019e0
test rax, rax
je 0x140050c20
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002760
mov rbx, qword [rsp + 0x40]
jmp 0x140050c20
lea rax, [rbp - 0x60]
mov rsi, rdi
nop dword [rax + rax]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140050b40
test esi, esi
jne 0x140050ba7
lea rdx, [rbx - 0x18]
mov rsi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140050c20
cmp dword [rdx + 0x10], 0
jge 0x140050b83
cmp dword [rbx - 0xc], 0
jge 0x140050b76
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x140050c20
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140050b93
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
jmp 0x140050c20
mov r15d, dword [rbx - 0x10]
lea r14, [rbp - 0x60]
sub r14, rbx
sar r14, 1
test esi, esi
jns 0x140050bc4
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, r12d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140050be4
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.140002560
mov rbx, qword [rsp + 0x40]
movsxd rax, esi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r15
lea r15, [rax + rax]
mov r9, r15
ja 0x140050c08
lea r8, [rbx + r14*2]
call fcn.1400d400c
jmp 0x140050c11
lea r8, [rbp - 0x60]
call fcn.1400d41cc
cmp esi, dword [rbx - 0xc]
jg 0x140050c36
mov dword [rbx - 0x10], esi
xor eax, eax
mov word [r15 + rbx], ax
mov r14d, 3
mov dword [rsp + 0x30], r14d
cmp dword [rbx - 0x10], 0
je 0x140050c4b
mov sil, 1
jmp 0x140050c4e
mov ecx, 0x80070057
call fcn.140001920
nop
mov rbx, qword [rsp + 0x40]
mov r14d, dword [rsp + 0x30]
xor sil, sil
test r14b, 2
je 0x140050c76
and r14d, 0xfffffffd
mov dword [rsp + 0x30], r14d
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140050c71
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r14d, dword [rsp + 0x30]
test sil, sil
je 0x140050ca3
lea rax, [rbp - 0x60]
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140050c80
mov r8d, edi
lea rdx, [rbp - 0x60]
mov rcx, r13
call fcn.140002470
mov r15, qword [rsp + 0x58]
jmp 0x140050f20
mov ecx, dword [0x1401d5d60]
imul ecx, ecx
mov eax, 0x30c30c31
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 2
jne 0x140050cd3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401d5d60], eax
mov dword [rsp + 0x50], 0x800
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x74]
xor r8d, r8d
lea rdx, [0x14015ebb0]
mov r15, qword [rsp + 0x58]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140050ec3
mov eax, dword [rsp + 0x74]
dec eax
cmp eax, 1
ja 0x140050ec3
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140050d42
test al, 1
jne 0x140050ec3
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x140050d4c
jmp 0x140050ec3
xor r12d, r12d
mov word [rbp - 0x60], r12w
jmp 0x140050d4f
xor r12d, r12d
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rcx, [rbp - 0x60]
lea rax, [rbp - 0x60]
test rax, 0xffffffffffff0000
jne 0x140050da6
movzx esi, cx
mov ecx, esi
call fcn.1400019e0
test rax, rax
je 0x140050ea4
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002760
mov rbx, qword [rsp + 0x38]
jmp 0x140050ea4
lea rax, [rbp - 0x60]
mov rsi, rdi
nop dword [rax]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140050db0
test esi, esi
jne 0x140050e24
lea rdx, [rbx - 0x18]
mov rsi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140050ea4
cmp dword [rdx + 0x10], 0
jge 0x140050df3
cmp dword [rbx - 0xc], 0
jge 0x140050de6
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140050ea4
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140050e03
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov r15, qword [rsp + 0x58]
mov r14d, dword [rsp + 0x30]
jmp 0x140050ea4
mov r13d, dword [rbx - 0x10]
lea r12, [rbp - 0x60]
sub r12, rbx
sar r12, 1
test esi, esi
jns 0x140050e41
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140050e63
mov edx, esi
lea rcx, [rsp + 0x38]
call fcn.140002560
mov rbx, qword [rsp + 0x38]
movsxd rax, esi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x140050e87
lea r8, [rbx + r12*2]
call fcn.1400d400c
jmp 0x140050e90
lea r8, [rbp - 0x60]
call fcn.1400d41cc
cmp esi, dword [rbx - 0xc]
jg 0x140050eb8
mov dword [rbx - 0x10], esi
xor eax, eax
mov word [r13 + rbx], ax
mov r13, qword [rbp - 0x78]
or r14d, 4
mov dword [rsp + 0x30], r14d
cmp dword [rbx - 0x10], 0
je 0x140050ec8
mov sil, 1
jmp 0x140050ecb
mov ecx, 0x80070057
call fcn.140001920
nop
mov rbx, qword [rsp + 0x38]
xor sil, sil
test r14b, 4
je 0x140050ef3
and r14d, 0xfffffffb
mov dword [rsp + 0x30], r14d
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140050eee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r15, qword [rsp + 0x58]
test sil, sil
je 0x140050f20
lea rax, [rbp - 0x60]
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140050f00
mov r8d, edi
lea rdx, [rbp - 0x60]
mov rcx, r13
call fcn.140002470
nop dword [rax]
test r15, r15
je 0x140050f3b
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r14d, r14d
mov r15d, r14d
mov qword [rsp + 0x58], r14
jmp 0x140050f3e
xor r14d, r14d
mov dword [rsp + 0x60], r14d
jmp 0x140050f50
mov ecx, 0x80070057
call fcn.140001920
nop
test r15, r15
je 0x140050f63
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], r14d
mov rax, r13
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400d37e0
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret