Function at 0x140079790
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14011f010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r15, qword [rcx + 0x4f0]
mov rbp, rcx
test r15, r15
je 0x140079a2a
xor r12d, r12d
test r15, r15
je 0x140079a66
mov rsi, qword [r15 + 0x10]
mov r15, qword [r15]
test rsi, rsi
je 0x140079a21
mov ebx, dword [rsi]
test ebx, ebx
jne 0x140079811
mov rcx, qword [rbp + 0x4d0]
lea rdx, [rsi + 4]
mov qword [rsp + 0x28], r12
mov r9, rsi
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140079811
mov ebx, dword [rsi]
sub ebx, 1
je 0x140079927
sub ebx, 3
je 0x1400798a7
cmp ebx, 7
jne 0x140079a21
mov rcx, qword [rbp + 0x4d0]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rsi + 4]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], r12
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 8
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140079a21
cmp dword [rsp + 0x40], 0xb
jne 0x140079a21
mov rcx, qword [rsp + 0x38]
mov eax, r12d
cmp rcx, qword [rsi + 0x108]
setne al
cmp dword [rsi + 0x110], r12d
je 0x14007989e
mov dword [rsi + 0x110], r12d
lea eax, [rbx - 6]
mov qword [rsi + 0x108], rcx
jmp 0x14007991f
mov rcx, qword [rbp + 0x4d0]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [rsi + 4]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140079a21
cmp dword [rsp + 0x44], 4
jne 0x140079a21
mov ecx, dword [rsp + 0x30]
mov eax, r12d
cmp ecx, dword [rsi + 0x108]
setne al
cmp dword [rsi + 0x110], r12d
je 0x140079919
mov dword [rsi + 0x110], r12d
mov eax, 1
mov dword [rsi + 0x108], ecx
test eax, eax
je 0x140079a21
inc dword [rbp + 0xac]
mov rdi, qword [rbp + 0x48]
test rdi, rdi
je 0x1400799aa
cmp dword [rbp + 0xa8], r12d
jne 0x1400799aa
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rdi, rdi
je 0x140079a66
mov rbx, qword [rdi + 0x10]
mov rdi, qword [rdi]
cmp qword [rbp + 0x88], r12
jbe 0x140079983
mov rax, qword [rbp + 0x78]
test rax, rax
je 0x140079983
nop dword [rax + rax]
cmp qword [rax + 0x10], rbx
je 0x140079980
mov rax, qword [rax]
test rax, rax
jne 0x140079970
jmp 0x140079983
mov rbx, r12
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400799a5
mov rax, qword [rbx]
lea r8, [rsi + 4]
lea rdx, [rbp + 0xb0]
mov rcx, rbx
call qword [rax]
test rdi, rdi
jne 0x140079936
dec dword [rbp + 0xac]
cmp dword [rbp + 0xac], r12d
jne 0x140079a21
cmp qword [rbp + 0x88], r12
jbe 0x140079a21
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rbx, qword [rbp + 0x78]
test rbx, rbx
je 0x140079a0e
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x140079a09
mov rdx, qword [rbp + 0x48]
test rdx, rdx
je 0x140079a09
nop word [rax + rax]
cmp qword [rdx + 0x10], rcx
je 0x140079a00
mov rdx, qword [rdx]
test rdx, rdx
jne 0x1400799f0
jmp 0x140079a09
lea rcx, [rbp + 0x48]
call fcn.14000b940
test rbx, rbx
jne 0x1400799d5
lea rcx, [rbp + 0x78]
call fcn.14000b9a0
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test r15, r15
jne 0x1400797d4
cmp dword [rbp + 0x4ec], 0
je 0x140079a40
mov rcx, qword [rbp + 0x4b8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a4020
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140004670
int3