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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb98]
sub rsp, 0xc98
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0xb80], rax
mov r13, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_SetRegKeyICA
lea rcx, [rsp + 0x48]
call fcn.1400075a0
nop
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbx
mov r9, rdi
lea r8, str.pRegRoot___s__pSubKey___s__pValueName___s
mov esi, 1
mov edx, esi
lea rcx, [rsp + 0x48]
call fcn.140007780
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x60], r15d
xor edx, edx
mov r8d, 0x204
lea rcx, [rsp + 0x64]
call fcn.14024b970
mov dword [rbp + 0x170], r15d
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0x174]
call fcn.14024b970
mov rdx, rdi
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1402e5094]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14009ca63
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.VirtualDriverEx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009ca56
mov ecx, dword [rsp + 0x30]
shr ecx, 1
add ecx, 0xc
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.1401026e4
mov r12, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.VirtualDriverEx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009ca35
mov rdx, r13
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rbp + 0x170]
mov rcx, r12
call fcn.140245e24
test rax, rax
je 0x14009c940
lea r8, str.SetRegKeyICA_Canon_CNAPX_ALREADY_SET
lea edx, [rsi + 6]
lea rcx, [rsp + 0x48]
call fcn.140007780
jmp 0x14009ca4e
lea rdx, [0x1402dc4e0]
lea rcx, [rsp + 0x40]
call fcn.140005900
nop
mov word [rbp + 0x380], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x382]
call fcn.14024b970
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdi, qword [rax]
lea r8, [rbp + 0x380]
lea rdx, str.MODULENAME_PREFIX
mov rcx, rax
call qword [rdi + 0x18]
lea r8, [rbp + 0x380]
lea rdx, str.Canon__s
lea rcx, [rsp + 0x40]
call fcn.14000de40
mov rax, qword [r14]
lea r9, [0x1402dc4e0]
mov r8, qword [rsp + 0x40]
mov rdx, r12
mov rcx, r14
call qword [rax + 0x528]
xor eax, eax
mov rcx, rbx
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, dword [rsp + 0x34]
xor r8d, r8d
lea rdx, str.VirtualDriverEx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14009ca16
lea r8, str.SetRegKeyICA_Write_ERROR__
mov edx, 7
lea rcx, [rsp + 0x48]
call fcn.140007780
mov esi, r15d
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14009ca4e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14009ca4e
lea r8, str.SetRegKeyICA___Registry_Query_Error
mov edx, 7
lea rcx, [rsp + 0x48]
call fcn.140007780
mov esi, r15d
mov rcx, r12
call fcn.1401026ec
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14009ca7c
lea r8, str.SetRegKeyICA___Not_Install_Citrix_Client
mov edx, 7
lea rcx, [rsp + 0x48]
call fcn.140007780
mov esi, r15d
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140007780
nop
lea rcx, [rsp + 0x48]
call fcn.140007730
mov eax, esi
mov rcx, qword [rbp + 0xb80]
xor rcx, rsp
call fcn.140245660
add rsp, 0xc98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret