Function at 0x140014aa0
Capabilities:
Check if file exists
Create directory
Get file attributes
Query environment variable
Set current directory

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0xd20
lea rbp, [rsp + 0x40]
mov qword [rbp + 0xd10], rbx
mov qword [rbp + 0xd18], rsi
mov qword [rbp + 0xd28], rdi
mov rax, qword [0x14003f2f0]
xor rax, rbp
mov qword [rbp + 0xcd0], rax
xor edi, edi
mov rbx, r8
lea rcx, [rbp + 0x14]
lea r8d, [rdi + 0x7c]
xor edx, edx
mov dword [rbp + 0x10], edi
call fcn.1400166f0
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, pe_nt_image_headers64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
test eax, eax
jne 0x140014b27
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_raise_main_to_realtime___d__n
mov edx, eax
call fcn.14000adf0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, [rbp + 0xa8]
lea rcx, str.WizDebug
mov r8d, 4
mov r13d, eax
mov dword [rbp + 8], eax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rdx, [0x14002d8e4]
lea rcx, [rbp + 0xa8]
call fcn.140017124
mov ecx, dword [0x140040b50]
mov esi, 1
test eax, eax
lea r8d, [rsi + 3]
lea rdx, [rbp + 0xa0]
cmove ecx, esi
mov dword [0x140040b50], ecx
lea rcx, str.WizTimeLog
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rdx, [0x14002d8e4]
lea rcx, [rbp + 0xa0]
call fcn.140017124
mov ecx, dword [0x140040b54]
test eax, eax
cmove ecx, esi
mov dword [0x140040b54], ecx
xor ecx, ecx
call fcn.140018bac
cmp dword [0x140040b54], edi
mov r14, rdi
mov qword [rbp], rax
je 0x140014c38
lea rdx, [0x140032b60]
lea rcx, str.c:_system.savlogsWizTime.log
call fcn.1400180ec
movzx ecx, word [0x14002d8e4]
mov r15, rax
cmp cx, word [rbp + 0x10]
jne 0x140014c07
movzx ecx, word [0x14002d8e6]
cmp cx, word [rbp + 0x12]
jne 0x140014c07
lea rdx, str.PostUser1_n
mov rcx, rax
call fcn.140017c78
lea rcx, [rbp]
call fcn.140018bac
lea rcx, [rbp]
call fcn.140018858
mov rcx, rax
mov r14, rax
call fcn.140018504
lea rdx, str.WizMain_entry__hs
mov rcx, r15
mov r8, rax
call fcn.140017c78
jmp 0x140014c3f
mov r15, qword [rbp + 0xa0]
lea rdx, [0x140041b00]
mov r8d, 0x200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [0x140041b00]
mov edx, 0x5c
call fcn.140016d28
lea rdx, [0x140041b00]
lea rcx, [0x140041b00]
mov r8d, 0x200
mov word [rax + 2], di
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp dword [0x140040b54], edi
je 0x140014cba
lea rcx, [rbp]
call fcn.140018bac
lea rcx, [rbp]
call fcn.140018858
mov rcx, rax
mov r14, rax
call fcn.140018504
lea rdx, str.WizLongPath_done__hs
mov rcx, r15
mov r8, rax
call fcn.140017c78
mov rcx, rdi
lea r12, [0x140002000]
nop word [rax + rax]
movzx eax, word [rcx + r12 + 0x30c18]
lea rcx, [rcx + 2]
mov word [rbp + rcx + 0xace], ax
test ax, ax
jne 0x140014cd0
or rsi, 0xffffffffffffffff
test rbx, rbx
je 0x140014e09
mov rax, rsi
nop word [rax + rax]
inc rax
cmp byte [rbx + rax], dil
jne 0x140014d00
test rax, rax
je 0x140014e09
mov rdx, rsi
inc rdx
cmp byte [rbx + rdx], dil
jne 0x140014d15
inc edx
cmp edx, 0x3fffffff
jle 0x140014d2d
mov rbx, rdi
jmp 0x140014d6e
movsxd rax, edx
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140014d46
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140018cb0
sub rsp, rcx
mov r8d, edx
lea rcx, [rsp + 0x40]
mov r9d, 3
mov rdx, rbx
call fcn.140004c80
mov rbx, rax
mov edx, 0x5c
mov rcx, rbx
call fcn.140016d28
test rax, rax
je 0x140014de3
add rax, 2
lea r8, [rbp + 0xad0]
sub r8, rax
mov rdx, rax
nop word [rax + rax]
movzx ecx, word [rdx]
lea rdx, [rdx + 2]
mov word [r8 + rdx - 2], cx
test cx, cx
jne 0x140014da0
mov word [rax], di
lea rdi, [0x140041f00]
mov rcx, rdi
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x140014dd0
jmp 0x140014e2a
mov rcx, rdi
lea rdi, [0x140041f00]
nop dword [rax]
movzx eax, word [rcx + r12 + 0x30c40]
lea rcx, [rcx + 2]
mov word [rcx + rdi - 2], ax
test ax, ax
jne 0x140014df0
jmp 0x140014e2a
mov rcx, rdi
lea rdi, [0x140041f00]
movzx eax, word [rcx + r12 + 0x30c40]
lea rcx, [rcx + 2]
mov word [rcx + rdi - 2], ax
test ax, ax
jne 0x140014e13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [0x140040b54], 0
je 0x140014e6b
lea rcx, [rbp]
call fcn.140018bac
lea rcx, [rbp]
call fcn.140018858
mov rcx, rax
mov r14, rax
call fcn.140018504
lea rdx, str.WizSetCurrentDirectory_done__hs
mov rcx, r15
mov r8, rax
call fcn.140017c78
lea rbx, [0x140042300]
lea rdx, str._sLG.ini
mov r8, rdi
mov rcx, rbx
call fcn.140018028
lea r9, [rbp + 0xad0]
lea rdx, str._s_s
lea rcx, [0x140042700]
mov r8, rdi
call fcn.140018028
lea rcx, [0x140042700]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140014ec9
lea rdx, str._sWizInstaller.ini
lea rcx, [0x140042700]
mov r8, rdi
call fcn.140018028
lea r8, [0x140041b00]
lea rdx, str._sBTBEnv.ini
lea rcx, [0x140042b00]
call fcn.140018028
mov dword [rsp + 0x30], 1
lea r9, [rbp + 0x4d0]
lea r8, [0x14002ce18]
lea rdx, str.DetailLog
lea rcx, str.Default
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], pe_nt_image_headers64
call fcn.14000db60
mov dword [rsp + 0x30], 1
lea r9, [rbp + 0x8d0]
lea r8, [0x14002ce18]
lea rdx, str.InstallLog
lea rcx, str.Default
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], pe_nt_image_headers64
call fcn.14000db60
cmp dword [0x140040b54], 0
je 0x140014f87
lea rcx, [rbp]
call fcn.140018bac
lea rcx, [rbp]
call fcn.140018858
mov rcx, rax
mov r14, rax
call fcn.140018504
lea rdx, str.WizGetExpandPrivateProfileString_done__hs
mov rcx, r15
mov r8, rax
call fcn.140017c78
lea rcx, [rbp + 0x4d0]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140014f91
xor ebx, ebx
test rax, rax
je 0x14001505b
mov ecx, ebx
nop dword [rax + rax]
movzx eax, word [rbp + rcx + 0x4d0]
lea rcx, [rcx + 2]
mov word [rbp + rcx + 0x6ce], ax
test ax, ax
jne 0x140014fb0
mov edi, 0x5c
lea rcx, [rbp + 0x6d0]
mov edx, edi
call fcn.140016d28
test rax, rax
je 0x140014fe4
mov word [rax], bx
lea rdx, [0x14002ccd0]
lea rcx, [rbp + 0x6d0]
call fcn.140016fd4
test rax, rax
je 0x14001503a
nop dword [rax]
lea rcx, [rbp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140015021
lea rcx, [rbp + 0x6d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [0x14002ccd0]
xor ecx, ecx
call fcn.140016fd4
test rax, rax
je 0x14001503a
mov word [rax - 2], di
jmp 0x140015000
call fcn.140017b64
lea rdx, [0x140032d84]
lea rcx, [rbp + 0x4d0]
lea r8, [rax + 0x30]
call fcn.1400181d8
mov r12, rax
jmp 0x140015062
mov r12, qword [rbp + 0xa0]
cmp dword [0x140040b54], 0
je 0x14001509a
lea rcx, [rbp]
call fcn.140018bac
lea rcx, [rbp]
call fcn.140018858
mov rcx, rax
mov r14, rax
call fcn.140018504
lea rdx, str.Wiz_about_to_re_read_sys_vars__hs
mov rcx, r15
mov r8, rax
call fcn.140017c78
call fcn.14000e290
cmp dword [0x140040b54], 0
je 0x1400150d7
lea rcx, [rbp]
call fcn.140018bac
lea rcx, [rbp]
call fcn.140018858
mov rcx, rax
mov r14, rax
call fcn.140018504
lea rdx, str.Wiz_about_to_capture_BIOS_info__hs
mov rcx, r15
mov r8, rax
call fcn.140017c78
call fcn.14000f290
cmp dword [0x140040b54], 0
je 0x140015114
lea rcx, [rbp]
call fcn.140018bac
lea rcx, [rbp]
call fcn.140018858
mov rcx, rax
mov r14, rax
call fcn.140018504
lea rdx, str.Wiz_about_to_Set_Environment_Variables__hs
mov rcx, r15
mov r8, rax
call fcn.140017c78
call fcn.140011770
lea rcx, [rbp + 0xd4]
xor edx, edx
mov r8d, 0xfc
mov dword [rbp + 0xd0], ebx
call fcn.1400166f0
lea rcx, [rbp + 0x1d4]
xor edx, edx
mov r8d, 0xfc
mov dword [rbp + 0x1d0], ebx
call fcn.1400166f0
xor eax, eax
lea rcx, [rbp + 0x90]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
xor r9d, r9d
lea rax, [rbp + 0xd0]
lea r8, [rbp + 0x90]
lea edx, [r9 + 2]
mov ecx, 0x400
mov dword [rsp + 0x28], 0xff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDateFormatW]
lea rax, [rbp + 0x1d0]
lea r8, [rbp + 0x90]
xor r9d, r9d
xor edx, edx
mov ecx, 0x400
mov dword [rsp + 0x28], 0xff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetTimeFormatW]
cmp dword [0x140040b54], 0
je 0x1400151fa
lea rcx, [rbp]
call fcn.140018bac
lea rcx, [rbp]
call fcn.140018858
mov rcx, rax
mov r14, rax
call fcn.140018504
lea rdx, str.Wiz_about_to_Get_Info_from_CVA__hs
mov rcx, r15
mov r8, rax
call fcn.140017c78
call fcn.14000dc80
mov rcx, rsi
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140015202
test rcx, rcx
lea rdx, [0x140042700]
lea rcx, [0x140040b70]
je 0x140015248
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x1d0]
lea r9, [rbp + 0xd0]
mov qword [rsp + 0x20], rcx
lea rcx, str.Executing__s__s_on__s_at__s_for__s_n
mov r8, rax
call fcn.14000adf0
jmp 0x140015267
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x1d0]
lea r8, [rbp + 0xd0]
lea rcx, str.Executing_on__s_on__s_at__s_for__s_n
call fcn.14000adf0
cmp dword [0x140040b50], 0
je 0x140015298
lea rax, [0x14002f3b8]
lea r8, str.cmd.exe
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call fcn.14000b850
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rax, [rbp + 0x8d0]
mov rcx, rsi
nop dword [rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x1400152c0
test rcx, rcx
je 0x1400153a7
xor eax, eax
mov ecx, eax
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x8d0]
lea rcx, [rcx + 2]
mov word [rbp + rcx + 0x2ce], ax
test ax, ax
jne 0x1400152e0
lea rcx, [rbp + 0x2d0]
mov edx, 0x5c
call fcn.140016d28
test rax, rax
je 0x140015314
xor ecx, ecx
mov word [rax], cx
lea rdx, [0x14002ccd0]
lea rcx, [rbp + 0x2d0]
call fcn.140016fd4
test rax, rax
je 0x140015371
mov r13d, 0x5c
lea rcx, [rbp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140015353
lea rcx, [rbp + 0x2d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [0x14002ccd0]
xor ecx, ecx
call fcn.140016fd4
test rax, rax
je 0x14001536d
mov word [rax - 2], r13w
jmp 0x140015332
mov r13d, dword [rbp + 8]
mov ecx, dword [0x1400434f8]
lea rdx, [rbp + 0xb0]
mov r8d, 0xa
call fcn.1400176e8
lea r9, [rbp + 0x8d0]
lea rdx, str.ResultCode
lea rcx, str.ResponseResult
mov r8, rax
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
call fcn.140013410
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, [0x1400416e0]
sub eax, edi
sub edi, ebx
sub ebx, r13d
lea rcx, str._nWizinstaller_Instance_ID_t_:__s_nInit_t_:__u_nAction_t_:__u_nUninit_t_:__u_n
mov r8d, ebx
mov r9d, edi
mov dword [rsp + 0x20], eax
call fcn.14000adf0
lea rax, [rbp + 0x4d0]
nop dword [rax]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x1400153e0
test rsi, rsi
je 0x1400153f7
mov rcx, r12
call fcn.140018374
cmp dword [0x140040b54], 0
je 0x140015422
mov rcx, r14
call fcn.140018504
lea rdx, str.WizMain_exit__hs
mov rcx, r15
mov r8, rax
call fcn.140017c78
mov rcx, r15
call fcn.140018374
xor eax, eax
mov rcx, qword [rbp + 0xcd0]
xor rcx, rbp
call fcn.1400161c0
mov rbx, qword [rbp + 0xd10]
mov rsi, qword [rbp + 0xd18]
mov rdi, qword [rbp + 0xd28]
lea rsp, [rbp + 0xce0]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret