Function at 0x1400019a0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rsi, rdx
mov edi, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, 0x80000c02
mov rbx, rax
call qword [sym.imp.dbghelp.dll_SymSetOptions]
xor r8d, r8d
lea rcx, str._NT_SYMBOL_PATH
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r15d, r15d
lea rdx, str.cache_srvhttps:__msdl.microsoft.com_download_symbols
cmp eax, 0xcb
mov rcx, rbx
cmovne rdx, r15
xor r8d, r8d
call qword [sym.imp.dbghelp.dll_SymInitializeW]
test eax, eax
jne 0x140001a1a
lea eax, [r15 - 1]
jmp 0x140001f98
mov qword [rsp + 0x1f0], r14
lea rcx, [rbp - 0x40]
cmp edi, 2
jl 0x140001a31
mov rdx, qword [rsi + 8]
jmp 0x140001a4c
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, eax
lea rcx, [rbp - 0x40]
add rcx, rax
lea rdx, str._termsrv.dll
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edx, edx
lea rcx, [rbp - 0x40]
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r14, rax
test rax, rax
jne 0x140001a73
lea eax, [r14 - 2]
jmp 0x140001f90
mov rsi, r14
lea rdi, [0x140003690]
and rsi, 0xfffffffffffffffc
movsxd rdx, dword [rsi + 0x3c]
add rdx, rsi
movzx eax, word [rdx + 0x14]
mov ecx, dword [rax + rdx + 0x2c]
mov eax, dword [rax + rdx + 0x24]
sub rcx, rax
mov eax, 0x20b
add rsi, rcx
lea rcx, [rbp - 0x60]
cmp word [rdx + 0x18], ax
jne 0x140001ab7
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.Zydis.dll_ZydisDecoderInit]
jmp 0x140001acc
mov edx, 1
mov r8d, edx
call qword [sym.imp.Zydis.dll_ZydisDecoderInit]
lea rdi, [0x140003694]
mov dword [rsp + 0x38], r15d
lea r8, [rbp - 0x40]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], r15d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.dbghelp.dll_SymLoadModuleEx]
test rax, rax
jne 0x140001b01
mov eax, 0xfffffffd
jmp 0x140001f90
mov edx, 1
mov rcx, r14
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
jne 0x140001b22
mov eax, 0xfffffffc
jmp 0x140001f90
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
jne 0x140001b3f
lea eax, [r14 - 5]
jmp 0x140001f90
mov dword [rsp + 0x40], 0x58
lea rcx, str.__hu._hu._hu._hu__n
mov dword [rbp - 0x70], r15d
movzx eax, word [rax + 0x34]
movzx r9d, word [r14 + 0x36]
movzx r8d, word [r14 + 0x30]
movzx edx, word [r14 + 0x32]
mov dword [rsp + 0x20], eax
call fcn.140001010
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, [0x1400036b0]
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
jne 0x140001ba4
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, str._memset
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001c27
mov r15, qword [rsp + 0x78]
lea r8, [rsp + 0x40]
sub r15, qword [rsp + 0x60]
lea rdx, str.CSessionArbitrationHelper::IsSingleSessionPerUserEnabled
mov rcx, rbx
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001be4
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x60]
sub rdx, qword [rsp + 0x60]
mov r9, r15
mov r8, rsi
call fcn.140001760
test eax, eax
jne 0x140001c27
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, str.CUtils::IsSingleSessionPerUser
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001c27
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x60]
sub rdx, qword [rsp + 0x60]
mov r9, r15
mov r8, rsi
call fcn.140001760
test eax, eax
jne 0x140001c27
lea rcx, str.ERROR:_SingleUserPatch_not_found
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, str.CDefPolicy::Query
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001c58
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x60]
sub rdx, qword [rsp + 0x60]
mov r8, rsi
call fcn.1400013b0
jmp 0x140001c65
lea rcx, str.ERROR:_CDefPolicy_Query_not_found
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov eax, dword [r14 + 0x30]
cmp eax, 0x60001
jbe 0x140001f8e
lea r8, [rsp + 0x40]
mov rcx, rbx
cmp eax, 0x60002
jne 0x140001cbe
lea rdx, str.SLGetWindowsInformationDWORDWrapper
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001cb2
mov r8, qword [rsp + 0x78]
lea rcx, str.SLPolicyInternal._1_s1_nSLPolicyOffset._1_s_2_llX_nSLPolicyFunc._1_sNew_Win8SL_n
sub r8, qword [rsp + 0x60]
mov rdx, rdi
call fcn.140001070
jmp 0x140001f8e
lea rcx, str.ERROR:_SLGetWindowsInformationDWORDWrapper_not_found
jmp 0x140001f88
lea rdx, str.CEnforcementCore::GetInstanceOfTSLicense
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001d16
mov r15, qword [rsp + 0x78]
lea r8, [rsp + 0x40]
sub r15, qword [rsp + 0x60]
lea rdx, str.CSLQuery::IsLicenseTypeLocalOnly
mov rcx, rbx
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001d0d
mov r9, qword [rsp + 0x78]
lea rcx, [rbp - 0x60]
sub r9, qword [rsp + 0x60]
mov r8, rsi
mov rdx, r15
call fcn.1400010d0
jmp 0x140001d23
lea rcx, str.ERROR:_IsLicenseTypeLocalOnly_not_found
jmp 0x140001d1d
lea rcx, str.ERROR:_GetInstanceOfTSLicense_not_found
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, str.CSLQuery::Initialize
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001f81
mov r8, qword [rsp + 0x78]
lea rcx, str.SLInitHook._1_s1_nSLInitOffset._1_s_2_llX_nSLInitFunc._1_sNew_CSLQuery_Initialize_n
sub r8, qword [rsp + 0x60]
mov rdx, rdi
call fcn.140001070
movzx eax, word [r14 + 0x34]
lea rcx, str._n__hu._hu._hu._hu_SLInit__n
movzx r9d, word [r14 + 0x36]
movzx r8d, word [r14 + 0x30]
movzx edx, word [r14 + 0x32]
mov dword [rsp + 0x20], eax
call fcn.140001010
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, str.CSLQuery::bServerSku
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001db1
mov r8, qword [rsp + 0x78]
lea rcx, str.bServerSku._s_llX_n
sub r8, qword [rsp + 0x60]
mov rdx, rdi
call fcn.140001010
jmp 0x140001dbe
lea rcx, str.ERROR:_bServerSku_not_found
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, str.CSLQuery::bRemoteConnAllowed
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001df2
mov r8, qword [rsp + 0x78]
lea rcx, str.bRemoteConnAllowed._s_llX_n
sub r8, qword [rsp + 0x60]
mov rdx, rdi
call fcn.140001010
jmp 0x140001dff
lea rcx, str.ERROR:_bRemoteConnAllowed_not_found
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, str.CSLQuery::bFUSEnabled
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001e33
mov r8, qword [rsp + 0x78]
lea rcx, str.bFUSEnabled._s_llX_n
sub r8, qword [rsp + 0x60]
mov rdx, rdi
call fcn.140001010
jmp 0x140001e40
lea rcx, str.ERROR:_bFUSEnabled_not_found
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, str.CSLQuery::bAppServerAllowed
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001e74
mov r8, qword [rsp + 0x78]
lea rcx, str.bAppServerAllowed._s_llX_n
sub r8, qword [rsp + 0x60]
mov rdx, rdi
call fcn.140001010
jmp 0x140001e81
lea rcx, str.ERROR:_bAppServerAllowed_not_found
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, str.CSLQuery::bMultimonAllowed
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001eb5
mov r8, qword [rsp + 0x78]
lea rcx, str.bMultimonAllowed._s_llX_n
sub r8, qword [rsp + 0x60]
mov rdx, rdi
call fcn.140001010
jmp 0x140001ec2
lea rcx, str.ERROR:_bMultimonAllowed_not_found
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, str.CSLQuery::lMaxUserSessions
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001ef6
mov r8, qword [rsp + 0x78]
lea rcx, str.lMaxUserSessions._s_llX_n
sub r8, qword [rsp + 0x60]
mov rdx, rdi
call fcn.140001010
jmp 0x140001f03
lea rcx, str.ERROR:_lMaxUserSessions_not_found
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, str.CSLQuery::ulMaxDebugSessions
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001f37
mov r8, qword [rsp + 0x78]
lea rcx, str.ulMaxDebugSessions._s_llX_n
sub r8, qword [rsp + 0x60]
mov rdx, rdi
call fcn.140001010
jmp 0x140001f44
lea rcx, str.ERROR:_ulMaxDebugSessions_not_found
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, str.CSLQuery::bInitialized
call qword [sym.imp.dbghelp.dll_SymFromNameW]
test eax, eax
je 0x140001f78
mov r8, qword [rsp + 0x78]
lea rcx, str.bInitialized._s_llX_n
sub r8, qword [rsp + 0x60]
mov rdx, rdi
call fcn.140001010
jmp 0x140001f8e
lea rcx, str.ERROR:_bInitialized_not_found
jmp 0x140001f88
lea rcx, str.ERROR:_CSLQuery_Initialize_not_found
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
xor eax, eax
mov r14, qword [rsp + 0x1f0]
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret