Function at 0x1400098a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x70
and qword [rax - 0x48], 0
and dword [rax + 0x20], 0
xor ebx, ebx
and dword [rax - 0x50], ebx
and dword [rax + 0x10], ebx
cmp edx, 3
mov ebp, 0x2001b
mov esi, edx
mov edi, ecx
mov r14d, 4
lea r15, str.SOFTWAREIntelDisplayigfxcuiigfxtray
mov r13, 0xffffffff80000001
mov dword [rax - 0x54], r14d
lea eax, [rbp + 4]
mov rdx, r15
cmove ebp, eax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov r9d, ebp
mov rcx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000991a
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jne 0x140009963
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov rdx, r15
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rbx
mov rcx, r13
mov dword [rsp + 0x28], ebp
and dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140009c65
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140009c65
mov r13d, 1
sub edi, r13d
je 0x140009b88
cmp edi, r13d
jne 0x140009c65
cmp esi, 2
jne 0x140009b2d
lea rax, [rsp + 0xc8]
lea rdi, str.ShowOptimalBalloon
lea r9, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb8]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0xc8], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140009b21
mov rcx, qword [rsp + 0x60]
cmp eax, esi
jne 0x140009abb
mov dword [rsp + 0x50], r13d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
mov r9d, r13d
xor r8d, r8d
mov rdx, r15
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140009a47
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0xc8]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb8]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r8d, dword [rsp + 0x50]
test eax, eax
cmove r8d, dword [rsp + 0xb8]
mov dword [rsp + 0x50], r8d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
mov r9d, ebp
xor r8d, r8d
mov rdx, r15
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov r9d, r14d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [rsp + 0x50]
lea rdx, [0x14001d340]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x140009c65
movsxd r9, dword [rsp + 0x50]
jmp 0x140009b72
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
mov r9d, r13d
xor r8d, r8d
mov rdx, r15
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140009c65
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0xc8]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb8]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140009c65
mov ebx, dword [rsp + 0xb8]
jmp 0x140009c65
lea rax, [rsp + 0xc0]
lea rdx, str.ShowOptimalBalloon
mov r9d, r14d
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rdx, [0x14001d340]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x140009c65
movsxd r9, dword [rsp + 0xc0]
mov r8, r13
mov edx, 0x1729
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageA]
jmp 0x140009c65
lea rdx, str.ShowGraphicsBalloon
cmp esi, 2
jne 0x140009c3c
lea rax, [rsp + 0xc8]
lea r9, [rsp + 0x54]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb8]
mov dword [rsp + 0xc8], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140009c33
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
mov r9d, r13d
xor r8d, r8d
mov rdx, r15
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140009c5a
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0xc8]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb8]
lea rdx, str.ShowGraphicsBalloon
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140009c5a
mov ebx, dword [rsp + 0xb8]
jmp 0x140009c5a
lea rax, [rsp + 0xc0]
mov r9d, r14d
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret