Function at 0x140005230
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rcx
mov qword [rbp - 0x31], rcx
xor ebx, ebx
mov dword [rbp - 0x39], ebx
lea rcx, str.USERPROFILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
test rax, rax
je 0x1400052bd
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x140005296
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.140006b80
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rbp + 7], xmm0
movups xmm1, xmmword [rbp - 9]
movups xmmword [rbp + 0x17], xmm1
jmp 0x1400052dc
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rbx
mov qword [rbp + 0x1f], rbx
xor r8d, r8d
lea rdx, [0x14000a5ff]
lea rcx, [rbp + 7]
call fcn.140006b80
mov dword [rbp - 0x39], 2
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
mov r15, qword [rbp + 0x17]
sub rax, r15
cmp rax, 0xe
jb 0x14000554f
lea rax, [rbp + 7]
mov r14, qword [rbp + 7]
mov r13, qword [rbp + 0x1f]
cmp r13, 0xf
cmova rax, r14
mov qword [rbp - 0x29], rax
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
lea r12, [r15 + 0xe]
mov ebx, 0xf
mov rsi, rdi
cmp r12, rbx
jbe 0x1400053bf
mov rbx, r12
or rbx, 0xf
cmp rbx, rcx
jbe 0x140005378
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140008ab8
test rax, rax
je 0x1400053a0
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
mov rax, qword [rbp - 0x29]
jmp 0x1400053bc
mov ecx, 0x16
cmp rbx, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x1400053a7
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140005549
jmp 0x140005359
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400053ba
call fcn.140008ab8
mov rsi, rax
mov rax, qword [rbp - 0x29]
jmp 0x1400053bc
xor esi, esi
mov qword [rdi], rsi
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], rbx
mov r8, r15
mov rdx, rax
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str.chromeupdater]
movsd qword [r15 + rsi], xmm0
mov eax, dword [0x14000a6e0]
mov dword [r15 + rsi + 8], eax
movzx eax, word [0x14000a6e4]
mov word [r15 + rsi + 0xc], ax
mov byte [rsi + r12], 0
mov dword [rbp - 0x39], 7
mov rsi, qword [rdi + 0x10]
mov rbx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140005418
mov rbx, qword [rdi]
call fcn.140007c10
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], rsi
lea r8, [rbp - 0x29]
mov edx, eax
lea rcx, [rbp - 0x19]
call fcn.140001a50
mov dword [rbp - 0x39], 0x1f
xor eax, eax
mov qword [rbp - 0x29], rax
lea rax, [0x14000e0b8]
mov qword [rbp - 0x21], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.140003990
cmp dword [rbp - 0x29], 0
jne 0x140005534
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x1400054a6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400054a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400054a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008ab0
lea rdx, str._DIRECTORY__Directory_has_been_created
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006040
lea rdx, [0x140006210]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
cmp r13, 0xf
jbe 0x140005504
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400054fc
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400054fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140008ab0
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140008a90
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x29]
lea rcx, str.create_directories
call fcn.140002b30
nop
call fcn.140001130
int3
call fcn.1400011d0
int3