Function at 0x14000e8c0
Capabilities:
Print debug messages
Query environment variable
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1270
call fcn.140013e90
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x12b8], rbx
mov rax, qword [0x1400273a8]
xor rax, rsp
mov qword [rsp + 0x1260], rax
mov r12d, r9d
mov r13, r8
mov r14, rdx
mov rbx, rcx
test r9d, r9d
jne 0x14000e913
mov dword [rcx + 0x4c], r9d
jmp 0x14000ec7c
cmp r9d, 3
jae 0x14000e9a8
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREINTELNETWORK_SERVICESNCS2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ec7c
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.TRACE
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ec7c
mov r12d, dword [rsp + 0x38]
test r12d, r12d
je 0x14000ec7c
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x14000ec7a
cmp rcx, 0xf5
ja 0x14000ec7a
xor eax, eax
mov rcx, rsi
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
mov rdi, rcx
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.140013bd0
mov qword [rbx + 8], rax
mov qword [rsp + 0x20], r14
mov r9, rdi
mov r8, rax
mov edx, 0x19e
lea rcx, str...CommonSrcNcsDebug.cpp
call fcn.140011860
mov edx, dword [rsp + 0x12c8]
mov dword [rbx + 0x54], edx
lea r9, [0x140016ce8]
lea r8, [rsp + 0x260]
mov edx, 0x1a8
lea rcx, str...CommonSrcNcsDebug.cpp
call fcn.14000e670
lea rdx, str.DxSetup
mov rcx, r14
call qword [sym.imp.MSVCR100.dll__wcsicmp]
test eax, eax
jne 0x14000ea74
mov r9, r13
lea r8, [rsp + 0x260]
mov edx, 0x1ae
lea rcx, str...CommonSrcNcsDebug.cpp
call fcn.14000e6f0
jmp 0x14000ebd4
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x400
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREINTELNETWORK_SERVICESNCS2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000eb0b
lea rdx, str.Ncs2Setp
mov rcx, r14
call qword [sym.imp.MSVCR100.dll__wcsicmp]
test eax, eax
je 0x14000eb0b
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0xa60]
call sub.MSVCR100.dll_memset
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0xa60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.InstalledDir
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x14000eb26
mov r8d, 0x104
lea rdx, [rsp + 0xa60]
lea rcx, str.Temp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r9, [rsp + 0xa60]
lea r8, [rsp + 0x260]
mov edx, 0x1ca
lea rcx, str...CommonSrcNcsDebug.cpp
call fcn.14000e6f0
lea rcx, str.FILE_PATH_1_IS
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea r9, [0x140019f10]
lea r8, [rsp + 0x260]
mov edx, 0x1cd
lea rcx, str...CommonSrcNcsDebug.cpp
call fcn.14000e6f0
lea rcx, str.FILE_PATH_2_IS
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r9, r13
lea r8, [rsp + 0x260]
mov edx, 0x1d0
lea rcx, str...CommonSrcNcsDebug.cpp
call fcn.14000e6f0
lea rcx, str.FILE_PATH_3_IS
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [rsp + 0x12c0]
lea rcx, [rsp + 0x260]
test edi, edi
lea rdx, [0x140019ec4]
jne 0x14000ebf5
lea rdx, [0x140019ec0]
call qword [sym.imp.MSVCR100.dll__wfopen]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14000ec6e
mov r8d, 0x104
lea rdx, [rsp + 0x50]
lea rcx, str.Temp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, 0x5c
lea rcx, [rsp + 0x260]
call qword [sym.imp.MSVCR100.dll_wcsrchr]
mov r9, rax
lea r8, [rsp + 0x50]
mov edx, 0x1ea
lea rcx, str...CommonSrcNcsDebug.cpp
call fcn.1400054f0
lea rcx, [rsp + 0x50]
test edi, edi
lea rdx, [0x140019ec4]
jne 0x14000ec5f
lea rdx, [0x140019ec0]
call qword [sym.imp.MSVCR100.dll__wfopen]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x14000ec80
mov byte [rbx + 0x48], 1
mov dword [rbx + 0x4c], r12d
xor eax, eax
jmp 0x14000ec82
jmp 0x14000ec80
or rsi, 0xffffffffffffffff
mov eax, esi
mov rcx, qword [rsp + 0x1260]
xor rcx, rsp
call fcn.140013da0
mov rbx, qword [rsp + 0x12b8]
add rsp, 0x1270
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret