Function at 0x140004358
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 + 0x58], rbx
mov rcx, qword [rcx + 0x48]
lea r8, [rbp - 0x18]
mov rcx, qword [rcx]
call fcn.1400045d8
lea r15d, [rbx + 4]
cmp qword [rbp - 0x18], rbx
jne 0x1400043b1
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x140004459
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]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14000443c
test rdi, rdi
je 0x14000443c
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 0x14000443c
cmp dword [rbp + 0x58], r15d
jne 0x140004439
cmp dword [rbp - 0x20], r15d
je 0x14000443c
mov dword [rbp + 0x50], ebx
test rdi, rdi
je 0x14000444b
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 0x1400044ae
mov r13d, r15d
lea rcx, [r12 + 8]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x20]
test eax, eax
je 0x140004553
mov rax, qword [r12 + 0x48]
cmp byte [rax + 0x78], bl
je 0x1400044cc
cmp byte [0x1400900c9], bl
jne 0x140004596
mov byte [0x1400900c9], 1
cmp byte [rax + 0x79], bl
je 0x140004596
mov edx, dword [rax + 0x24]
mov rcx, r12
call fcn.14003d400
jmp 0x140004596
cmp dword [rbp + 0x50], 2
jne 0x140004462
mov rax, qword [r12 + 0x48]
mov r8, rdi
mov edx, dword [rax + 0x70]
mov rcx, r12
call fcn.14003d49c
jmp 0x1400045ba
cmp byte [rax + 0x79], bl
je 0x1400044f5
cmp byte [rax + 0x7a], bl
je 0x140004539
cmp byte [0x1400900c8], bl
jne 0x1400044f5
mov byte [0x1400900c8], 1
mov edx, dword [rax + 0x28]
mov rcx, r12
call fcn.14003d400
mov rax, qword [r12 + 0x48]
cmp byte [rax + 0x7b], bl
jne 0x1400045a0
lea r8, [rbp - 0x10]
mov rdx, rdi
mov rcx, r12
call fcn.14003df6c
test eax, eax
jne 0x14000455c
mov rax, qword [r12 + 0x48]
cmp byte [rax + 0x79], bl
je 0x140004529
mov r8, rdi
mov edx, dword [rax + 0x38]
mov rcx, r12
call fcn.14003d49c
mov r15d, r13d
or r15d, 0x21
mov rsi, qword [rbp - 0x10]
jmp 0x1400045ba
cmp byte [0x1400900c8], bl
jne 0x140004553
mov byte [0x1400900c8], 1
mov edx, dword [rax + 0x2c]
mov rcx, r12
call fcn.14003d400
mov r15d, r13d
or r15d, 0x12
jmp 0x1400045ba
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 0x14000459b
lea r8d, [rax + 2]
mov rdx, rdi
mov rcx, r12
call fcn.14003d300
mov rax, qword [r12 + 0x48]
mov r8, rdi
mov edx, dword [rax + 0x70]
mov rcx, r12
call fcn.14003d49c
or r15d, r13d
jmp 0x1400045ba
mov rax, qword [r12 + 0x48]
cmp byte [rax + 0x79], bl
je 0x1400045b3
mov r8, rdi
mov edx, dword [rax + 0x74]
mov rcx, r12
call fcn.14003d49c
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