Function at 0x14002daa4
Capabilities:
Move file
Query environment variable
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1401750b8]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor r12d, r12d
lea rcx, [rsp + 0x30]
xorps xmm0, xmm0
mov dword [rsp + 0x48], r12d
mov edi, r12d
mov qword [rsp + 0x40], r12
movdqu xmmword [rsp + 0x30], xmm0
mov rbx, rdx
call fcn.140030d68
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x14002db11
mov rdx, rbx
mov rcx, rsi
call fcn.140059910
mov eax, 7
mov qword [rbp - 0x80], r12
add rsi, 0x20
mov qword [rbp - 0x78], rax
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x70], r12w
lea ecx, [rax - 3]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
call fcn.140064a20
test al, al
je 0x14002dea5
lea r15, str..._.._chrome_installer_setup_uninstall.cc
mov edx, 0x2a
mov rcx, r15
call fcn.140067ff0
mov r14d, 1
cmp eax, r14d
jl 0x14002dbb2
or r9d, 0xffffffff
lea rcx, [rbp - 0x50]
mov r8d, 0x135
mov rdx, r15
call fcn.1400681c0
lea rdx, str.Changing_current_directory_to:
lea rcx, [rax + 8]
call fcn.14002bcb4
cmp qword [rbp - 0x78], 8
lea rdx, [rsp + 0x70]
mov rcx, rax
cmovae rdx, qword [rsp + 0x70]
call fcn.140068e50
mov edi, r14d
test r14b, dil
je 0x14002dbc3
and edi, 0xfffffffe
lea rcx, [rbp - 0x50]
call fcn.140068220
cmp qword [rbp - 0x78], 8
lea rcx, [rsp + 0x70]
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x14002dc2d
cmp dword [0x14017c080], 2
jg 0x14002dc1b
or edi, 2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 2
lea rcx, [rbp - 0x50]
mov r8d, 0x137
mov dword [rsp + 0x20], eax
mov rdx, r15
call fcn.140068d00
lea rdx, str.Failed_to_change_the_current_directory.
lea rcx, [rax + 0x10]
call fcn.14002bcb4
test dil, 2
je 0x14002dc2d
and edi, 0xfffffffd
lea rcx, [rbp - 0x50]
call fcn.140068d80
mov rbx, qword [rsp + 0x30]
jmp 0x14002dd75
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14004f1b0
test al, al
je 0x14002de2c
mov edx, 0x2a
mov rcx, r15
call fcn.140067ff0
cmp eax, r14d
jl 0x14002dce4
lea rdx, [rbp - 0x70]
mov rcx, rbx
or edi, 0x30
call fcn.14005a840
or r9d, 0xffffffff
lea rdx, str..._.._chrome_installer_setup_uninstall.cc
mov r8d, 0x142
lea rcx, [rbp - 0x50]
mov r15, rax
call fcn.1400681c0
lea rdx, str.Attempting_to_move
lea rcx, [rax + 8]
call fcn.14002bcb4
cmp qword [r15 + 0x18], 8
jb 0x14002dcaa
mov r15, qword [r15]
mov rdx, r15
mov rcx, rax
call fcn.140068e50
lea rdx, str._to:
mov rcx, rax
call fcn.14002bcb4
cmp qword [rsp + 0x68], 8
lea rdx, [rsp + 0x50]
mov rcx, rax
cmovae rdx, qword [rsp + 0x50]
call fcn.140068e50
lea r15, str..._.._chrome_installer_setup_uninstall.cc
test dil, 0x20
je 0x14002dcf6
and edi, 0xffffffdf
lea rcx, [rbp - 0x50]
call fcn.140068220
test dil, 0x10
je 0x14002dd08
and edi, 0xffffffef
lea rcx, [rbp - 0x70]
call fcn.1400599c0
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14004bdb0
test al, al
je 0x14002dd83
cmp qword [rsp + 0x60], 0x104
jae 0x14002dd45
cmp qword [rsp + 0x68], 8
lea rcx, [rsp + 0x50]
cmovae rcx, qword [rsp + 0x50]
xor edx, edx
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14002dd71
mov r8d, 0x104
lea rdx, [rbp - 0x50]
lea rcx, str._SystemRoot_System32_rundll32.exe
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14002dd71
mov r8d, eax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x50]
call fcn.140037540
add rbx, 0x20
cmp rbx, rsi
jne 0x14002dc37
jmp 0x14002dea8
cmp dword [0x14017c080], 2
jg 0x14002de14
lea rdx, [rbp - 0x70]
mov rcx, rbx
or edi, 0xc0
call fcn.14005a840
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 2
lea rcx, [rbp - 0x50]
mov r8d, 0x145
mov dword [rsp + 0x20], eax
mov rdx, r15
call fcn.140068d00
lea rdx, str.Failed_to_move
lea rcx, [rax + 0x10]
call fcn.14002bcb4
cmp qword [rbx + 0x18], 8
jb 0x14002dde1
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.140068e50
lea rdx, str._to
mov rcx, rax
call fcn.14002bcb4
cmp qword [rsp + 0x68], 8
lea rdx, [rsp + 0x50]
mov rcx, rax
cmovae rdx, qword [rsp + 0x50]
call fcn.140068e50
test dil, dil
jns 0x14002de26
btr edi, 7
lea rcx, [rbp - 0x50]
call fcn.140068d80
test dil, 0x40
jmp 0x14002de9a
cmp dword [0x14017c080], 2
jg 0x14002de84
lea rdx, [rbp - 0x70]
mov rcx, rbx
or edi, 0xc
call fcn.14005a840
mov r9d, 2
lea rcx, [rbp - 0x50]
mov r8d, 0x13d
mov rdx, r15
mov rbx, rax
call fcn.1400681c0
lea rdx, str.Failed_to_create_temporary_file_for
lea rcx, [rax + 8]
call fcn.14002bcb4
cmp qword [rbx + 0x18], 8
jb 0x14002de79
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.140068e50
test dil, 8
je 0x14002de96
and edi, 0xfffffff7
lea rcx, [rbp - 0x50]
call fcn.140068220
test dil, 4
je 0x14002dea5
lea rcx, [rbp - 0x70]
call fcn.1400599c0
mov r14b, r12b
lea rcx, [rsp + 0x50]
call fcn.1400599c0
lea rcx, [rsp + 0x70]
call fcn.1400599c0
lea rcx, [rsp + 0x30]
call fcn.140030a14
mov al, r14b
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140111850
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret