Function at 0x14002d410
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x188
movaps xmmword [rsp + 0x170], xmm6
mov edi, r8d
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x1401b4040]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov rcx, qword [rcx]
movsx rax, byte [rcx + 0x17]
test rax, rax
jns 0x14002d457
mov rax, qword [rcx + 8]
test rax, rax
je 0x14002d4e9
mov rcx, qword [r14 + 8]
lea r8, str.single_profile
lea rbx, [rsp + 0x150]
mov rdx, rbx
call fcn.14002ea50
cmp byte [rbx + 1], 1
jne 0x14002d5e9
test byte [rsp + 0x150], 1
je 0x14002d5e9
mov rcx, qword [r14]
lea rax, str.profile
lea r8, [rsp + 0x78]
mov qword [r8], rax
mov qword [r8 + 8], 7
lea rdi, [rsp + 0x150]
mov rdx, rdi
call fcn.14009c7b0
lea rax, [0x140186df0]
lea r8, [rsp + 0x68]
mov qword [r8], rax
mov qword [r8 + 8], 4
mov rcx, rdi
mov rdx, rsi
call fcn.14009c7b0
mov rcx, rdi
call fcn.14009b8a0
jmp 0x14002d4f1
mov rcx, rsi
call fcn.14009b6f0
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1400c2d30
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x170]
add rsp, 0x188
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8b, byte [rsp + 0x167]
mov rcx, qword [rsp + 0x150]
mov rdx, qword [rsp + 0x158]
movzx eax, r8b
test r8b, r8b
cmovs rax, rdx
cmovs rdi, rcx
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], rax
test rax, rax
js 0x14002de6a
sete al
test rdi, rdi
setne cl
or cl, al
je 0x14002de7d
lea rcx, [rsp + 0x130]
lea r8, [rsp + 0x98]
mov rdx, rsi
call fcn.140049630
cmp byte [rsp + 0x167], 0
jns 0x14002d5a0
mov rcx, qword [rsp + 0x150]
call fcn.1400c22b8
cmp byte [rsp + 0x117], 0
jns 0x14002d5b7
mov rcx, qword [rsp + 0x100]
call fcn.1400c22b8
lea rcx, [rsp + 0x130]
call fcn.14009b8a0
cmp byte [rsp + 0x60], 1
jne 0x14002d4f1
cmp byte [rsp + 0x5f], 0
jns 0x14002d4f1
mov rcx, qword [rsp + 0x48]
call fcn.1400c22b8
jmp 0x14002d4f1
mov rcx, qword [r14 + 8]
lea r8, str.profile_path
lea r14, [rsp + 0x48]
mov rdx, r14
call fcn.14002eae0
cmp byte [r14 + 0x18], 1
jne 0x14002d8ac
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x160], r15
movsx rax, byte [rsp + 0x5f]
test rax, rax
cmovs rax, qword [rsp + 0x50]
movaps xmm6, xmmword [0x14017f960]
cmovs r14, qword [rsp + 0x48]
movaps xmmword [rsp + 0x150], xmm6
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], rax
test rax, rax
js 0x14002de6a
sete al
test r14, r14
setne cl
or cl, al
je 0x14002de7d
lea rdi, [rsp + 0x150]
lea rdx, [rsp + 0x98]
mov rcx, rdi
call fcn.140042f90
lea rbx, [rsp + 0x130]
mov qword [rbx + 0x10], r15
movaps xmmword [rbx], xmm6
lea rcx, str._USERNAME_
lea r14, [rsp + 0x120]
mov qword [r14], rcx
call fcn.1400e0590
mov qword [r14 + 8], rax
mov rcx, rbx
mov rdx, r14
call fcn.140042f90
movsx r8, byte [rbx + 0x17]
test r8, r8
jns 0x14002d6d3
mov r8, qword [rsp + 0x138]
mov rbx, qword [rsp + 0x130]
movsx rax, byte [rsp + 0x167]
test rax, rax
mov rcx, qword [rsp + 0x150]
mov r9, rdi
cmovs r9, rcx
test r8, r8
je 0x14002d7c7
test al, al
mov rdx, qword [rsp + 0x158]
mov r14, rax
cmovs r14, rdx
cmp r14, r8
jl 0x14002d748
lea r15, [r9 + r14*2]
movzx r11d, word [rbx]
lea rbp, [r9 + r14*2]
add rbp, 0xfffffffffffffffe
mov r12, r9
mov r13, r14
sub r13, r8
inc r13
je 0x14002d748
inc r14
xor r13d, r13d
cmp word [r12 + r13], r11w
je 0x14002d83b
add r13, 2
dec r14
cmp r8, r14
jne 0x14002d731
mov r8d, eax
test r8b, r8b
cmovs rax, rdx
cmovs rdi, rcx
mov qword [rsp + 0x100], rdi
mov qword [rsp + 0x108], rax
test rax, rax
js 0x14002de6a
sete al
test rdi, rdi
setne cl
or cl, al
je 0x14002de7d
lea rdx, [rsp + 0x100]
mov rcx, rsi
call fcn.14009b750
cmp byte [rsp + 0x147], 0
jns 0x14002d7a7
mov rcx, qword [rsp + 0x130]
call fcn.1400c22b8
cmp byte [rsp + 0x167], 0
jns 0x14002d5c4
mov rcx, qword [rsp + 0x150]
call fcn.1400c22b8
jmp 0x14002d5c4
xor r14d, r14d
xorps xmm0, xmm0
lea r15, [rsp + 0x100]
movaps xmmword [r15], xmm0
mov qword [r15 + 0x10], 0
mov rcx, r15
call fcn.14002dec0
mov ebx, eax
test al, al
jne 0x14002dd19
mov rcx, rsi
call fcn.14009b6f0
cmp byte [rsp + 0x117], 0
jns 0x14002d812
mov rcx, qword [rsp + 0x100]
call fcn.1400c22b8
test bl, bl
je 0x14002d790
mov r8b, byte [rsp + 0x167]
mov rcx, qword [rsp + 0x150]
mov rdx, qword [rsp + 0x158]
movzx eax, r8b
jmp 0x14002d74b
mov r14, r12
add r14, r13
je 0x14002d748
mov qword [rsp + 0x40], rbp
xor ebp, ebp
movzx r10d, word [r14 + rbp*2]
cmp r10w, word [rbx + rbp*2]
jne 0x14002d886
inc rbp
cmp r8, rbp
jne 0x14002d84e
cmp r14, r15
je 0x14002d748
sub r14, r9
mov r9, r14
mov r8d, eax
add r9, 2
je 0x14002d74b
sar r14, 1
jmp 0x14002d7ca
mov rbp, qword [rsp + 0x40]
mov r14, rbp
sub r14, r12
add r12, r13
add r12, 2
sub r14, r13
sar r14, 1
cmp r14, r8
jge 0x14002d720
jmp 0x14002d748
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x130]
mov qword [rcx + 0x10], r14
movaps xmm6, xmmword [0x14017f960]
movaps xmmword [rcx], xmm6
call fcn.14009b6f0
mov qword [rsp + 0x110], r14
movaps xmmword [rsp + 0x100], xmm6
lea rcx, str.APPDATA
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14002da5a
mov ebp, eax
mov r15d, eax
mov qword [rsp + 0x160], r14
movaps xmmword [rsp + 0x150], xmm6
cmp eax, 0xb
jae 0x14002de13
lea r14, [rsp + 0x150]
mov byte [r14 + 0x17], bpl
lea r8, [r15 + r15]
mov rcx, r14
xor edx, edx
call fcn.1400fa470
mov word [r14 + r15*2], 0
cmp byte [rsp + 0x167], 0
jns 0x14002d94c
mov rbx, qword [rsp + 0x150]
lea rcx, str.APPDATA
mov rdx, rbx
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14002da01
mov edx, eax
movsx rcx, byte [rsp + 0x167]
test rcx, rcx
mov rbx, qword [rsp + 0x158]
mov r8, rcx
cmovs r8, rbx
cmp r8, rdx
jbe 0x14002da01
mov r15, rdx
test cl, cl
jns 0x14002d9eb
sub r15, rbx
ja 0x14002dd6a
mov rcx, qword [rsp + 0x150]
mov qword [rsp + 0x158], rdx
lea rax, [rcx + rdx*2]
mov word [rax], 0
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x110], rax
movaps xmm0, xmmword [rsp + 0x150]
movaps xmmword [rsp + 0x100], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x150], xmm0
mov qword [rsp + 0x160], 0
jmp 0x14002da18
sub r15, rcx
ja 0x14002dd09
lea rcx, [rsp + 0x150]
mov byte [rcx + 0x17], al
jmp 0x14002d9a9
xorps xmm0, xmm0
movaps xmmword [rsp + 0x100], xmm0
mov qword [rsp + 0x110], 0
cmp byte [rsp + 0x167], 0
jns 0x14002da2f
mov rcx, qword [rsp + 0x150]
call fcn.1400c22b8
mov cl, byte [rsp + 0x117]
mov rdx, qword [rsp + 0x108]
test cl, cl
movzx eax, cl
cmovs rax, rdx
test rax, rax
je 0x14002da77
test cl, cl
js 0x14002da9a
lea rcx, [rsp + 0x100]
jmp 0x14002daa2
xorps xmm0, xmm0
movaps xmmword [rsp + 0x100], xmm0
mov qword [rsp + 0x110], 0
xor edx, edx
xor ecx, ecx
jmp 0x14002da3e
lea rdx, [rsp + 0x130]
mov ecx, 0x6f
call fcn.14003fba0
test al, al
jne 0x14002daf4
mov rcx, rsi
call fcn.14009b6f0
jmp 0x14002d5a0
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x128], rax
test rax, rax
js 0x14002de6a
test rcx, rcx
je 0x14002de7d
lea rbx, [rsp + 0x150]
lea rdx, [rsp + 0x120]
mov rcx, rbx
call fcn.14009b750
lea rcx, [rsp + 0x130]
mov rdx, rbx
call fcn.140047d70
mov rcx, rbx
call fcn.14009b8a0
mov ecx, 0x30
call fcn.1400c227c
mov qword [rsp + 0x150], rax
movabs rcx, 0x7fffffffffffffff
add rcx, 0x31
mov qword [rsp + 0x160], rcx
mov qword [rsp + 0x158], 0x2c
lea rcx, [rax + 0x2c]
lea rdx, str.CompanyName_ProductName_InternalStream
cmp rax, rdx
seta r8b
cmp rcx, rdx
setbe cl
or cl, r8b
je 0x14002dea3
movups xmm0, xmmword [0x140186e2c]
movups xmmword [rax + 0x1c], xmm0
movaps xmm0, xmmword [0x140186e20]
movups xmmword [rax + 0x10], xmm0
movaps xmm0, xmmword [str.CompanyName_ProductName_InternalStream]
movups xmmword [rax], xmm0
mov byte [rax + 0x2c], 0
call fcn.14002e780
mov qword [rsp + 0xf0], rax
test rax, rax
je 0x14002de90
mov rcx, rax
call fcn.1400e0590
lea r9, [rsp + 0xf0]
mov qword [r9 + 8], rax
lea rax, [0x140186e3d]
lea r8, [rsp + 0xe0]
mov qword [r8], rax
mov qword [r8 + 8], 0xd
lea rcx, [rsp + 0x150]
xor edx, edx
call fcn.140094d00
call fcn.14002e7b0
mov qword [rsp + 0xd0], rax
test rax, rax
je 0x14002de90
mov rcx, rax
call fcn.1400e0590
lea r9, [rsp + 0xd0]
mov qword [r9 + 8], rax
lea rax, [0x140186e4b]
lea r8, [rsp + 0xc0]
mov qword [r8], rax
mov qword [r8 + 8], 0xd
lea rcx, [rsp + 0x150]
xor edx, edx
call fcn.140094d00
lea rbx, [rsp + 0x98]
mov rcx, rbx
mov edx, edi
call fcn.14002ee40
movsx rax, byte [rbx + 0x17]
test rax, rax
jns 0x14002dc3f
mov rax, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x98]
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xb8], rax
test rax, rax
js 0x14002de6a
sete al
test rbx, rbx
setne cl
or cl, al
je 0x14002de7d
lea rax, str.InternalStream
lea r8, [rsp + 0x88]
mov qword [r8], rax
mov qword [r8 + 8], 0x10
lea rdi, [rsp + 0x150]
lea r9, [rsp + 0xb0]
mov rcx, rdi
xor edx, edx
call fcn.140094d00
cmp byte [rsp + 0xaf], 0
jns 0x14002dcb4
mov rcx, qword [rsp + 0x98]
call fcn.1400c22b8
movsx rax, byte [rsp + 0x167]
test rax, rax
mov rcx, qword [rsp + 0x150]
mov rdx, qword [rsp + 0x158]
mov r8, rdi
cmovs r8, rcx
mov r9, rax
cmovs r9, rdx
test r9, r9
je 0x14002dce7
xor eax, eax
jmp 0x14002dd00
mov r8d, eax
jmp 0x14002d53c
mov byte [r8 + rax], 0x5c
inc rax
cmp r9, rax
je 0x14002d520
cmp byte [r8 + rax], 0x2f
jne 0x14002dcf4
jmp 0x14002dcef
je 0x14002d9b2
mov edx, 0xa
mov rbx, rcx
jmp 0x14002dd87
movsx r8, byte [rsp + 0x147]
test r8, r8
jns 0x14002dd2f
mov r8, qword [rsp + 0x138]
movsx rax, byte [rsp + 0x117]
test rax, rax
cmovs rax, qword [rsp + 0x108]
cmovs r15, qword [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x150]
mov rdx, r14
mov r9, r15
call fcn.140114150
jmp 0x14002d7fb
je 0x14002d9b2
mov rcx, qword [rsp + 0x160]
mov rdx, rcx
btr rdx, 0x3f
dec rdx
shr rcx, 0x38
mov rax, rdx
sub rax, rbx
cmp rax, r15
jae 0x14002ddc3
mov r8, r15
sub r8, rdx
add r8, rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rbx
lea r14, [rsp + 0x150]
mov rcx, r14
mov r9, rbx
call fcn.140081e50
mov qword [r14 + 8], rbx
mov cl, byte [r14 + 0x17]
test cl, cl
jns 0x14002ddd1
mov r14, qword [rsp + 0x150]
jmp 0x14002ddd9
lea r14, [rsp + 0x150]
lea rcx, [r14 + rbx*2]
lea r8, [r15 + r15]
xor edx, edx
call fcn.1400fa470
add rbx, r15
cmp byte [rsp + 0x167], 0
jns 0x14002de06
mov qword [rsp + 0x158], rbx
lea rax, [r14 + rbx*2]
jmp 0x14002d9ad
mov eax, ebx
and al, 0x7f
mov byte [rsp + 0x167], al
jmp 0x14002ddfd
mov eax, r15d
and eax, 0xfffffffc
add rax, 4
mov r12, r15
or r12, 3
cmp r12, 0xb
cmove r12, rax
lea rcx, [r12*2 + 2]
call fcn.1400c227c
mov r14, rax
mov qword [rsp + 0x150], rax
movabs rax, 0x7fffffffffffffff
add rax, r12
add rax, 2
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x158], r15
jmp 0x14002d925
lea rcx, [0x140183d1d]
lea rdx, str....._third_partylibc_srcinclude_string_view:318:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
call fcn.1400fc0a0
lea rcx, [0x140183d1d]
lea rdx, str....._third_partylibc_srcinclude_string_view:320:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.1400fc0a0
lea rcx, [0x140183d1d]
lea rdx, str....._third_partylibc_srcinclude_string_view:268:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
call fcn.1400fc0a0
lea rcx, [0x140183d1d]
lea rdx, str....._third_partylibc_srcinclude__stringchar_traits.h:145:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
call fcn.1400fc0a0
int3