Function at 0x14009c150
Capabilities:
Check if file exists
Copy file
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5b8]
sub rsp, 0x6b8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov r12, rcx
mov r13, qword [rbp + 0x620]
mov r15, qword [rbp + 0x628]
xor r8d, r8d
lea rdx, [0x1402fc908]
lea rcx, [rsp + 0x58]
call fcn.1400075a0
nop
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, str.pRegRoot___s__pSubKey___s__pValueName___s__pModuleName___s__lpszSrcPath___s
mov esi, 1
mov edx, esi
lea rcx, [rsp + 0x58]
call fcn.140007780
xor eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x50], 0x104
mov dword [rbp + 0x180], eax
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0x184]
call fcn.14024b970
mov dword [rbp + 0x390], 0
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0x394]
call fcn.14024b970
mov dword [rsp + 0x70], 0
xor edx, edx
mov r8d, 0x204
lea rcx, [rsp + 0x74]
call fcn.14024b970
mov rdx, rbx
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1402e5094]
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rdi
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r11, [rsp + 0x48]
mov qword [rsp + 0x20], r11
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x390]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14009c3ef
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x180]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009c3e2
mov rdx, r13
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, r15
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1402e5094]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, r13
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, esi
je 0x14009c348
lea r8, str.CopySMModule___SM_File_EMPTY__
lea edx, [rsi + 6]
lea rcx, [rsp + 0x58]
call fcn.140007780
xor esi, esi
jmp 0x14009c3e2
lea rcx, [rbp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14009c376
mov rax, qword [r12]
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x180]
mov rcx, r12
call qword [rax + 0x510]
cmp eax, esi
jne 0x14009c3e2
xor r8d, r8d
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14009c3e2
lea r8, str.CopySMModule___CopyFile_ERROR__
lea edx, [rax + 7]
lea rcx, [rsp + 0x58]
call fcn.140007780
mov r11, qword [r12]
lea r8, [rbp + 0x180]
lea rdx, [rsp + 0x70]
mov rcx, r12
call qword [r11 + 0x518]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [0x1402e2d90]
lea rdx, str.RebootYesNo
mov rcx, rax
call qword [r9 + 0x20]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14009c407
lea r8, str.CopySMModule___Not_Install_Citrix_Client
mov edx, 7
lea rcx, [rsp + 0x58]
call fcn.140007780
xor esi, esi
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.140007780
nop
lea rcx, [rsp + 0x58]
call fcn.140007730
mov eax, esi
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.140245660
add rsp, 0x6b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret