Function at 0x1400db1a0
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rbx, r9
mov r13, r8
mov r12, rdx
mov qword [rsp + 0x38], rdx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov r11, qword [r8 + 0x10]
mov r10, r8
mov rdi, qword [r8 + 0x18]
cmp rdi, 8
jb 0x1400db1fa
mov r10, qword [r8]
lea r15, str.CSIDL_PROGRAM_FILESX64
mov edx, 0x43
cmp r11, 0x16
jne 0x1400db247
mov r8, r11
mov rax, r15
movzx ecx, word [r10]
mov r9d, edx
cmp cx, dx
jb 0x1400db247
sub r10, r15
cmp cx, r9w
ja 0x1400db247
cmp r8, 1
je 0x1400db30c
dec r8
add rax, 2
movzx ecx, word [r10 + rax]
movzx r9d, word [rax]
cmp cx, r9w
jae 0x1400db225
mov r9, r13
cmp rdi, 8
jb 0x1400db254
mov r9, qword [r13]
lea rdi, str.CSIDL_PROGRAM_FILES_COMMONX64
cmp r11, 0x1d
jne 0x1400db296
mov r8, r11
mov rax, rdi
movzx ecx, word [r9]
cmp cx, dx
jb 0x1400db296
sub r9, rdi
cmp cx, dx
ja 0x1400db296
cmp r8, 1
je 0x1400db5af
dec r8
add rax, 2
movzx ecx, word [r9 + rax]
movzx edx, word [rax]
cmp cx, dx
jae 0x1400db276
mov rdx, qword [str.TEMP_DIR]
mov rcx, r13
call fcn.140047fe0
test al, al
je 0x1400db911
mov dword [rsp + 0x38], r14d
lea rax, [0x14039fc90]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x68]
call fcn.1400dbd50
nop
mov r8d, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov rax, qword [0x14039fc98]
cmp qword [rcx + 8], rax
jne 0x1400db854
test r8d, r8d
jne 0x1400db854
lea rdx, [rbp - 0x68]
mov rcx, r12
call fcn.1400339b0
nop
lea rcx, [rbp - 0x68]
call fcn.140032f40
jmp 0x1400dba27
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r14w
test rbx, rbx
je 0x1400db35d
mov rdx, qword [str.plat]
lea rcx, [rbp - 0x68]
call fcn.140029120
nop
mov r14d, 1
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x68]
mov rcx, rbx
call fcn.1400c84c0
test al, al
je 0x1400db35d
xor bl, bl
jmp 0x1400db35f
mov bl, 1
test r14b, 1
je 0x1400db3a5
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x1400db3a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400db3a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400dba97
call fcn.14013afa0
test bl, bl
je 0x1400db430
lea rax, str.Unable_to_get_the_platform
mov qword [rsp + 0x20], rax
mov r9d, 0x38
lea r8, str.XMLUpdater::v2::CDirSubstitution::Substitute
lea rdx, str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterDirSubstitution.cpp
lea ecx, [r9 - 0x37]
call fcn.1400da630
mov rdx, qword [str._UNKNOWN]
mov rcx, r12
call fcn.140029120
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400dba27
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400db426
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400dba8b
call fcn.14013afa0
jmp 0x1400dba27
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.14013d7a0
lea r9, [rsp + 0x78]
mov r10, qword [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r9, r10
mov ebx, 0x41
cmp qword [rbp - 0x78], 2
jne 0x1400db4a1
lea ecx, [rbx - 0x3f]
lea rax, [0x1402eeba4]
movzx r8d, word [r9]
mov edx, 0x36
cmp r8w, dx
jb 0x1400db4a1
sub r9, rax
cmp r8w, dx
ja 0x1400db4a1
cmp rcx, 1
je 0x1400db51c
dec rcx
add rax, 2
movzx r8d, word [r9 + rax]
movzx edx, word [rax]
cmp r8w, dx
jae 0x1400db480
lea r9, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r9, r10
cmp qword [rbp - 0x78], 5
jne 0x1400db4f3
mov ecx, 5
lea rax, str.ARM64
movzx edx, word [r9]
mov r8d, ebx
cmp dx, bx
jb 0x1400db4f3
sub r9, rax
cmp dx, r8w
ja 0x1400db4f3
cmp rcx, 1
je 0x1400db51c
dec rcx
add rax, 2
movzx edx, word [rax + r9]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x1400db4d5
lea rcx, str.ProgramFiles
mov r8d, 0x104
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x103
ja 0x1400db525
lea rdx, [rbp - 0x40]
jmp 0x1400db3dd
lea rcx, str.ProgramW6432
jmp 0x1400db4fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rax, str.GetEnvironmentVariable_failed___d_
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, str.XMLUpdater::v2::CDirSubstitution::Substitute
lea rdx, str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterDirSubstitution.cpp
mov ecx, 1
call fcn.1400da630
mov rdx, qword [str._UNKNOWN]
mov rcx, r12
call fcn.140029120
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400dba27
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400db426
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400dba8b
jmp 0x1400db426
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r14w
test rbx, rbx
je 0x1400db600
mov rdx, qword [str.plat]
lea rcx, [rbp - 0x68]
call fcn.140029120
nop
mov r14d, 4
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x68]
mov rcx, rbx
call fcn.1400c84c0
test al, al
je 0x1400db600
xor bl, bl
jmp 0x1400db602
mov bl, 1
test r14b, 4
je 0x1400db648
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x1400db648
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400db643
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400dba9d
call fcn.14013afa0
test bl, bl
je 0x1400db6d7
lea rax, str.Unable_to_get_the_platform
mov qword [rsp + 0x20], rax
mov r9d, 0x4e
lea r8, str.XMLUpdater::v2::CDirSubstitution::Substitute
lea rdx, str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterDirSubstitution.cpp
lea ecx, [r9 - 0x4d]
call fcn.1400da630
mov rdx, qword [str._UNKNOWN]
mov rcx, r12
call fcn.140029120
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400dba27
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400db426
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400dba91
call fcn.14013afa0
jmp 0x1400dba27
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.14013d7a0
lea r9, [rsp + 0x78]
mov r10, qword [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r9, r10
cmp qword [rbp - 0x78], 2
jne 0x1400db745
mov ecx, 2
lea rax, [0x1402eeba4]
movzx r8d, word [r9]
mov edx, 0x36
cmp r8w, dx
jb 0x1400db745
sub r9, rax
cmp r8w, dx
ja 0x1400db745
cmp rcx, 1
je 0x1400db7bf
dec rcx
add rax, 2
movzx r8d, word [r9 + rax]
movzx edx, word [rax]
cmp r8w, dx
jae 0x1400db724
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r8, r10
cmp qword [rbp - 0x78], 5
jne 0x1400db796
mov ecx, 5
lea rax, str.ARM64
movzx edx, word [r8]
mov ebx, 0x41
cmp dx, bx
jb 0x1400db796
sub r8, rax
cmp dx, bx
ja 0x1400db796
cmp rcx, 1
je 0x1400db7bf
dec rcx
add rax, 2
movzx edx, word [r8 + rax]
movzx ebx, word [rax]
cmp dx, bx
jae 0x1400db77a
lea rcx, str.CommonProgramFiles
mov r8d, 0x104
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x103
ja 0x1400db7c8
lea rdx, [rbp - 0x40]
jmp 0x1400db680
lea rcx, str.CommonProgramW6432
jmp 0x1400db79d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rax, str.GetEnvironmentVariable_failed___d_
mov qword [rsp + 0x20], rax
mov r9d, 0x57
lea r8, str.XMLUpdater::v2::CDirSubstitution::Substitute
lea rdx, str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterDirSubstitution.cpp
lea ecx, [r9 - 0x56]
call fcn.1400da630
mov rdx, qword [str._UNKNOWN]
mov rcx, r12
call fcn.140029120
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400dba27
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400db426
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400dba91
jmp 0x1400db426
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
mov rax, qword [rax + 0x10]
call qword [case.0x1400c6d28.0]
nop
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, str.Unable_to_get_temp_directory_path._Error:__hs
mov qword [rsp + 0x20], rax
mov r9d, 0x63
lea r8, str.XMLUpdater::v2::CDirSubstitution::Substitute
lea rdx, str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterDirSubstitution.cpp
lea ecx, [r9 - 0x62]
call fcn.1400da630
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x1400db8e2
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400db8dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400dbaa3
call fcn.14013afa0
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], 0
mov rdx, qword [str._UNKNOWN]
mov rcx, r12
call fcn.140029120
nop
lea rcx, [rbp - 0x68]
call fcn.140032f40
jmp 0x1400dba27
mov ecx, dword [0x1403b1590]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
lea rsi, [0x1403b0910]
mov eax, dword [rdx + rcx]
cmp dword [0x1403b0920], eax
jg 0x1400dbaa9
mov r8, r13
lea rdx, [rbp - 0x68]
mov rcx, rsi
call fcn.14002a690
mov rbx, qword [rbp - 0x58]
cmp byte [rbx + 0x19], 0
jne 0x1400db9de
lea r8, [rbx + 0x20]
mov rdx, r13
mov rcx, rsi
call fcn.14002ab30
test al, al
jne 0x1400db9de
cmp rbx, qword [0x1403b0910]
je 0x1400db9de
mov qword [rsp + 0x70], r14
lea rcx, [rbx + 0x40]
lea r9, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x1400db9ae
cmp qword [r13 + 0x18], 8
jb 0x1400db99f
mov r13, qword [r13]
lea rax, str.Error_retrieving_directory__s
mov r9d, 0x81
jmp 0x1400db9f6
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x78]
call fcn.140029120
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [r12], xmm0
movups xmm1, xmmword [rbp - 0x78]
movups xmmword [r12 + 0x10], xmm1
jmp 0x1400dba27
cmp qword [r13 + 0x18], 8
jb 0x1400db9e9
mov r13, qword [r13]
lea rax, str.Unknown_folder_identifier:__s
mov r9d, 0x7a
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
lea r8, str.XMLUpdater::v2::CDirSubstitution::Substitute
lea rdx, str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterDirSubstitution.cpp
mov ecx, 1
call fcn.1400da630
mov rdx, qword [str._UNKNOWN]
mov rcx, r12
call fcn.140029120
mov rax, r12
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14013af80
mov rbx, qword [rsp + 0x350]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r9, [0x1400db190]
mov edx, 0x30
lea r8d, [rdx - 0x24]
lea rcx, [rbp - 0x40]
call fcn.14013b26c
lea rcx, [0x1402e5980]
call fcn.14013b254
nop
lea rcx, [0x1403b0920]
call fcn.14013b468
jmp 0x1400db93f
call fcn.1401421d8
int3
call fcn.1401421d8
nop
call fcn.1401421d8
nop
call fcn.1401421d8
nop
call fcn.1401421d8
nop
lea rcx, [0x1403b0920]
call fcn.14013b4c8
cmp dword [0x1403b0920], 0xffffffff
jne 0x1400db93f
lea rdx, str.CSIDL_COMMON_APPDATA
lea rcx, [rbp - 0x40]
call fcn.140029120
movups xmm0, xmmword [0x1402ecff0]
movaps xmmword [rbp - 0x20], xmm0
lea rdx, str.CSIDL_COMMON_DOCUMENTS
lea rcx, [rbp - 0x10]
call fcn.140029120
movups xmm0, xmmword [0x1402ed000]
movaps xmmword [rbp + 0x10], xmm0
lea rdx, str.CSIDL_COMMON_STARTUP
lea rcx, [rbp + 0x20]
call fcn.140029120
movups xmm0, xmmword [0x1402ecfe0]
movaps xmmword [rbp + 0x40], xmm0
lea rdx, str.CSIDL_PROGRAM_FILES
lea rcx, [rbp + 0x50]
call fcn.140029120
movups xmm0, xmmword [0x1402ed0c0]
movaps xmmword [rbp + 0x70], xmm0
lea rdx, str.CSIDL_PROGRAM_FILESX86
lea rcx, [rbp + 0x80]
call fcn.140029120
movups xmm0, xmmword [0x1402ed080]
movaps xmmword [rbp + 0xa0], xmm0
mov rdx, r15
lea rcx, [rbp + 0xb0]
call fcn.140029120
movups xmm0, xmmword [0x1402ed0a0]
movaps xmmword [rbp + 0xd0], xmm0
lea rdx, str.CSIDL_PROGRAM_FILES_COMMON
lea rcx, [rbp + 0xe0]
call fcn.140029120
movups xmm0, xmmword [0x1402ed0d0]
movaps xmmword [rbp + 0x100], xmm0
lea rdx, str.CSIDL_PROGRAM_FILES_COMMONX86
lea rcx, [rbp + 0x110]
call fcn.140029120
movups xmm0, xmmword [0x1402ed090]
movaps xmmword [rbp + 0x130], xmm0
mov rdx, rdi
lea rcx, [rbp + 0x140]
call fcn.140029120
movups xmm0, xmmword [0x1402ed0b0]
movaps xmmword [rbp + 0x160], xmm0
lea rdx, str.CSIDL_SYSTEM
lea rcx, [rbp + 0x170]
call fcn.140029120
movups xmm0, xmmword [0x1402ed040]
movaps xmmword [rbp + 0x190], xmm0
lea rdx, str.CSIDL_SYSTEMX86
lea rcx, [rbp + 0x1a0]
call fcn.140029120
movups xmm0, xmmword [0x1402ed050]
movaps xmmword [rbp + 0x1c0], xmm0
lea rdx, str.CSIDL_WINDOWS
lea rcx, [rbp + 0x1d0]
call fcn.140029120
movups xmm0, xmmword [0x1402ed060]
movaps xmmword [rbp + 0x1f0], xmm0
mov qword [0x1403b0910], r14
mov qword [0x1403b0918], r14
mov ecx, 0x50
call fcn.14013afa8
mov qword [rsp + 0x38], rax
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [0x1403b0910], rax
lea r15, [rbp - 0x40]
movabs rbx, 0x333333333333333
mov r9, r15
mov r8, rax
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.1400daeb0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp - 0x58], xmm0
cmp byte [rbp - 0x58], 0
jne 0x1400dbd26
cmp qword [0x1403b0918], rbx
je 0x1400dbd44
mov rdi, qword [0x1403b0910]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
mov ecx, 0x50
call fcn.14013afa8
mov rsi, rax
mov qword [rsp + 0x50], rax
mov rdx, r15
lea rcx, [rax + 0x20]
call fcn.1400339b0
movups xmm0, xmmword [r15 + 0x20]
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
mov word [rsi + 0x18], 0
mov qword [rsp + 0x50], r14
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x60], xmm0
mov r8, rsi
lea rdx, [rsp + 0x60]
lea rsi, [0x1403b0910]
mov rcx, rsi
call fcn.14002a080
movabs rbx, 0x333333333333333
add r15, 0x30
lea rax, [rbp + 0x200]
cmp r15, rax
je 0x1400dba54
mov rax, qword [rsp + 0x38]
jmp 0x1400dbc71
call fcn.140027560
int3