Function at 0x140027990
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7b8]
sub rsp, 0x890
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14006c270]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov r15, rcx
mov qword [rsp + 0x70], rcx
xor r12d, r12d
mov dword [rsp + 0x48], r12d
lea rcx, [0x14006bfe0]
mov rax, qword [0x14006bfe0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r15], rax
mov r14d, 1
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x60], r12
mov r9d, 0x20019
lea r8, str.SoftwareMicrosoftInternet_Explorer
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x50]
call fcn.1400016c0
test eax, eax
jne 0x140027cb9
mov word [rbp - 0x80], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x7e]
call fcn.140035220
mov dword [rsp + 0x3c], 0x800
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.svcVersion
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140027ab6
mov eax, dword [rsp + 0x44]
cmp eax, r14d
je 0x140027a98
cmp eax, 2
jne 0x140027ab6
mov ecx, dword [rsp + 0x3c]
test ecx, ecx
je 0x140027b28
test cl, 1
jne 0x140027ab6
mov eax, ecx
shr rax, 1
cmp word [rsp + rax*2 + 0x7e], 0
je 0x140027b2d
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x80]
call fcn.140035220
mov dword [rsp + 0x38], 0x800
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Version
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140027b3b
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x140027b0c
cmp eax, 2
jne 0x140027b3b
mov ecx, dword [rsp + 0x38]
test ecx, ecx
je 0x140027b28
test cl, 1
jne 0x140027b3b
mov eax, ecx
shr rax, 1
cmp word [rsp + rax*2 + 0x7e], 0
je 0x140027b2d
jmp 0x140027b3b
mov word [rbp - 0x80], r12w
shr ecx, 1
cmp ecx, 0x400
je 0x140027cbe
lea rcx, [0x14006bfe0]
mov rax, qword [0x14006bfe0]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rcx, [rbp - 0x80]
lea rax, [rbp - 0x80]
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x140027b98
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.140001200
test rax, rax
je 0x140027c86
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140005520
mov rbx, qword [rsp + 0x30]
jmp 0x140027c86
xor eax, eax
mov rcx, rsi
lea rdi, [rbp - 0x80]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140027c0d
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140027c86
cmp dword [rdx + 0x10], eax
jge 0x140027be3
cmp dword [rbx - 0xc], eax
jge 0x140027bd6
mov ecx, 0x80070057
call fcn.140001050
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140027c86
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140027bf9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x140027c86
mov r13d, dword [rbx - 0x10]
lea r12, [rbp - 0x80]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x140027c2a
mov ecx, 0x80070057
call fcn.140001050
int3
sub r14d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, ecx
or eax, r14d
jge 0x140027c49
mov edx, ecx
lea rcx, [rsp + 0x30]
call fcn.140003900
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x140027c6d
lea r8, [rbx + r12*2]
call fcn.1400345b0
jmp 0x140027c76
lea r8, [rbp - 0x80]
call fcn.1400340dc
cmp edi, dword [rbx - 0xc]
jg 0x140027cae
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r13 + rbx], ax
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.140005860
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140027cb9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140027cb9
mov ecx, 0x80070057
call fcn.140001050
nop
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x140027ccc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, r15
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.140034530
lea r11, [rsp + 0x890]
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