Function at 0x14008c340
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x330
mov rax, qword [0x14024cdb8]
xor rax, rsp
mov qword [rsp + 0x328], rax
mov rdi, rcx
cmp qword [rcx + 8], 0
je 0x14008c6ba
cmp qword [rcx + 0x28], 0
jne 0x14008c6ba
lea rax, str.ReplenishAppSource
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x12
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xe0]
call fcn.14009ac70
nop
lea rsi, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae rsi, qword [rsp + 0xe0]
lea rdx, [rsp + 0x100]
cmp qword [rsp + 0x118], 8
cmovae rdx, qword [rsp + 0x100]
xor r14d, r14d
mov ebx, r14d
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008c421
mov eax, r14d
mov rbx, qword [rsp + 0x38]
test eax, eax
jne 0x14008c483
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x30], 8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14008c483
cmp dword [rsp + 0x34], 0xb
jne 0x14008c483
mov rsi, qword [rsp + 0x40]
test rbx, rbx
je 0x14008c478
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
jne 0x14008c6a0
jmp 0x14008c491
test rbx, rbx
je 0x14008c491
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], 1
lea rax, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae rax, qword [rsp + 0xe0]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x100]
cmp qword [rsp + 0x118], 8
cmovae rax, qword [rsp + 0x100]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0xc0]
movdqa xmmword [rsp + 0xc0], xmm0
movaps xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm1
lea r9, [rsp + 0x70]
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call fcn.14009a2b0
mov edx, 0x64
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14025bb00], eax
jg 0x14008c6e6
cmp byte [0x14025bb04], 0
jne 0x14008c6a0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
lea r8, str.SELECT__FROM_apps_where_state__or_state_
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x120]
call fcn.14009cd80
nop
mov edx, 1
mov r8d, 0x3eb
mov rcx, qword [rsp + 0x148]
call fcn.1400d1570
mov r8d, eax
test eax, eax
jne 0x14008c71e
mov edx, 2
mov r8d, 0x3ec
mov rcx, qword [rsp + 0x148]
call fcn.1400d1570
mov r8d, eax
test eax, eax
jne 0x14008c74f
nop dword [rax]
lea rcx, [rsp + 0x120]
call fcn.14009ceb0
test al, al
je 0x14008c692
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x180]
call fcn.14008af40
nop
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xd8], 0xf
mov qword [rsp + 0xd0], r14
mov byte [rsp + 0xc0], 0
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x180]
mov rcx, qword [rdi + 0x40]
call fcn.14008b520
nop
mov rdx, qword [rsp + 0xd8]
cmp rdx, 0x10
jb 0x14008c680
inc rdx
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008c67a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008c67a
call qword [0x1401cdd00]
int3
call fcn.1401816cc
nop
lea rcx, [rsp + 0x180]
call fcn.14008adc0
jmp 0x14008c5d0
lea rcx, [rsp + 0x120]
call fcn.14008ae70
nop
lea rcx, [rsp + 0x100]
call fcn.1400208c0
lea rcx, [rsp + 0xe0]
call fcn.1400208c0
mov rcx, qword [rsp + 0x328]
xor rcx, rsp
call fcn.140181670
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
lea rcx, [0x14025bb00]
call fcn.140181960
cmp dword [0x14025bb00], 0xffffffff
jne 0x14008c552
mov rcx, rdi
call fcn.14008bce0
mov byte [0x14025bb04], al
lea rcx, [0x14025bb00]
call fcn.140181900
jmp 0x14008c552
lea rcx, [rsp + 0x140]
call fcn.1400660b0
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.14009cc40
lea rdx, [0x14022f448]
lea rcx, [rsp + 0x80]
call fcn.140182cee
lea rcx, [rsp + 0x140]
call fcn.1400660b0
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.14009cc40
lea rdx, [0x14022f448]
lea rcx, [rsp + 0xa0]
call fcn.140182cee
int3