Function at 0x1400dee40
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 [0x14035dc30]
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 0x1400dee9a
mov r10, qword [r8]
lea r15, str.CSIDL_PROGRAM_FILESX64
mov edx, 0x43
cmp r11, 0x16
jne 0x1400deee7
mov r8, r11
mov rax, r15
movzx ecx, word [r10]
mov r9d, edx
cmp cx, dx
jb 0x1400deee7
sub r10, r15
cmp cx, r9w
ja 0x1400deee7
cmp r8, 1
je 0x1400defac
dec r8
add rax, 2
movzx ecx, word [r10 + rax]
movzx r9d, word [rax]
cmp cx, r9w
jae 0x1400deec5
mov r9, r13
cmp rdi, 8
jb 0x1400deef4
mov r9, qword [r13]
lea rdi, str.CSIDL_PROGRAM_FILES_COMMONX64
cmp r11, 0x1d
jne 0x1400def36
mov r8, r11
mov rax, rdi
movzx ecx, word [r9]
cmp cx, dx
jb 0x1400def36
sub r9, rdi
cmp cx, dx
ja 0x1400def36
cmp r8, 1
je 0x1400df24f
dec r8
add rax, 2
movzx ecx, word [r9 + rax]
movzx edx, word [rax]
cmp cx, dx
jae 0x1400def16
mov rdx, qword [str._i__]
mov rcx, r13
call fcn.140032810
test al, al
je 0x1400df5b1
mov dword [rsp + 0x38], r14d
lea rax, [0x14035e9f0]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x68]
call fcn.1400df9f0
nop
mov r8d, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov rax, qword [reloc.WS2_32.dll_getsockopt]
cmp qword [rcx + 8], rax
jne 0x1400df4f4
test r8d, r8d
jne 0x1400df4f4
lea rdx, [rbp - 0x68]
mov rcx, r12
call fcn.1400322c0
nop
lea rcx, [rbp - 0x68]
call fcn.140025d90
jmp 0x1400df6c7
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r14w
test rbx, rbx
je 0x1400deffd
mov rdx, qword [str.plat]
lea rcx, [rbp - 0x68]
call fcn.140025da0
nop
mov r14d, 1
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x68]
mov rcx, rbx
call fcn.1400c0a10
test al, al
je 0x1400deffd
xor bl, bl
jmp 0x1400defff
mov bl, 1
test r14b, 1
je 0x1400df045
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x1400df045
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400df040
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400df737
call fcn.140269844
test bl, bl
je 0x1400df0d0
lea rax, str.Unable_to_get_the_platform
mov qword [rsp + 0x20], rax
mov r9d, reloc.WS2_32.dll_getservbyport
lea r8, str.XMLUpdater::v2::CDirSubstitution::Substitute
lea rdx, str.E:BT42dac55d_4355_4669_9ab8_31cc00ddc957WebAdvisor_XmlUpdater_srcXmlUpdaterDirSubstitution.cpp
lea ecx, [r9 - 0x37]
call fcn.1400bfe30
mov rdx, qword [str._UNKNOWN]
mov rcx, r12
call fcn.140025da0
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400df6c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400df0c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400df72b
call fcn.140269844
jmp 0x1400df6c7
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.14026c200
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 0x1400df141
lea ecx, [rbx - 0x3f]
lea rax, [0x1402c1d64]
movzx r8d, word [r9]
mov edx, reloc.WS2_32.dll_getprotobynumber
cmp r8w, dx
jb 0x1400df141
sub r9, rax
cmp r8w, dx
ja 0x1400df141
cmp rcx, 1
je 0x1400df1bc
dec rcx
add rax, 2
movzx r8d, word [r9 + rax]
movzx edx, word [rax]
cmp r8w, dx
jae 0x1400df120
lea r9, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r9, r10
cmp qword [rbp - 0x78], 5
jne 0x1400df193
mov ecx, 5
lea rax, str.ARM64
movzx edx, word [r9]
mov r8d, ebx
cmp dx, bx
jb 0x1400df193
sub r9, rax
cmp dx, r8w
ja 0x1400df193
cmp rcx, 1
je 0x1400df1bc
dec rcx
add rax, 2
movzx edx, word [rax + r9]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x1400df175
lea rcx, str.ProgramFiles
mov r8d, 0x104
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x103
ja 0x1400df1c5
lea rdx, [rbp - 0x40]
jmp 0x1400df07d
lea rcx, str.ProgramW6432
jmp 0x1400df19a
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:BT42dac55d_4355_4669_9ab8_31cc00ddc957WebAdvisor_XmlUpdater_srcXmlUpdaterDirSubstitution.cpp
mov ecx, 1
call fcn.1400bfe30
mov rdx, qword [str._UNKNOWN]
mov rcx, r12
call fcn.140025da0
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400df6c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400df0c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400df72b
jmp 0x1400df0c6
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r14w
test rbx, rbx
je 0x1400df2a0
mov rdx, qword [str.plat]
lea rcx, [rbp - 0x68]
call fcn.140025da0
nop
mov r14d, 4
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x68]
mov rcx, rbx
call fcn.1400c0a10
test al, al
je 0x1400df2a0
xor bl, bl
jmp 0x1400df2a2
mov bl, 1
test r14b, 4
je 0x1400df2e8
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x1400df2e8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400df2e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400df73d
call fcn.140269844
test bl, bl
je 0x1400df377
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:BT42dac55d_4355_4669_9ab8_31cc00ddc957WebAdvisor_XmlUpdater_srcXmlUpdaterDirSubstitution.cpp
lea ecx, [r9 - 0x4d]
call fcn.1400bfe30
mov rdx, qword [str._UNKNOWN]
mov rcx, r12
call fcn.140025da0
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400df6c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400df0c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400df731
call fcn.140269844
jmp 0x1400df6c7
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.14026c200
lea r9, [rsp + 0x78]
mov r10, qword [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r9, r10
cmp qword [rbp - 0x78], 2
jne 0x1400df3e5
mov ecx, 2
lea rax, [0x1402c1d64]
movzx r8d, word [r9]
mov edx, reloc.WS2_32.dll_getprotobynumber
cmp r8w, dx
jb 0x1400df3e5
sub r9, rax
cmp r8w, dx
ja 0x1400df3e5
cmp rcx, 1
je 0x1400df45f
dec rcx
add rax, 2
movzx r8d, word [r9 + rax]
movzx edx, word [rax]
cmp r8w, dx
jae 0x1400df3c4
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r8, r10
cmp qword [rbp - 0x78], 5
jne 0x1400df436
mov ecx, 5
lea rax, str.ARM64
movzx edx, word [r8]
mov ebx, 0x41
cmp dx, bx
jb 0x1400df436
sub r8, rax
cmp dx, bx
ja 0x1400df436
cmp rcx, 1
je 0x1400df45f
dec rcx
add rax, 2
movzx edx, word [r8 + rax]
movzx ebx, word [rax]
cmp dx, bx
jae 0x1400df41a
lea rcx, str.CommonProgramFiles
mov r8d, 0x104
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x103
ja 0x1400df468
lea rdx, [rbp - 0x40]
jmp 0x1400df320
lea rcx, str.CommonProgramW6432
jmp 0x1400df43d
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:BT42dac55d_4355_4669_9ab8_31cc00ddc957WebAdvisor_XmlUpdater_srcXmlUpdaterDirSubstitution.cpp
lea ecx, [r9 - 0x56]
call fcn.1400bfe30
mov rdx, qword [str._UNKNOWN]
mov rcx, r12
call fcn.140025da0
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400df6c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400df0c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400df731
jmp 0x1400df0c6
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
mov rax, qword [rax + 0x10]
call qword [case.0x1400ac8a1.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:BT42dac55d_4355_4669_9ab8_31cc00ddc957WebAdvisor_XmlUpdater_srcXmlUpdaterDirSubstitution.cpp
lea ecx, [r9 - 0x62]
call fcn.1400bfe30
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x1400df582
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400df57d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400df743
call fcn.140269844
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], select
mov byte [rsp + 0x78], 0
mov rdx, qword [str._UNKNOWN]
mov rcx, r12
call fcn.140025da0
nop
lea rcx, [rbp - 0x68]
call fcn.140025d90
jmp 0x1400df6c7
mov ecx, dword [0x14036e7c0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
lea rsi, [0x14036c7c8]
mov eax, dword [rdx + rcx]
cmp dword [0x14036c7d8], eax
jg 0x1400df749
mov r8, r13
lea rdx, [rbp - 0x68]
mov rcx, rsi
call fcn.1400b8cc0
mov rbx, qword [rbp - 0x58]
cmp byte [rbx + 0x19], 0
jne 0x1400df67e
lea r8, [rbx + 0x20]
mov rdx, r13
mov rcx, rsi
call fcn.140040140
test al, al
jne 0x1400df67e
cmp rbx, qword [0x14036c7c8]
je 0x1400df67e
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 0x1400df64e
cmp qword [r13 + 0x18], 8
jb 0x1400df63f
mov r13, qword [r13]
lea rax, str.Error_retrieving_directory__s
mov r9d, 0x81
jmp 0x1400df696
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x78]
call fcn.140025da0
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 0x1400df6c7
cmp qword [r13 + 0x18], 8
jb 0x1400df689
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:BT42dac55d_4355_4669_9ab8_31cc00ddc957WebAdvisor_XmlUpdater_srcXmlUpdaterDirSubstitution.cpp
mov ecx, 1
call fcn.1400bfe30
mov rdx, qword [str._UNKNOWN]
mov rcx, r12
call fcn.140025da0
mov rax, r12
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140269300
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, [0x1400dee30]
mov edx, 0x30
lea r8d, [rdx - 0x24]
lea rcx, [rbp - 0x40]
call fcn.140269ec0
lea rcx, [0x1402b7970]
call fcn.14026982c
nop
lea rcx, [0x14036c7d8]
call fcn.140269448
jmp 0x1400df5df
call fcn.140277ff8
int3
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
lea rcx, [0x14036c7d8]
call fcn.1402694a8
cmp dword [0x14036c7d8], 0xffffffff
jne 0x1400df5df
lea rdx, str.CSIDL_COMMON_APPDATA
lea rcx, [rbp - 0x40]
call fcn.140025da0
movups xmm0, xmmword [0x1402bd7a8]
movaps xmmword [rbp - 0x20], xmm0
lea rdx, str.CSIDL_COMMON_DOCUMENTS
lea rcx, [rbp - 0x10]
call fcn.140025da0
movups xmm0, xmmword [0x1402bd7b8]
movaps xmmword [rbp + 0x10], xmm0
lea rdx, str.CSIDL_COMMON_STARTUP
lea rcx, [rbp + 0x20]
call fcn.140025da0
movups xmm0, xmmword [0x1402bd798]
movaps xmmword [rbp + 0x40], xmm0
lea rdx, str.CSIDL_PROGRAM_FILES
lea rcx, [rbp + 0x50]
call fcn.140025da0
movups xmm0, xmmword [0x1402bd878]
movaps xmmword [rbp + 0x70], xmm0
lea rdx, str.CSIDL_PROGRAM_FILESX86
lea rcx, [rbp + 0x80]
call fcn.140025da0
movups xmm0, xmmword [0x1402bd838]
movaps xmmword [rbp + 0xa0], xmm0
mov rdx, r15
lea rcx, [rbp + 0xb0]
call fcn.140025da0
movups xmm0, xmmword [0x1402bd858]
movaps xmmword [rbp + 0xd0], xmm0
lea rdx, str.CSIDL_PROGRAM_FILES_COMMON
lea rcx, [rbp + 0xe0]
call fcn.140025da0
movups xmm0, xmmword [0x1402bd888]
movaps xmmword [rbp + 0x100], xmm0
lea rdx, str.CSIDL_PROGRAM_FILES_COMMONX86
lea rcx, [rbp + 0x110]
call fcn.140025da0
movups xmm0, xmmword [0x1402bd848]
movaps xmmword [rbp + 0x130], xmm0
mov rdx, rdi
lea rcx, [rbp + 0x140]
call fcn.140025da0
movups xmm0, xmmword [0x1402bd868]
movaps xmmword [rbp + 0x160], xmm0
lea rdx, str.CSIDL_SYSTEM
lea rcx, [rbp + 0x170]
call fcn.140025da0
movups xmm0, xmmword [0x1402bd7f8]
movaps xmmword [rbp + 0x190], xmm0
lea rdx, str.CSIDL_SYSTEMX86
lea rcx, [rbp + 0x1a0]
call fcn.140025da0
movups xmm0, xmmword [0x1402bd808]
movaps xmmword [rbp + 0x1c0], xmm0
lea rdx, str.CSIDL_WINDOWS
lea rcx, [rbp + 0x1d0]
call fcn.140025da0
movups xmm0, xmmword [0x1402bd818]
movaps xmmword [rbp + 0x1f0], xmm0
mov qword [0x14036c7c8], r14
mov qword [0x14036c7d0], r14
mov ecx, 0x50
call fcn.1402695b8
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 [0x14036c7c8], rax
lea r15, [rbp - 0x40]
movabs rbx, 0x333333333333333
mov r9, r15
mov r8, rax
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.1400deb50
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 0x1400df9c6
cmp qword [0x14036c7d0], rbx
je 0x1400df9e4
mov rdi, qword [0x14036c7c8]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
mov ecx, 0x50
call fcn.1402695b8
mov rsi, rax
mov qword [rsp + 0x50], rax
mov rdx, r15
lea rcx, [rax + 0x20]
call fcn.1400322c0
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, [0x14036c7c8]
mov rcx, rsi
call fcn.14003fec0
movabs rbx, 0x333333333333333
add r15, 0x30
lea rax, [rbp + 0x200]
cmp r15, rax
je 0x1400df6f4
mov rax, qword [rsp + 0x38]
jmp 0x1400df911
call fcn.140034520
int3