Function at 0x180136510
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionProductNameWindows_10_CurrentBuildNumber_no_name__Process
lea rcx, [rsp + 0xa0]
mov r8d, 0x2c
call fcn.180076ed0
lea rcx, [rsp + 0x70]
mov rdx, rbx
mov r8, rsi
call fcn.180076ed0
mov rsi, qword [rsp + 0xa0]
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov rdx, rsi
xor r8d, r8d
mov r9d, 0x20019
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
je 0x1801365a5
mov qword [rdi], 0
cmp qword [rsp + 0x78], 0
jne 0x18013675e
jmp 0x180136772
mov rbx, qword [rsp + 0x58]
mov dword [rsp + 0x3c], 0x800
movzx eax, byte [0x180247060]
mov rcx, qword [0x180246f98]
test rcx, rcx
jne 0x1801365de
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1801367a4
mov rcx, rax
mov qword [0x180246f98], rax
mov r8d, 0x800
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1801367a4
mov r15, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x800
mov qword [rsp + 0x50], 0
mov r14, qword [rsp + 0x70]
lea rbp, [rsp + 0x3c]
lea r12, [rsp + 0x58]
lea r13, [rsp + 0x40]
nop word cs:[rax + rax]
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
mov r9, r12
call sub.ADVAPI32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x180136680
mov r8d, dword [rsp + 0x3c]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
sub rax, rdx
cmp rax, r8
jae 0x180136630
mov rcx, r13
call fcn.18019b9e0
mov r15, qword [rsp + 0x40]
jmp 0x180136630
test eax, eax
jne 0x18013672d
mov eax, dword [rsp + 0x3c]
and eax, 0xfffffffe
add rax, r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], 0
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0x58]
call fcn.1801310a0
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x1801366dc
mov rcx, qword [rsp + 0x88]
nop word [rax + rax]
cmp byte [rcx + rax - 1], 0
jne 0x1801366de
dec rax
jne 0x1801366d0
xor eax, eax
mov qword [rsp + 0x98], rax
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rdi], xmm0
cmp qword [rsp + 0x48], 0
je 0x18013670f
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbx
call sub.ADVAPI32.dll_RegCloseKey
cmp qword [rsp + 0x78], 0
je 0x180136772
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, r14
jmp 0x18013676c
mov qword [rdi], 0
cmp qword [rsp + 0x48], 0
je 0x18013674e
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbx
call sub.ADVAPI32.dll_RegCloseKey
cmp qword [rsp + 0x78], 0
je 0x180136772
mov r8, qword [rsp + 0x70]
mov rcx, qword [0x180246f98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0xa8], 0
je 0x18013678f
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 1
mov edx, 0x800
call fcn.18019a870
ud2