Function at 0x1400983e0
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 - 0x200]
sub rsp, 0x300
movaps xmmword [rsp + 0x2f0], xmm6
mov rax, qword [0x1401b4a98]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rdi, r9
mov r13, r8
mov r15, rdx
mov qword [rsp + 0x38], rdx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov r11, qword [r8 + 0x10]
mov r10, r8
mov rbx, qword [r8 + 0x18]
cmp rbx, 8
jb 0x140098442
mov r10, qword [r8]
lea r12, str.CSIDL_PROGRAM_FILESX64
mov edx, 0x43
cmp r11, 0x16
jne 0x14009848f
mov r8, r11
mov rax, r12
movzx ecx, word [r10]
mov r9d, edx
cmp cx, dx
jb 0x14009848f
sub r10, r12
cmp cx, r9w
ja 0x14009848f
cmp r8, 1
je 0x140098570
dec r8
add rax, 2
movzx ecx, word [rax + r10]
movzx r9d, word [rax]
cmp cx, r9w
jae 0x14009846d
mov r9, r13
cmp rbx, 8
jb 0x14009849c
mov r9, qword [r13]
lea rbx, str.CSIDL_PROGRAM_FILES_COMMONX64
cmp r11, 0x1d
jne 0x1400984de
mov r8, r11
mov rax, rbx
movzx ecx, word [r9]
cmp cx, dx
jb 0x1400984de
sub r9, rbx
cmp cx, dx
ja 0x1400984de
cmp r8, 1
je 0x14009881d
dec r8
add rax, 2
movzx ecx, word [r9 + rax]
movzx edx, word [rax]
cmp cx, dx
jae 0x1400984be
mov rdx, qword [str.TEMP_DIR]
mov rcx, r13
call fcn.14000de40
test al, al
je 0x140098bde
mov qword [rsp + 0x38], r14
lea rax, [0x1401b5730]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x80]
call fcn.140099040
nop
mov r8d, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov rax, qword [reloc.OLEAUT32.dll_VariantInit]
cmp qword [rcx + 8], rax
jne 0x140098b1d
test r8d, r8d
jne 0x140098b1d
mov qword [r15], r14
mov qword [r15 + 0x10], r14
mov qword [r15 + 0x18], r14
mov rsi, qword [rbp - 0x70]
lea rdi, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdi, qword [rbp - 0x80]
cmp rsi, 8
jae 0x140098acc
movups xmm0, xmmword [rdi]
movups xmmword [r15], xmm0
lea ebx, [r8 + 7]
jmp 0x140098b07
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov ebx, 7
mov qword [rsp + 0x78], rbx
mov word [rsp + 0x60], r14w
test rdi, rdi
je 0x1400985c4
mov rdx, qword [str.plat]
lea rcx, [rbp - 0x80]
call fcn.140002f50
nop
mov r14d, 1
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.14007e0b0
test al, al
je 0x1400985c4
xor bl, bl
jmp 0x1400985c6
mov bl, 1
test r14b, 1
je 0x14009860c
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14009860c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140098607
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140098d93
call fcn.140074f80
test bl, bl
je 0x140098698
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:BT5141214d_e130_48fa_889d_d54b39cac869xmlupdater_srcXmlUpdaterDirSubstitution.cpp
lea ecx, [r9 - 0x37]
call fcn.14007d3e0
mov rdx, qword [0x1401b0568]
mov rcx, r15
call fcn.140002f50
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140098d1b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009868e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140098d87
call fcn.140074f80
jmp 0x140098d1b
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.1400fe8d0
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
setae r11b
mov r10, qword [rsp + 0x60]
cmovae r9, r10
mov ebx, 0x41
cmp qword [rsp + 0x70], 2
jne 0x14009870f
lea ecx, [rbx - 0x3f]
lea rax, [0x14014f444]
movzx r8d, word [r9]
mov edx, 0x36
cmp r8w, dx
jb 0x14009870f
sub r9, rax
cmp r8w, dx
ja 0x14009870f
cmp rcx, 1
je 0x140098789
dec rcx
add rax, 2
movzx r8d, word [rax + r9]
movzx edx, word [rax]
cmp r8w, dx
jae 0x1400986ee
lea r9, [rsp + 0x60]
test r11b, r11b
cmovne r9, r10
cmp qword [rsp + 0x70], 5
jne 0x140098760
mov ecx, 5
lea rax, str.ARM64
movzx edx, word [r9]
mov r8d, ebx
cmp dx, bx
jb 0x140098760
sub r9, rax
cmp dx, r8w
ja 0x140098760
cmp rcx, 1
je 0x140098789
dec rcx
add rax, 2
movzx edx, word [rax + r9]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x140098742
lea rcx, str.ProgramFiles
mov r8d, 0x104
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x103
ja 0x140098792
lea rdx, [rbp - 0x60]
jmp 0x140098644
lea rcx, str.ProgramW6432
jmp 0x140098767
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:BT5141214d_e130_48fa_889d_d54b39cac869xmlupdater_srcXmlUpdaterDirSubstitution.cpp
mov ecx, 1
call fcn.14007d3e0
mov rdx, qword [0x1401b0568]
mov rcx, r15
call fcn.140002f50
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140098d1b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009868e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140098d87
jmp 0x14009868e
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov ebx, 7
mov qword [rsp + 0x78], rbx
mov word [rsp + 0x60], r14w
test rdi, rdi
je 0x140098871
mov rdx, qword [str.plat]
lea rcx, [rbp - 0x80]
call fcn.140002f50
nop
mov r14d, 4
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.14007e0b0
test al, al
je 0x140098871
xor bl, bl
jmp 0x140098873
mov bl, 1
test r14b, 4
je 0x1400988b9
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400988b9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400988b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140098d99
call fcn.140074f80
test bl, bl
je 0x140098949
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:BT5141214d_e130_48fa_889d_d54b39cac869xmlupdater_srcXmlUpdaterDirSubstitution.cpp
lea ecx, [r9 - 0x4d]
call fcn.14007d3e0
mov rdx, qword [0x1401b0568]
mov rcx, r15
call fcn.140002f50
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140098d1b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009868e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140098d8d
call fcn.140074f80
jmp 0x140098d1b
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.1400fe8d0
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
setae r11b
mov r10, qword [rsp + 0x60]
cmovae r9, r10
cmp qword [rsp + 0x70], 2
jne 0x1400989bd
mov ecx, 2
lea rax, [0x14014f444]
movzx r8d, word [r9]
mov edx, 0x36
cmp r8w, dx
jb 0x1400989bd
sub r9, rax
cmp r8w, dx
ja 0x1400989bd
cmp rcx, 1
je 0x140098a36
dec rcx
add rax, 2
movzx r8d, word [rax + r9]
movzx edx, word [rax]
cmp r8w, dx
jae 0x14009899c
lea r8, [rsp + 0x60]
test r11b, r11b
cmovne r8, r10
cmp qword [rsp + 0x70], 5
jne 0x140098a0d
mov ecx, 5
lea rax, str.ARM64
movzx edx, word [r8]
mov ebx, 0x41
cmp dx, bx
jb 0x140098a0d
sub r8, rax
cmp dx, bx
ja 0x140098a0d
cmp rcx, 1
je 0x140098a36
dec rcx
add rax, 2
movzx edx, word [rax + r8]
movzx ebx, word [rax]
cmp dx, bx
jae 0x1400989f1
lea rcx, str.CommonProgramFiles
mov r8d, 0x104
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x103
ja 0x140098a3f
lea rdx, [rbp - 0x60]
jmp 0x1400988f1
lea rcx, str.CommonProgramW6432
jmp 0x140098a14
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:BT5141214d_e130_48fa_889d_d54b39cac869xmlupdater_srcXmlUpdaterDirSubstitution.cpp
lea ecx, [r9 - 0x56]
call fcn.14007d3e0
mov rdx, qword [0x1401b0568]
mov rcx, r15
call fcn.140002f50
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140098d1b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009868e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140098d8d
jmp 0x14009868e
mov rbx, rsi
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
mov rcx, r15
call fcn.14000ce60
mov qword [r15], rax
lea r8, [rsi*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.1400fe220
nop
mov qword [r15 + 0x10], rsi
mov qword [r15 + 0x18], rbx
lea rcx, [rbp - 0x80]
call fcn.14000cd60
jmp 0x140098d1b
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
mov rax, qword [rax + 0x10]
call qword [case.0x14000cca5.0]
nop
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rax, qword [rsp + 0x60]
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:BT5141214d_e130_48fa_889d_d54b39cac869xmlupdater_srcXmlUpdaterDirSubstitution.cpp
lea ecx, [r9 - 0x62]
call fcn.14007d3e0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140098bad
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140098ba8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140098d9f
call fcn.140074f80
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov rdx, qword [0x1401b0568]
mov rcx, r15
call fcn.140002f50
nop
lea rcx, [rbp - 0x80]
call fcn.14000cd60
jmp 0x140098d1b
mov ecx, dword [0x1401bf264]
mov rax, qword gs:[0x58]
mov edx, 0x10
mov rcx, qword [rax + rcx*8]
lea rsi, [0x1401be0d0]
mov eax, dword [rdx + rcx]
cmp dword [0x1401be0e0], eax
jg 0x140098da5
mov r8, r13
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14007d5f0
mov rbx, qword [rsp + 0x70]
cmp byte [rbx + 0x19], 0
jne 0x140098cd2
lea r8, [rbx + 0x20]
mov rdx, r13
mov rcx, rsi
call fcn.140018af0
test al, al
jne 0x140098cd2
cmp rbx, qword [0x1401be0d0]
je 0x140098cd2
mov qword [rsp + 0x58], r14
lea rcx, [rbx + 0x40]
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x140098c85
cmp qword [r13 + 0x18], 8
jb 0x140098c76
mov r13, qword [r13]
lea rax, str.Error_retrieving_directory__s
mov r9d, 0x81
jmp 0x140098cea
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.140002f50
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [r15 + 0x10], xmm1
movdqa xmm0, xmmword [0x1401862c0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r14w
lea rcx, [rsp + 0x60]
call fcn.14000cd60
jmp 0x140098d1b
cmp qword [r13 + 0x18], 8
jb 0x140098cdd
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:BT5141214d_e130_48fa_889d_d54b39cac869xmlupdater_srcXmlUpdaterDirSubstitution.cpp
mov ecx, 1
call fcn.14007d3e0
mov rdx, qword [0x1401b0568]
mov rcx, r15
call fcn.140002f50
mov rax, r15
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400fb890
mov rbx, qword [rsp + 0x340]
movaps xmm6, xmmword [rsp + 0x2f0]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r9, [0x1400983d0]
mov edx, 0x30
lea r8d, [rdx - 0x24]
lea rcx, [rbp - 0x60]
call fcn.1400fc0b8
lea rcx, [0x140149f30]
call fcn.1400fbdbc
nop
lea rcx, [0x1401be0e0]
call fcn.1400fb9d8
jmp 0x140098c0c
call fcn.140103230
int3
call fcn.140103230
nop
call fcn.140103230
nop
call fcn.140103230
nop
call fcn.140103230
nop
lea rcx, [0x1401be0e0]
call fcn.1400fba38
cmp dword [0x1401be0e0], 0xffffffff
jne 0x140098c0c
lea rdx, str.CSIDL_COMMON_APPDATA
lea rcx, [rbp - 0x60]
call fcn.140002f50
movups xmm0, xmmword [0x140175a28]
movaps xmmword [rbp - 0x40], xmm0
lea rdx, str.CSIDL_COMMON_DOCUMENTS
lea rcx, [rbp - 0x30]
call fcn.140002f50
movups xmm0, xmmword [0x140175c38]
movaps xmmword [rbp - 0x10], xmm0
lea rdx, str.CSIDL_COMMON_STARTUP
lea rcx, [rbp]
call fcn.140002f50
movups xmm0, xmmword [0x1401750a0]
movaps xmmword [rbp + 0x20], xmm0
lea rdx, str.CSIDL_PROGRAM_FILES
lea rcx, [rbp + 0x30]
call fcn.140002f50
movups xmm0, xmmword [0x140175e08]
movaps xmmword [rbp + 0x50], xmm0
lea rdx, str.CSIDL_PROGRAM_FILESX86
lea rcx, [rbp + 0x60]
call fcn.140002f50
movups xmm0, xmmword [0x140174ea0]
movaps xmmword [rbp + 0x80], xmm0
mov rdx, r12
lea rcx, [rbp + 0x90]
call fcn.140002f50
movups xmm0, xmmword [0x140175ec8]
movaps xmmword [rbp + 0xb0], xmm0
lea rdx, str.CSIDL_PROGRAM_FILES_COMMON
lea rcx, [rbp + 0xc0]
call fcn.140002f50
movups xmm0, xmmword [0x140174a78]
movaps xmmword [rbp + 0xe0], xmm0
lea rdx, str.CSIDL_PROGRAM_FILES_COMMONX86
lea rcx, [rbp + 0xf0]
call fcn.140002f50
movups xmm0, xmmword [0x140174ef0]
movaps xmmword [rbp + 0x110], xmm0
mov rdx, rbx
lea rcx, [rbp + 0x120]
call fcn.140002f50
movups xmm0, xmmword [0x140175510]
movaps xmmword [rbp + 0x140], xmm0
lea rdx, str.CSIDL_SYSTEM
lea rcx, [rbp + 0x150]
call fcn.140002f50
movups xmm0, xmmword [0x140175f38]
movaps xmmword [rbp + 0x170], xmm0
lea rdx, str.CSIDL_SYSTEMX86
lea rcx, [rbp + 0x180]
call fcn.140002f50
movups xmm0, xmmword [0x140175010]
movaps xmmword [rbp + 0x1a0], xmm0
lea rdx, str.CSIDL_WINDOWS
lea rcx, [rbp + 0x1b0]
call fcn.140002f50
movups xmm0, xmmword [0x140175338]
movaps xmmword [rbp + 0x1d0], xmm0
mov qword [0x1401be0d0], r14
mov qword [0x1401be0d8], r14
mov ecx, 0x50
call fcn.1400fbb48
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 [0x1401be0d0], rax
lea r12, [rbp - 0x60]
movabs rbx, 0x333333333333333
nop word [rax + rax]
mov r9, r12
mov r8, rax
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.1400980f0
movups xmm6, xmmword [rax]
movsd xmm0, qword [rax + 0x10]
movsd qword [rsp + 0x70], xmm0
cmp byte [rsp + 0x70], 0
jne 0x14009901b
cmp qword [0x1401be0d8], rbx
je 0x140099039
mov rdi, qword [0x1401be0d0]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
mov ecx, 0x50
call fcn.1400fbb48
mov rsi, rax
mov qword [rsp + 0x50], rax
mov rdx, r12
lea rcx, [rax + 0x20]
call fcn.14000cdc0
movups xmm0, xmmword [r12 + 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
movaps xmmword [rbp - 0x80], xmm6
mov r8, rsi
lea rdx, [rbp - 0x80]
lea rsi, [0x1401be0d0]
mov rcx, rsi
call fcn.1400187d0
movabs rbx, 0x333333333333333
add r12, 0x30
lea rax, [rbp + 0x1e0]
cmp r12, rax
je 0x140098d50
mov rax, qword [rsp + 0x38]
jmp 0x140098f70
call fcn.140012570
int3