Function at 0x14004c17c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf8
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x1400c2c58]
mov r12, qword [rsp + 0x160]
xor r14d, r14d
lea r15d, [r14 + 1]
mov r10d, r8d
mov r13, rcx
test r15b, al
jne 0x14004c1e8
or eax, r15d
mov word [0x1400c2c50], r14w
mov word [0x1400c2c52], r15w
mov dword [0x1400c2c58], eax
lea rax, [0x1400c2c18]
mov qword [0x1400c2c20], rax
mov r8d, dword [0x1400b52b4]
mov qword [rsp + 0x20], r12
and r8d, r10d
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebp, eax
cmp byte [0x1400c2c14], r14b
je 0x14004c213
mov ebx, dword [0x1400c2c10]
jmp 0x14004c350
lea rax, [rsp + 0x70]
mov esi, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov r9d, esi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rdi, [0x1400c2c10]
cmp eax, r14d
jne 0x14004c2b7
mov rdx, qword [str.CLSIDInterfaceTest]
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x80], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r14d
jne 0x14004c2b7
cmp dword [rsp + 0x80], ebx
jne 0x14004c2b7
mov rcx, qword [rsp + 0x70]
mov ebx, dword [0x1400c2c10]
mov byte [0x1400c2c14], r15b
cmp rcx, r14
je 0x14004c350
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004c350
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x70], r14
cmp rcx, r14
je 0x14004c2cc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x70]
lea rdx, str.SoftwareMicrosoftSecurity
mov r9d, esi
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r14d
jne 0x14004c32f
mov rdx, qword [str.CLSIDInterfaceTest]
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x7c], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r14d
jne 0x14004c32f
cmp dword [rsp + 0x7c], ebx
je 0x14004c291
mov rcx, qword [rsp + 0x70]
mov dword [0x1400c2c10], r14d
mov byte [0x1400c2c14], r15b
cmp rcx, r14
je 0x14004c34d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, r14d
cmp ebx, r15d
je 0x14004c50a
xor edx, edx
lea rcx, [rsp + 0x92]
mov dword [rsp + 0x78], r14d
lea r8d, [rdx + 0x4e]
mov word [rsp + 0x90], r14w
call fcn.140008ebc
movzx ecx, byte [r13 + 0xd]
movzx edx, byte [r13 + 0xc]
movzx r8d, byte [r13 + 0xb]
movzx r11d, byte [r13 + 0xf]
movzx eax, byte [r13 + 0xe]
movzx r10d, byte [r13 + 0xa]
movzx ebx, byte [r13 + 9]
movzx edi, byte [r13 + 8]
movzx esi, word [r13 + 6]
movzx r9d, word [r13 + 4]
mov dword [rsp + 0x60], r11d
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x40], r8d
mov r8d, dword [r13]
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], ebx
lea rdx, str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
call fcn.14004bcd8
lea rdi, [0x1400c2c20]
lea r8, [rsp + 0x78]
mov rdx, r13
mov rcx, rdi
call fcn.14004bd04
mov ebx, 2
cmp al, r14b
jne 0x14004c49d
lea rcx, [rsp + 0x90]
call fcn.14004bb84
mov ecx, r15d
mov dword [rsp + 0x78], eax
mov rax, qword [0x1400c2c20]
lock xadd dword [rax], ecx
add ecx, r15d
cmp ecx, r15d
jg 0x14004c492
mov ax, word [0x1400c2c52]
add ax, r15w
cmp ax, bx
mov word [0x1400c2c52], ax
jl 0x14004c458
mov eax, r14d
mov word [0x1400c2c52], ax
movdqu xmm0, xmmword [r13]
movsx rax, ax
add rax, rax
movdqu xmmword [rdi + rax*8 + 8], xmm0
mov eax, dword [rsp + 0x78]
movsx rcx, word [0x1400c2c52]
mov dword [rdi + rcx*4 + 0x28], eax
movzx eax, word [0x1400c2c50]
cmp ax, bx
jge 0x14004c492
add ax, r15w
mov word [0x1400c2c50], ax
mov rax, qword [0x1400c2c20]
lock add dword [rax], 0xffffffff
mov eax, dword [rsp + 0x78]
cmp eax, r15d
je 0x14004c50a
cmp eax, ebx
je 0x14004c50a
cmp ebp, r14d
jne 0x14004c50a
mov rcx, qword [r12]
cmp rcx, r14
je 0x14004c50a
mov bl, r14b
cmp eax, 3
je 0x14004c4dc
mov rax, qword [rcx]
lea r8, [rsp + 0x88]
lea rdx, [0x1400785c0]
call qword [rax]
mov bl, r15b
cmp eax, r14d
jl 0x14004c50a
lea rcx, [rsp + 0x90]
call fcn.14004bda4
cmp bl, r14b
je 0x14004c501
mov rcx, qword [rsp + 0x88]
cmp rcx, r14
je 0x14004c501
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [r12], r14
mov ebp, 0x80004002
mov eax, ebp
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140008a98
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret