Function at 0x1400998d0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
push rbp
lea rbp, [rsp - 0x7f0]
sub rsp, 0x8f0
mov rax, qword [0x14021a328]
xor rax, rsp
mov qword [rbp + 0x7e0], rax
xor edx, edx
lea rcx, [rbp + 0x4b0]
mov r8d, 0x104
call fcn.1400ae310
xor edx, edx
lea rcx, [rbp + 0x70]
mov r8d, 0x104
call fcn.1400ae310
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x104
call fcn.1400ae310
xor edx, edx
lea rcx, [rbp + 0x290]
mov r8d, 0x104
call fcn.1400ae310
xor edx, edx
lea rcx, [rbp + 0x6d0]
mov r8d, 0x104
call fcn.1400ae310
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x104
call fcn.1400ae310
xor edx, edx
lea rcx, [rbp + 0x5c0]
mov r8d, 0x104
call fcn.1400ae310
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edx, 0x104
lea rcx, [rbp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
test eax, eax
jne 0x1400999cd
mov r9, 0xffffffffffffffff
lea r8, str.C:Windows
mov edx, 0x104
lea rcx, [rbp + 0x4b0]
call fcn.1400bb838
mov edx, 0x104
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1400999fc
mov r9, 0xffffffffffffffff
lea r8, str.C:WindowsSystem32
mov edx, 0x104
lea rcx, [rbp + 0x70]
call fcn.1400bb838
lea rdx, [rbp + 0x180]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, eax
cmp rax, 1
jbe 0x140099a2f
dec rax
cmp rax, 0x104
jae 0x140099f60
mov byte [rbp + rax + 0x180], 0
jmp 0x140099a4e
mov r9, 0xffffffffffffffff
lea r8, str.C:WindowsTemp
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.1400bb838
mov qword [rsp + 0x900], rbx
lea rdx, [rbp + 0x290]
mov r8d, 0x104
mov qword [rsp + 0x910], rdi
lea rcx, str.ProgramW6432
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x140099ab9
mov r8d, 0x104
lea rdx, [rbp + 0x290]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x140099ab9
mov r9, 0xffffffffffffffff
lea r8, str.C:Program_Files
mov edx, 0x104
lea rcx, [rbp + 0x290]
call fcn.1400bb838
lea r9, [rbp + 0x70]
mov ecx, 0x104
lea r8, str._sdriversDriverDataIntelDPTF
lea rdx, [rbp + 0x6d0]
call fcn.140098870
lea r8, [rsp + 0x20]
mov ecx, 6
lea rdx, [fcn.1400998d0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x140099b25
mov rcx, qword [rsp + 0x20]
lea rdx, [rbp + 0x3a0]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140099b25
mov edx, 0x5c
lea rcx, [rbp + 0x3a0]
call fcn.1400aea18
test rax, rax
je 0x140099b25
mov byte [rax], 0
mov r9d, 0x400
lea r8, [rbp + 0x70]
lea rdx, str._SYSTEM_
lea rcx, str.HOME_ROOT__nTEMP_TEMP__nDV_DVDIR__nLOG_DATA_log_nBIN_DATA__bin_nLOCK_DATA__nEXE_DRIVER__nDLL_DRIVER__nDLLALT_SYSTEM_IntelDPTF_n_nDPTF_ROOT_ui_nDSP_ROOT_dsp_nCMD_ROOT_cmd_nUI_ROOT_ui_n
call fcn.140099f70
mov r9d, 0x400
lea r8, [rbp + 0x180]
lea rdx, str._TEMP_
lea rcx, str.HOME_ROOT__nTEMP_TEMP__nDV_DVDIR__nLOG_DATA_log_nBIN_DATA__bin_nLOCK_DATA__nEXE_DRIVER__nDLL_DRIVER__nDLLALT_SYSTEM_IntelDPTF_n_nDPTF_ROOT_ui_nDSP_ROOT_dsp_nCMD_ROOT_cmd_nUI_ROOT_ui_n
call fcn.140099f70
mov r9d, 0x400
lea r8, [rbp + 0x290]
lea rdx, str._PROGRAMFILES_
lea rcx, str.HOME_ROOT__nTEMP_TEMP__nDV_DVDIR__nLOG_DATA_log_nBIN_DATA__bin_nLOCK_DATA__nEXE_DRIVER__nDLL_DRIVER__nDLLALT_SYSTEM_IntelDPTF_n_nDPTF_ROOT_ui_nDSP_ROOT_dsp_nCMD_ROOT_cmd_nUI_ROOT_ui_n
call fcn.140099f70
mov r9d, 0x400
lea r8, [rbp + 0x6d0]
lea rdx, str._ROOT_
lea rcx, str.HOME_ROOT__nTEMP_TEMP__nDV_DVDIR__nLOG_DATA_log_nBIN_DATA__bin_nLOCK_DATA__nEXE_DRIVER__nDLL_DRIVER__nDLLALT_SYSTEM_IntelDPTF_n_nDPTF_ROOT_ui_nDSP_ROOT_dsp_nCMD_ROOT_cmd_nUI_ROOT_ui_n
call fcn.140099f70
mov r9d, 0x400
lea r8, [rbp + 0x4b0]
lea rdx, str._WINDOWS_
lea rcx, str.LEGDRIVERDIR_SYSTEM_IntelDPTF_nDATADIR_DRVDATA_IntelDPTF_nLEGDATADIR_WINDOWS_ServiceProfilesLocalServiceAppDataLocalIntelDPTF_nSSDVDIR_DATA_dv_nLEGDVDIR_DATA__n
call fcn.140099f70
mov r9d, 0x400
lea r8, [rbp + 0x70]
lea rdx, str._SYSTEM_
lea rcx, str.LEGDRIVERDIR_SYSTEM_IntelDPTF_nDATADIR_DRVDATA_IntelDPTF_nLEGDATADIR_WINDOWS_ServiceProfilesLocalServiceAppDataLocalIntelDPTF_nSSDVDIR_DATA_dv_nLEGDVDIR_DATA__n
call fcn.140099f70
mov r8d, 0x104
lea rdx, [rbp + 0x5c0]
lea rcx, str.DriverData
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x140099c19
lea r9, [rbp + 0x70]
mov ecx, 0x104
lea r8, str._sdriversDriverData
lea rdx, [rbp + 0x5c0]
call fcn.140098870
mov r9d, 0x400
lea r8, [rbp + 0x5c0]
lea rdx, str._DRVDATA_
lea rcx, str.LEGDRIVERDIR_SYSTEM_IntelDPTF_nDATADIR_DRVDATA_IntelDPTF_nLEGDATADIR_WINDOWS_ServiceProfilesLocalServiceAppDataLocalIntelDPTF_nSSDVDIR_DATA_dv_nLEGDVDIR_DATA__n
call fcn.140099f70
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x104
call fcn.1400ae310
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x3a0]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400bb838
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400d5db8
cmp rax, 0x104
jne 0x140099c85
mov byte [rbp + 0x63], 0
jmp 0x140099ca2
mov r9, 0xffffffffffffffff
lea r8, [0x1401dfd78]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400ecb38
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140099cea
bt eax, 0xa
jae 0x140099cea
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140099cd8
test al, 0x10
je 0x140099cd8
lea rcx, [rsp + 0x60]
call fcn.1400d95ec
jmp 0x140099ce2
lea rcx, [rsp + 0x60]
call fcn.1400bd14c
test eax, eax
jne 0x140099dfe
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x60]
call fcn.1400d90a4
test eax, eax
jne 0x140099dfe
mov r9d, 0x400
lea r8, [rbp + 0x3a0]
lea rdx, str._DRIVER_
lea rcx, str.HOME_ROOT__nTEMP_TEMP__nDV_DVDIR__nLOG_DATA_log_nBIN_DATA__bin_nLOCK_DATA__nEXE_DRIVER__nDLL_DRIVER__nDLLALT_SYSTEM_IntelDPTF_n_nDPTF_ROOT_ui_nDSP_ROOT_dsp_nCMD_ROOT_cmd_nUI_ROOT_ui_n
call fcn.140099f70
lea rdx, str.DATADIR
lea rcx, str.HOME_ROOT__nTEMP_TEMP__nDV_DVDIR__nLOG_DATA_log_nBIN_DATA__bin_nLOCK_DATA__nEXE_DRIVER__nDLL_DRIVER__nDLLALT_SYSTEM_IntelDPTF_n_nDPTF_ROOT_ui_nDSP_ROOT_dsp_nCMD_ROOT_cmd_nUI_ROOT_ui_n
call fcn.140098b70
mov rbx, rax
test rax, rax
jne 0x140099d52
lea rdx, str.DATADIR
lea rcx, str.LEGDRIVERDIR_SYSTEM_IntelDPTF_nDATADIR_DRVDATA_IntelDPTF_nLEGDATADIR_WINDOWS_ServiceProfilesLocalServiceAppDataLocalIntelDPTF_nSSDVDIR_DATA_dv_nLEGDVDIR_DATA__n
call fcn.140098b70
mov rbx, rax
mov r9d, 0x400
lea rdx, str._DATA_
mov r8, rbx
lea rcx, str.HOME_ROOT__nTEMP_TEMP__nDV_DVDIR__nLOG_DATA_log_nBIN_DATA__bin_nLOCK_DATA__nEXE_DRIVER__nDLL_DRIVER__nDLLALT_SYSTEM_IntelDPTF_n_nDPTF_ROOT_ui_nDSP_ROOT_dsp_nCMD_ROOT_cmd_nUI_ROOT_ui_n
call fcn.140099f70
mov r9d, 0x514
lea rdx, str._DATA_
mov r8, rbx
lea rcx, str.LEGDRIVERDIR_SYSTEM_IntelDPTF_nDATADIR_DRVDATA_IntelDPTF_nLEGDATADIR_WINDOWS_ServiceProfilesLocalServiceAppDataLocalIntelDPTF_nSSDVDIR_DATA_dv_nLEGDVDIR_DATA__n
call fcn.140099f70
lea rdx, str.SSDVDIR
lea rcx, str.HOME_ROOT__nTEMP_TEMP__nDV_DVDIR__nLOG_DATA_log_nBIN_DATA__bin_nLOCK_DATA__nEXE_DRIVER__nDLL_DRIVER__nDLLALT_SYSTEM_IntelDPTF_n_nDPTF_ROOT_ui_nDSP_ROOT_dsp_nCMD_ROOT_cmd_nUI_ROOT_ui_n
call fcn.140098b70
mov rdi, rax
test rax, rax
jne 0x140099dbb
lea rdx, str.SSDVDIR
lea rcx, str.LEGDRIVERDIR_SYSTEM_IntelDPTF_nDATADIR_DRVDATA_IntelDPTF_nLEGDATADIR_WINDOWS_ServiceProfilesLocalServiceAppDataLocalIntelDPTF_nSSDVDIR_DATA_dv_nLEGDVDIR_DATA__n
call fcn.140098b70
mov rdi, rax
mov r9d, 0x400
lea rdx, str._DVDIR_
mov r8, rdi
lea rcx, str.HOME_ROOT__nTEMP_TEMP__nDV_DVDIR__nLOG_DATA_log_nBIN_DATA__bin_nLOCK_DATA__nEXE_DRIVER__nDLL_DRIVER__nDLLALT_SYSTEM_IntelDPTF_n_nDPTF_ROOT_ui_nDSP_ROOT_dsp_nCMD_ROOT_cmd_nUI_ROOT_ui_n
call fcn.140099f70
mov ecx, dword [0x140220a38]
lea eax, [rcx - 2]
test eax, 0xfffffffc
jne 0x140099f1e
cmp ecx, 3
je 0x140099f1e
call fcn.1400994f0
jmp 0x140099f1e
lea rdx, str.LEGDRIVERDIR
mov qword [rsp + 0x908], rsi
lea rcx, str.HOME_ROOT__nTEMP_TEMP__nDV_DVDIR__nLOG_DATA_log_nBIN_DATA__bin_nLOCK_DATA__nEXE_DRIVER__nDLL_DRIVER__nDLLALT_SYSTEM_IntelDPTF_n_nDPTF_ROOT_ui_nDSP_ROOT_dsp_nCMD_ROOT_cmd_nUI_ROOT_ui_n
call fcn.140098b70
mov rsi, rax
test rax, rax
jne 0x140099e37
lea rdx, str.LEGDRIVERDIR
lea rcx, str.LEGDRIVERDIR_SYSTEM_IntelDPTF_nDATADIR_DRVDATA_IntelDPTF_nLEGDATADIR_WINDOWS_ServiceProfilesLocalServiceAppDataLocalIntelDPTF_nSSDVDIR_DATA_dv_nLEGDVDIR_DATA__n
call fcn.140098b70
mov rsi, rax
mov r9d, 0x400
lea rdx, str._DRIVER_
mov r8, rsi
lea rcx, str.HOME_ROOT__nTEMP_TEMP__nDV_DVDIR__nLOG_DATA_log_nBIN_DATA__bin_nLOCK_DATA__nEXE_DRIVER__nDLL_DRIVER__nDLLALT_SYSTEM_IntelDPTF_n_nDPTF_ROOT_ui_nDSP_ROOT_dsp_nCMD_ROOT_cmd_nUI_ROOT_ui_n
call fcn.140099f70
lea rdx, str.LEGDATADIR
lea rcx, str.HOME_ROOT__nTEMP_TEMP__nDV_DVDIR__nLOG_DATA_log_nBIN_DATA__bin_nLOCK_DATA__nEXE_DRIVER__nDLL_DRIVER__nDLLALT_SYSTEM_IntelDPTF_n_nDPTF_ROOT_ui_nDSP_ROOT_dsp_nCMD_ROOT_cmd_nUI_ROOT_ui_n
call fcn.140098b70
mov rbx, rax
test rax, rax
jne 0x140099e84
lea rdx, str.LEGDATADIR
lea rcx, str.LEGDRIVERDIR_SYSTEM_IntelDPTF_nDATADIR_DRVDATA_IntelDPTF_nLEGDATADIR_WINDOWS_ServiceProfilesLocalServiceAppDataLocalIntelDPTF_nSSDVDIR_DATA_dv_nLEGDVDIR_DATA__n
call fcn.140098b70
mov rbx, rax
mov r9d, 0x400
lea rdx, str._DATA_
mov r8, rbx
lea rcx, str.HOME_ROOT__nTEMP_TEMP__nDV_DVDIR__nLOG_DATA_log_nBIN_DATA__bin_nLOCK_DATA__nEXE_DRIVER__nDLL_DRIVER__nDLLALT_SYSTEM_IntelDPTF_n_nDPTF_ROOT_ui_nDSP_ROOT_dsp_nCMD_ROOT_cmd_nUI_ROOT_ui_n
call fcn.140099f70
mov r9d, 0x514
lea rdx, str._DATA_
mov r8, rbx
lea rcx, str.LEGDRIVERDIR_SYSTEM_IntelDPTF_nDATADIR_DRVDATA_IntelDPTF_nLEGDATADIR_WINDOWS_ServiceProfilesLocalServiceAppDataLocalIntelDPTF_nSSDVDIR_DATA_dv_nLEGDVDIR_DATA__n
call fcn.140099f70
lea rdx, str.LEGDVDIR
lea rcx, str.HOME_ROOT__nTEMP_TEMP__nDV_DVDIR__nLOG_DATA_log_nBIN_DATA__bin_nLOCK_DATA__nEXE_DRIVER__nDLL_DRIVER__nDLLALT_SYSTEM_IntelDPTF_n_nDPTF_ROOT_ui_nDSP_ROOT_dsp_nCMD_ROOT_cmd_nUI_ROOT_ui_n
call fcn.140098b70
mov rdi, rax
test rax, rax
jne 0x140099eed
lea rdx, str.LEGDVDIR
lea rcx, str.LEGDRIVERDIR_SYSTEM_IntelDPTF_nDATADIR_DRVDATA_IntelDPTF_nLEGDATADIR_WINDOWS_ServiceProfilesLocalServiceAppDataLocalIntelDPTF_nSSDVDIR_DATA_dv_nLEGDVDIR_DATA__n
call fcn.140098b70
mov rdi, rax
mov r9d, 0x400
lea rdx, str._DVDIR_
mov r8, rdi
lea rcx, str.HOME_ROOT__nTEMP_TEMP__nDV_DVDIR__nLOG_DATA_log_nBIN_DATA__bin_nLOCK_DATA__nEXE_DRIVER__nDLL_DRIVER__nDLLALT_SYSTEM_IntelDPTF_n_nDPTF_ROOT_ui_nDSP_ROOT_dsp_nCMD_ROOT_cmd_nUI_ROOT_ui_n
call fcn.140099f70
test rsi, rsi
je 0x140099f16
mov rcx, rsi
call fcn.1400bb754
mov rsi, qword [rsp + 0x908]
test rbx, rbx
je 0x140099f2b
mov rcx, rbx
call fcn.1400bb754
mov rbx, qword [rsp + 0x900]
test rdi, rdi
je 0x140099f40
mov rcx, rdi
call fcn.1400bb754
mov rdi, qword [rsp + 0x910]
mov rcx, qword [rbp + 0x7e0]
xor rcx, rsp
call fcn.1400ac830
add rsp, 0x8f0
pop rbp
ret
call fcn.1400ac994
int3