Function at 0x140028d98
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
mov rbp, rsp
sub rsp, 0x50
mov rdi, rdx
mov r12, rcx
xor ebx, ebx
mov esi, ebx
mov qword [rbp - 0x10], rbx
mov r13d, ebx
mov dword [rbp + 0x50], ebx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 8], rbx
mov rcx, qword [rcx + 0x48]
lea r8, [rbp - 0x18]
mov rcx, qword [rcx]
call fcn.1400128c0
lea r15d, [rbx + 4]
cmp qword [rbp - 0x18], rbx
jne 0x140028df1
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x140028e9d
mov qword [rbp + 0x58], rbx
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp - 0x18]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdi, rbx
test eax, eax
cmove rdi, qword [rbp + 0x58]
mov qword [rbp - 8], rdi
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140028e80
test rdi, rdi
je 0x140028e80
mov dword [rbp + 0x58], ebx
mov dword [rbp - 0x20], r15d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x58]
xor r8d, r8d
lea rdx, str.SkipLoading
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140028e80
cmp dword [rbp + 0x58], r15d
jne 0x140028e7d
cmp dword [rbp - 0x20], r15d
je 0x140028e80
mov dword [rbp + 0x50], ebx
test rdi, rdi
je 0x140028e8f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rbp + 0x48]
cmp dword [rbp + 0x50], 1
jne 0x140028ef2
mov r13d, r15d
lea rcx, [r12 + 8]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x20]
test eax, eax
je 0x140028f97
mov rax, qword [r12 + 0x48]
cmp byte [rax + 0x78], bl
je 0x140028f10
cmp byte [0x140092621], bl
jne 0x140028fda
mov byte [0x140092621], 1
cmp byte [rax + 0x79], bl
je 0x140028fda
mov edx, dword [rax + 0x24]
mov rcx, r12
call fcn.140028550
jmp 0x140028fda
cmp dword [rbp + 0x50], 2
jne 0x140028ea6
mov rax, qword [r12 + 0x48]
mov r8, rdi
mov edx, dword [rax + 0x70]
mov rcx, r12
call fcn.1400285ec
jmp 0x140028ffe
cmp byte [rax + 0x79], bl
je 0x140028f39
cmp byte [rax + 0x7a], bl
je 0x140028f7d
cmp byte [0x140092620], bl
jne 0x140028f39
mov byte [0x140092620], 1
mov edx, dword [rax + 0x28]
mov rcx, r12
call fcn.140028550
mov rax, qword [r12 + 0x48]
cmp byte [rax + 0x7b], bl
jne 0x140028fe4
lea r8, [rbp - 0x10]
mov rdx, rdi
mov rcx, r12
call fcn.1400293dc
test eax, eax
jne 0x140028fa0
mov rax, qword [r12 + 0x48]
cmp byte [rax + 0x79], bl
je 0x140028f6d
mov r8, rdi
mov edx, dword [rax + 0x38]
mov rcx, r12
call fcn.1400285ec
mov r15d, r13d
or r15d, 0x21
mov rsi, qword [rbp - 0x10]
jmp 0x140028ffe
cmp byte [0x140092620], bl
jne 0x140028f97
mov byte [0x140092620], 1
mov edx, dword [rax + 0x2c]
mov rcx, r12
call fcn.140028550
mov r15d, r13d
or r15d, 0x12
jmp 0x140028ffe
mov rax, qword [r12]
mov r8, rdi
mov rsi, qword [rbp - 0x10]
mov rdx, rsi
mov rcx, r12
call qword [rax + 0x38]
test eax, eax
jne 0x140028fdf
lea r8d, [rax + 2]
mov rdx, rdi
mov rcx, r12
call fcn.140028440
mov rax, qword [r12 + 0x48]
mov r8, rdi
mov edx, dword [rax + 0x70]
mov rcx, r12
call fcn.1400285ec
or r15d, r13d
jmp 0x140028ffe
mov rax, qword [r12 + 0x48]
cmp byte [rax + 0x79], bl
je 0x140028ff7
mov r8, rdi
mov edx, dword [rax + 0x74]
mov rcx, r12
call fcn.1400285ec
mov r15d, r13d
or r15d, 0x22
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, r15d
add rsp, 0x50
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret