Function at 0x140098850
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 [0x140214ec8]
xor rax, rsp
mov qword [rbp + 0x7e0], rax
xor edx, edx
lea rcx, [rbp + 0x4b0]
mov r8d, 0x104
call fcn.1400ad180
xor edx, edx
lea rcx, [rbp + 0x70]
mov r8d, 0x104
call fcn.1400ad180
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x104
call fcn.1400ad180
xor edx, edx
lea rcx, [rbp + 0x290]
mov r8d, 0x104
call fcn.1400ad180
xor edx, edx
lea rcx, [rbp + 0x6d0]
mov r8d, 0x104
call fcn.1400ad180
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x104
call fcn.1400ad180
xor edx, edx
lea rcx, [rbp + 0x5c0]
mov r8d, 0x104
call fcn.1400ad180
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 0x14009894d
mov r9, 0xffffffffffffffff
lea r8, str.C:Windows
mov edx, 0x104
lea rcx, [rbp + 0x4b0]
call fcn.1400baf28
mov edx, 0x104
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
jne 0x14009897c
mov r9, 0xffffffffffffffff
lea r8, str.C:WindowsSystem32
mov edx, 0x104
lea rcx, [rbp + 0x70]
call fcn.1400baf28
lea rdx, [rbp + 0x180]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov eax, eax
cmp rax, 1
jbe 0x1400989af
dec rax
cmp rax, 0x104
jae 0x140098ee0
mov byte [rbp + rax + 0x180], 0
jmp 0x1400989ce
mov r9, 0xffffffffffffffff
lea r8, str.C:WindowsTemp
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.1400baf28
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 0x140098a39
mov r8d, 0x104
lea rdx, [rbp + 0x290]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
jne 0x140098a39
mov r9, 0xffffffffffffffff
lea r8, str.C:Program_Files
mov edx, 0x104
lea rcx, [rbp + 0x290]
call fcn.1400baf28
lea r9, [rbp + 0x70]
mov ecx, 0x104
lea r8, str._sdriversDriverDataIntelDPTF
lea rdx, [rbp + 0x6d0]
call fcn.1400977f0
lea r8, [rsp + 0x20]
mov ecx, 6
lea rdx, [fcn.140098850]
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleExW]
test eax, eax
je 0x140098aa5
mov rcx, qword [rsp + 0x20]
lea rdx, [rbp + 0x3a0]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x140098aa5
mov edx, 0x5c
lea rcx, [rbp + 0x3a0]
call fcn.1400ad888
test rax, rax
je 0x140098aa5
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.140098ef0
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.140098ef0
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.140098ef0
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.140098ef0
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.140098ef0
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.140098ef0
mov r8d, 0x104
lea rdx, [rbp + 0x5c0]
lea rcx, str.DriverData
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
jne 0x140098b99
lea r9, [rbp + 0x70]
mov ecx, 0x104
lea r8, str._sdriversDriverData
lea rdx, [rbp + 0x5c0]
call fcn.1400977f0
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.140098ef0
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x104
call fcn.1400ad180
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x3a0]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400baf28
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400d5428
cmp rax, 0x104
jne 0x140098c05
mov byte [rbp + 0x63], 0
jmp 0x140098c22
mov r9, 0xffffffffffffffff
lea r8, [0x1401da5a8]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400ebfb4
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140098c6a
bt eax, 0xa
jae 0x140098c6a
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140098c58
test al, 0x10
je 0x140098c58
lea rcx, [rsp + 0x60]
call fcn.1400d89e4
jmp 0x140098c62
lea rcx, [rsp + 0x60]
call fcn.1400bd7ac
test eax, eax
jne 0x140098d7e
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x60]
call fcn.1400d849c
test eax, eax
jne 0x140098d7e
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.140098ef0
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.140097af0
mov rbx, rax
test rax, rax
jne 0x140098cd2
lea rdx, str.DATADIR
lea rcx, str.LEGDRIVERDIR_SYSTEM_IntelDPTF_nDATADIR_DRVDATA_IntelDPTF_nLEGDATADIR_WINDOWS_ServiceProfilesLocalServiceAppDataLocalIntelDPTF_nSSDVDIR_DATA_dv_nLEGDVDIR_DATA__n
call fcn.140097af0
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.140098ef0
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.140098ef0
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.140097af0
mov rdi, rax
test rax, rax
jne 0x140098d3b
lea rdx, str.SSDVDIR
lea rcx, str.LEGDRIVERDIR_SYSTEM_IntelDPTF_nDATADIR_DRVDATA_IntelDPTF_nLEGDATADIR_WINDOWS_ServiceProfilesLocalServiceAppDataLocalIntelDPTF_nSSDVDIR_DATA_dv_nLEGDVDIR_DATA__n
call fcn.140097af0
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.140098ef0
mov ecx, dword [0x14021b698]
lea eax, [rcx - 2]
test eax, 0xfffffffc
jne 0x140098e9e
cmp ecx, 3
je 0x140098e9e
call fcn.140098470
jmp 0x140098e9e
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.140097af0
mov rsi, rax
test rax, rax
jne 0x140098db7
lea rdx, str.LEGDRIVERDIR
lea rcx, str.LEGDRIVERDIR_SYSTEM_IntelDPTF_nDATADIR_DRVDATA_IntelDPTF_nLEGDATADIR_WINDOWS_ServiceProfilesLocalServiceAppDataLocalIntelDPTF_nSSDVDIR_DATA_dv_nLEGDVDIR_DATA__n
call fcn.140097af0
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.140098ef0
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.140097af0
mov rbx, rax
test rax, rax
jne 0x140098e04
lea rdx, str.LEGDATADIR
lea rcx, str.LEGDRIVERDIR_SYSTEM_IntelDPTF_nDATADIR_DRVDATA_IntelDPTF_nLEGDATADIR_WINDOWS_ServiceProfilesLocalServiceAppDataLocalIntelDPTF_nSSDVDIR_DATA_dv_nLEGDVDIR_DATA__n
call fcn.140097af0
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.140098ef0
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.140098ef0
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.140097af0
mov rdi, rax
test rax, rax
jne 0x140098e6d
lea rdx, str.LEGDVDIR
lea rcx, str.LEGDRIVERDIR_SYSTEM_IntelDPTF_nDATADIR_DRVDATA_IntelDPTF_nLEGDATADIR_WINDOWS_ServiceProfilesLocalServiceAppDataLocalIntelDPTF_nSSDVDIR_DATA_dv_nLEGDVDIR_DATA__n
call fcn.140097af0
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.140098ef0
test rsi, rsi
je 0x140098e96
mov rcx, rsi
call fcn.1400bae44
mov rsi, qword [rsp + 0x908]
test rbx, rbx
je 0x140098eab
mov rcx, rbx
call fcn.1400bae44
mov rbx, qword [rsp + 0x900]
test rdi, rdi
je 0x140098ec0
mov rcx, rdi
call fcn.1400bae44
mov rdi, qword [rsp + 0x910]
mov rcx, qword [rbp + 0x7e0]
xor rcx, rsp
call fcn.1400ab870
add rsp, 0x8f0
pop rbp
ret
call fcn.1400ab9d4
int3