Function at 0x140051070
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 [0x1401cee90]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov r12, rcx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r12], rax
mov r13d, 1
mov dword [rsp + 0x30], r13d
mov word [rbp - 0x60], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call fcn.1400da240
mov r9d, dword [0x1401d6d80]
lea r8d, [r9 + 1]
lea ecx, [r9 + 2]
imul ecx, r8d
imul ecx, r9d
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xb
sub ecx, edx
cmp ecx, 4
cmove r9d, r8d
mov dword [0x1401d6d80], r9d
call fcn.14004fd80
test al, al
jne 0x140051166
mov r8d, r15d
mov eax, dword [0x1401d6d80]
test eax, eax
je 0x14005115f
nop dword [rax]
mov ecx, eax
and ecx, r13d
add r8d, ecx
cdq
sub eax, edx
sar eax, 1
jne 0x140051150
mov dword [0x1401d6d80], r8d
mov rbx, r15
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x70], r15d
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x58], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftInternet_Explorer
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005178b
mov dword [rsp + 0x70], r15d
mov rsi, qword [rsp + 0x58]
mov qword [rsp + 0x68], rsi
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
lea r8, str.svcVe
test r8, 0xffffffffffff0000
jne 0x140051208
movzx ebx, r8w
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14005127b
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002960
jmp 0x14005127b
mov r14d, dword [rbx - 0x10]
mov rdi, r8
sub rdi, rbx
sar rdi, 1
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 5
or eax, ecx
jge 0x140051240
mov edx, 5
lea rcx, [rsp + 0x48]
call fcn.140002760
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, r14
ja 0x140051260
lea r8, [rbx + rdi*2]
call fcn.1400d562c
jmp 0x140051265
call fcn.1400d57ec
cmp dword [rbx - 0xc], 5
jl 0x140051780
mov dword [rbx - 0x10], 5
mov word [rbx + 0xa], r15w
lea r8, str.rsion
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x80]
call fcn.14001b580
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 + 0x60]
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400512fe
mov eax, dword [rsp + 0x60]
dec eax
cmp eax, 1
jbe 0x1400512d8
mov ebx, 0xd
jmp 0x1400512fe
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x1400512f6
test al, 1
jne 0x1400512ef
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x1400512fb
mov ebx, 0xd
jmp 0x1400512fe
mov word [rbp - 0x60], r15w
mov ebx, r15d
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
or rdi, 0xffffffffffffffff
lock add dword [rdx + 0x10], edi
jg 0x14005131a
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 0x140051333
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
jne 0x1400514a4
lea rcx, str.D_r_
mov rax, qword [str.D_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 0x140051392
movzx esi, cx
mov ecx, esi
call fcn.1400019e0
test rax, rax
je 0x140051483
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002960
mov rbx, qword [rsp + 0x40]
jmp 0x140051483
lea rax, [rbp - 0x60]
mov rsi, rdi
nop dword [rax]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x1400513a0
test esi, esi
jne 0x140051407
lea rdx, [rbx - 0x18]
mov rsi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140051483
cmp dword [rdx + 0x10], 0
jge 0x1400513e3
cmp dword [rbx - 0xc], 0
jge 0x1400513d6
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x140051483
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400513f3
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 0x140051483
mov r15d, dword [rbx - 0x10]
lea r14, [rbp - 0x60]
sub r14, rbx
sar r14, 1
test esi, esi
jns 0x140051424
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140051444
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.140002760
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 0x140051468
lea r8, [rbx + r14*2]
call fcn.1400d562c
jmp 0x140051471
lea r8, [rbp - 0x60]
call fcn.1400d57ec
cmp esi, dword [rbx - 0xc]
jg 0x140051499
mov dword [rbx - 0x10], esi
xor eax, eax
mov word [r15 + rbx], ax
xor r15d, r15d
mov r14d, 3
mov dword [rsp + 0x30], r14d
cmp dword [rbx - 0x10], 0
je 0x1400514ae
mov sil, 1
jmp 0x1400514b1
mov ecx, 0x80070057
call fcn.140001920
nop
mov rbx, qword [rsp + 0x40]
mov r14d, dword [rsp + 0x30]
xor sil, sil
test r14b, 2
je 0x1400514d9
and r14d, 0xfffffffd
mov dword [rsp + 0x30], r14d
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400514d4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r14d, dword [rsp + 0x30]
test sil, sil
je 0x1400514f1
lea rax, [rbp - 0x60]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400514e2
jmp 0x14005174b
mov ecx, dword [0x1401d6d80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x78787879
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub r8d, edx
mov eax, dword [0x1401d814c]
mov ecx, 0x4855bda9
cmp r8d, 3
cmove eax, ecx
mov dword [0x1401d814c], 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 + 0x64]
xor r8d, r8d
lea rdx, [0x14015f920]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005170d
mov eax, dword [rsp + 0x64]
dec eax
cmp eax, 1
ja 0x14005170d
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1400515a2
test al, 1
jne 0x14005170d
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x1400515a7
jmp 0x14005170d
mov word [rbp - 0x60], r15w
lea rcx, str.D_r_
mov rax, qword [str.D_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 0x1400515fe
movzx esi, cx
mov ecx, esi
call fcn.1400019e0
test rax, rax
je 0x1400516ee
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002960
mov rbx, qword [rsp + 0x38]
jmp 0x1400516ee
lea rax, [rbp - 0x60]
mov rsi, rdi
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140051605
test esi, esi
jne 0x140051671
lea rdx, [rbx - 0x18]
mov rsi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x1400516ee
cmp dword [rdx + 0x10], 0
jge 0x140051648
cmp dword [rbx - 0xc], 0
jge 0x14005163b
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x1400516ee
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140051658
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 r14d, dword [rsp + 0x30]
jmp 0x1400516ee
mov r12d, dword [rbx - 0x10]
lea r15, [rbp - 0x60]
sub r15, rbx
sar r15, 1
test esi, esi
jns 0x14005168e
mov ecx, 0x80070057
call fcn.140001920
int3
sub r13d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, r13d
jge 0x1400516ad
mov edx, esi
lea rcx, [rsp + 0x38]
call fcn.140002760
mov rbx, qword [rsp + 0x38]
movsxd rax, esi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r15, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x1400516d1
lea r8, [rbx + r15*2]
call fcn.1400d562c
jmp 0x1400516da
lea r8, [rbp - 0x60]
call fcn.1400d57ec
cmp esi, dword [rbx - 0xc]
jg 0x140051702
mov dword [rbx - 0x10], esi
xor r15d, r15d
mov word [r12 + rbx], r15w
mov r12, qword [rbp - 0x78]
or r14d, 4
mov dword [rsp + 0x30], r14d
cmp dword [rbx - 0x10], 0
je 0x140051712
mov sil, 1
jmp 0x140051715
mov ecx, 0x80070057
call fcn.140001920
nop
mov rbx, qword [rsp + 0x38]
xor sil, sil
test r14b, 4
je 0x140051738
and r14d, 0xfffffffb
mov dword [rsp + 0x30], r14d
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140051738
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x14005175a
lea rax, [rbp - 0x60]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140051741
mov r8d, edi
lea rdx, [rbp - 0x60]
mov rcx, r12
call fcn.140002670
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140051774
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r15
mov qword [rsp + 0x68], rbx
jmp 0x140051779
mov rbx, qword [rsp + 0x68]
mov dword [rsp + 0x70], r15d
jmp 0x14005178b
mov ecx, 0x80070057
call fcn.140001920
nop
test rbx, rbx
je 0x14005179e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], r15d
mov rax, r12
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400d4e00
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