Function at 0x7ff82669f8e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
and dword [rbp - 0x28], 0
lea rax, [rbp - 0x30]
mov r15, r9
mov qword [r11 - 0x60], rax
mov rbx, r8
mov dword [rbp - 0x2c], 1
mov rdi, rdx
lea r9, [rbp - 0x2c]
xor esi, esi
lea rdx, str.AppFullPath
and qword [r11 - 0x68], rsi
xor r8d, r8d
mov r14, rcx
xor r13d, r13d
xor r12d, r12d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov r9d, dword [rbp - 0x2c]
test eax, eax
jne 0x7ff8266af663
cmp r9d, 1
jne 0x7ff8266af663
mov ecx, dword [rbp - 0x30]
mov eax, ecx
shr rax, 1
cmp rax, rbx
jb 0x7ff8266af3b2
add ecx, 2
xor edx, edx
mov dword [rbp - 0x30], ecx
mov r8d, ecx
mov rcx, qword [0x7ff8266e2850]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x7ff8266af3d2
lea rax, [rbp - 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, str.AppFullPath
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x7ff8266af3f6
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_crt_l1_1_0.dll__wcsnicmp]
nop dword [rax + rax]
lea rbx, [0x7ff8266d7290]
test eax, eax
jne 0x7ff8266af427
movsxd rdi, dword [rbp + 0x50]
test edi, edi
jne 0x7ff8266af44a
mov dword [rbp - 0x28], 1
test rsi, rsi
je 0x7ff82669fa23
mov rcx, qword [0x7ff8266e2850]
mov r8, rsi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test r13, r13
jne 0x7ff8266af683
test r12, r12
jne 0x7ff8266af6a1
mov eax, dword [rbp - 0x28]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
test byte [0x7ff8266e27f8], 1
je 0x7ff82669fa35
shr ecx, 1
mov r8, rbx
mov r9d, ecx
call 0x7ff8266d4cd4
nop
jmp 0x7ff82669fa35
test byte [0x7ff8266e27f0], 1
je 0x7ff82669fa35
mov ecx, 0x39
lea rdx, [0x7ff8266d7290]
call 0x7ff8266d2008
nop
jmp 0x7ff82669fa35
test byte [0x7ff8266e27f0], 1
je 0x7ff82669fa06
mov ecx, 0x3a
lea rdx, [0x7ff8266d7290]
jmp 0x7ff8266af419
mov ecx, 0x3e
mov rdx, rbx
mov r8d, eax
call 0x7ff8266d3164
nop
jmp 0x7ff82669fa06
test byte [0x7ff8266e27f8], 1
je 0x7ff8266af443
mov ecx, 0x3b
mov r9, rsi
mov r8, rdi
mov rdx, rbx
call 0x7ff8266d20bc
xor esi, esi
jmp 0x7ff82669f9f3
test r15, r15
je 0x7ff82669f9ff
lea rax, [rbp - 0x30]
mov dword [rbp - 0x2c], 1
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x2c]
and qword [rsp + 0x20], r12
lea rdx, str.AppArgs
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov r9d, dword [rbp - 0x2c]
test eax, eax
jne 0x7ff8266af64f
cmp r9d, 1
jne 0x7ff8266af64f
mov eax, dword [rbp - 0x30]
xor edx, edx
mov rcx, qword [0x7ff8266e2850]
add eax, 2
mov r8d, eax
mov dword [rbp - 0x30], eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov r13, rax
test rax, rax
jne 0x7ff8266af4e2
test byte [0x7ff8266e27f0], 1
je 0x7ff82669fa06
lea ecx, [rax + 0x3d]
mov rdx, rbx
call 0x7ff8266d2008
nop
jmp 0x7ff82669fa06
lea rax, [rbp - 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, str.AppArgs
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x7ff8266af522
test byte [0x7ff8266e27f0], 1
je 0x7ff82669fa06
jmp 0x7ff8266af411
lea rdx, [rbp - 0x20]
mov rcx, r13
call fcn.7ff82669e66c
mov r12, rax
test rax, rax
jne 0x7ff8266af559
test byte [0x7ff8266e27f0], 1
je 0x7ff82669fa06
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea ecx, [r12 + 0x3f]
jmp 0x7ff8266af416
mov al, byte [0x7ff8266e27f8]
mov r14d, dword [rbp - 0x20]
test al, 1
je 0x7ff8266af580
mov ecx, 0x40
mov r9d, r14d
mov r8, r13
mov rdx, rbx
call 0x7ff8266d2150
mov al, byte [0x7ff8266e27f8]
cmp edi, r14d
je 0x7ff8266af5a6
test al, 1
je 0x7ff82669fa06
mov ecx, 0x41
mov r9d, r14d
mov r8d, edi
mov rdx, rbx
call 0x7ff8266d2020
nop
jmp 0x7ff82669fa06
xor ebx, ebx
mov qword [rbp - 0x10], rdi
test edi, edi
jle 0x7ff82669f9ff
mov rdi, r15
xor r14d, r14d
mov r15, r12
sub r15, qword [rbp + 0x48]
mov r11d, dword [rbp - 0x30]
lea r8, [rbp - 0x20]
mov rcx, qword [rdi]
shr r11, 1
mov rdx, r11
call fcn.7ff82669e608
mov rcx, qword [r15 + rdi]
lea r8, [rbp - 0x18]
mov rdx, r11
call fcn.7ff82669e608
mov r8, qword [rbp - 0x20]
cmp r8, qword [rbp - 0x18]
jne 0x7ff8266af61c
mov rdx, qword [r15 + rdi]
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_crt_l1_1_0.dll_wcsncmp]
nop dword [rax + rax]
test eax, eax
jne 0x7ff8266af61c
inc ebx
inc r14
add rdi, 8
cmp r14, qword [rbp - 0x10]
jl 0x7ff8266af5c1
jmp 0x7ff82669f9ff
test byte [0x7ff8266e27f8], 1
je 0x7ff82669fa06
movsxd r9, ebx
mov r8d, ebx
mov rax, qword [r12 + r9*8]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x48]
mov dword [rsp + 0x20], ebx
mov r9, qword [rax + r9*8]
call 0x7ff8266d4c0c
nop
jmp 0x7ff82669fa06
test byte [0x7ff8266e27f0], 1
je 0x7ff82669fa06
mov ecx, 0x3c
jmp 0x7ff8266af675
test byte [0x7ff8266e27f0], 1
je 0x7ff82669fa35
mov ecx, 0x37
mov r8d, eax
call 0x7ff8266d4d20
nop
jmp 0x7ff82669fa06
mov rcx, qword [0x7ff8266e2850]
mov r8, r13
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
nop
jmp 0x7ff82669fa2c
mov rcx, r12
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
nop
jmp 0x7ff82669fa35