Function at 0x14009cef0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x1bb8]
mov eax, 0x1cb8
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x1ba0], rax
mov r12, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_VCSetIniFile
lea rcx, [rsp + 0x40]
call fcn.1400075a0
nop
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, str.pRegRoot___s__pSubKey___s__pValueName___s
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140007780
xor r13d, r13d
mov qword [rsp + 0x60], r13
mov dword [rsp + 0x70], 1
mov dword [rsp + 0x74], 0x104
mov dword [rbp - 0x80], r13d
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp - 0x7c]
call fcn.14024b970
mov dword [rbp + 0x3a0], r13d
xor edx, edx
mov r8d, 0x7fc
lea rcx, [rbp + 0x3a4]
call fcn.14024b970
mov dword [rbp + 0x190], r13d
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0x194]
call fcn.14024b970
mov rdx, rbx
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1402e5094]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rdi
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r11, [rsp + 0x60]
mov qword [rsp + 0x20], r11
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp + 0x190]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14009d499
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.MsiInstallDir
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14009d0ad
lea r8, str.SetIniFile___RegQueryValueEx_Error__
lea edx, [r13 + 7]
lea rcx, [rsp + 0x40]
call fcn.140007780
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r13 + 2]
lea rcx, [rsp + 0x40]
call fcn.140007780
nop
lea rcx, [rsp + 0x40]
call fcn.140007730
xor eax, eax
jmp 0x14009d4da
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.Module.ini
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1402dc4e0]
lea rcx, [rsp + 0x50]
call fcn.140005900
nop
lea rdx, [0x1402dc4e0]
lea rcx, [rsp + 0x58]
call fcn.140005900
nop
mov word [rbp + 0xba0], r13w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0xba2]
call fcn.14024b970
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0xba0]
lea rdx, str.MODULENAME_PREFIX
mov rcx, rax
call qword [r9 + 0x18]
lea r8, [rbp + 0xba0]
lea rdx, str.Canon__s_ERROR
lea rcx, [rsp + 0x58]
call fcn.14000de40
lea r8, [rbp + 0xba0]
lea rdx, str.Canon__s
lea rcx, [rsp + 0x50]
call fcn.14000de40
lea r11, [rbp - 0x80]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0x400
lea r9, [rbp + 0x3a0]
mov r8, qword [rsp + 0x58]
lea rdx, str.VirtualDriver
lea rcx, str.ICA_3.0
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x14009d28a
mov qword [rsp + 0x68], r13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x14009d20f
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
lea r9, str.GetPrivateProfileString
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x40]
call fcn.140007780
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14009d21f
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x40]
call fcn.140007780
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009d25b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14009d279
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x40]
call fcn.140007730
xor eax, eax
jmp 0x14009d4da
mov rdx, r12
lea rcx, [rbp + 0x3a0]
call fcn.140245e24
test rax, rax
jne 0x14009d360
mov rax, qword [rsi]
lea r9, [0x1402dc4e0]
mov r8, qword [rsp + 0x50]
lea rdx, [rbp + 0x3a0]
mov rcx, rsi
call qword [rax + 0x528]
lea r9, [rbp - 0x80]
lea r8, [rbp + 0x3a0]
lea rdx, str.VirtualDriver
lea rcx, str.ICA_3.0
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x14009d360
lea rdx, str._t_t_tWritePrivateProfileString
lea rcx, [rsp + 0x40]
call fcn.140029dc0
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x40]
call fcn.140007780
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009d331
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14009d34f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x40]
call fcn.140007730
xor eax, eax
jmp 0x14009d4da
mov word [rbp + 0x13a0], r13w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x13a2]
call fcn.14024b970
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x13a0]
lea rdx, str.VIRTUALCHANNEL_NAME
mov rcx, rax
call qword [r9 + 0x18]
lea r9, [rbp - 0x80]
lea r8, [rbp + 0x13a0]
lea rdx, str.DriverNameWin32
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x40]
test eax, eax
jne 0x14009d43e
lea rdx, str.WritePrivateProfileString_Canon_CNAPX_
call fcn.140029dc0
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x40]
call fcn.140007780
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009d40f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14009d42d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x40]
call fcn.140007730
xor eax, eax
jmp 0x14009d4da
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
call fcn.140007780
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009d478
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14009d497
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
jmp 0x14009d4cb
lea r8, str.SetIniFile___Not_Install_Citrix_Client
mov edx, 7
lea rcx, [rsp + 0x40]
call fcn.140007780
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x40]
call fcn.140007780
nop
lea rcx, [rsp + 0x40]
call fcn.140007730
mov eax, 1
mov rcx, qword [rbp + 0x1ba0]
xor rcx, rsp
call fcn.140245660
add rsp, 0x1cb8
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret