Function at 0x1400053a0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor r12b, r12b
mov qword [rbp - 0x58], 0xf
mov qword [rbp - 0x60], 0
mov byte [rbp - 0x70], r12b
xor esi, esi
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r9
xor r8d, r8d
mov qword [rsp + 0x48], r8
xor eax, eax
xor ecx, ecx
cpuid
mov r13d, eax
mov dword [rbp - 0x7c], ebx
mov dword [rbp - 0x78], ecx
mov dword [rbp - 0x74], edx
xor edi, edi
movabs r10, 0xfffffffffffffff
test eax, eax
js 0x1400055d9
nop
mov eax, edi
xor ecx, ecx
cpuid
mov r12d, edx
mov r15d, ecx
mov r14d, eax
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x7c], ebx
mov dword [rbp - 0x78], ecx
mov dword [rbp - 0x74], edx
lea rax, [rbp - 0x80]
cmp rax, r9
jae 0x140005517
lea rax, [rbp - 0x80]
cmp rsi, rax
ja 0x140005517
lea rbx, [rbp - 0x80]
sub rbx, rsi
cmp r9, r8
jne 0x1400054e8
mov rax, r8
sub rax, r9
sar rax, 4
cmp rax, 1
jae 0x1400054e8
sub r9, rsi
sar r9, 4
mov rax, r10
sub rax, r9
cmp rax, 1
jb 0x1400055bc
inc r9
sub r8, rsi
sar r8, 4
mov rcx, r8
shr rcx, 1
mov rax, r10
sub rax, rcx
cmp rax, r8
jae 0x1400054b8
xor r8d, r8d
jmp 0x1400054bb
add r8, rcx
cmp r8, r9
cmovb r8, r9
mov rdx, r8
lea rcx, [rsp + 0x38]
call fcn.140015180
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
movabs r10, 0xfffffffffffffff
and rbx, 0xfffffffffffffff0
add rbx, rsi
test r9, r9
je 0x1400055a7
mov eax, dword [rbx]
mov dword [r9], eax
mov eax, dword [rbx + 4]
mov dword [r9 + 4], eax
mov eax, dword [rbx + 8]
mov dword [r9 + 8], eax
mov eax, dword [rbx + 0xc]
mov dword [r9 + 0xc], eax
jmp 0x1400055a7
cmp r9, r8
jne 0x140005593
mov rax, r8
sub rax, r9
sar rax, 4
cmp rax, 1
jae 0x140005593
sub r9, rsi
sar r9, 4
mov rax, r10
sub rax, r9
cmp rax, 1
jb 0x1400055c9
inc r9
sub r8, rsi
sar r8, 4
mov rcx, r8
shr rcx, 1
mov rax, r10
sub rax, rcx
cmp rax, r8
jae 0x140005563
xor r8d, r8d
jmp 0x140005566
add r8, rcx
cmp r8, r9
cmovb r8, r9
mov rdx, r8
lea rcx, [rsp + 0x38]
call fcn.140015180
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
movabs r10, 0xfffffffffffffff
test r9, r9
je 0x1400055a7
mov dword [r9], r14d
mov dword [r9 + 4], ebx
mov dword [r9 + 8], r15d
mov dword [r9 + 0xc], r12d
add r9, 0x10
mov qword [rsp + 0x40], r9
inc edi
cmp edi, r13d
jg 0x1400055d6
jmp 0x140005430
lea rcx, str.vector_T__too_long
call fcn.14001837c
int3
lea rcx, str.vector_T__too_long
call fcn.14001837c
int3
xor r12b, r12b
xor eax, eax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov eax, dword [rsi + 4]
mov dword [rbp - 0x30], eax
mov eax, dword [rsi + 0xc]
mov dword [rbp - 0x2c], eax
mov eax, dword [rsi + 8]
mov dword [rbp - 0x28], eax
or r13, 0xffffffffffffffff
cmp byte [rbp - 0x30], 0
jne 0x14000560c
xor r8d, r8d
jmp 0x14000561d
lea rax, [rbp - 0x30]
mov r8, r13
inc r8
cmp byte [rax + r8], 0
jne 0x140005613
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.140002c20
lea rcx, [rbp - 0x70]
mov rdi, qword [rbp - 0x70]
mov r14, qword [rbp - 0x58]
cmp r14, 0x10
cmovae rcx, rdi
mov r15d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov r8d, r15d
mov rbx, qword [rbp - 0x60]
cmp rbx, r15
cmovb r8, rbx
test r8, r8
jne 0x14000565b
xor eax, eax
jmp 0x140005667
lea rdx, str.GenuineIntel
call fcn.14001d8c0
cdqe
test rax, rax
jne 0x140005680
cmp rbx, r15
jae 0x140005678
mov eax, r13d
jmp 0x140005680
xor eax, eax
cmp rbx, r15
setne al
test eax, eax
jne 0x1400056a5
mov r12b, 1
lea rdx, str.Intel
lea rcx, str.CPUBrandName
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r14, qword [rbp - 0x58]
mov rdi, qword [rbp - 0x70]
jmp 0x140005710
lea rcx, [rbp - 0x70]
cmp r14, 0x10
cmovae rcx, rdi
cmp rbx, r15
cmovb r15, rbx
test r15, r15
jne 0x1400056c1
xor eax, eax
jmp 0x1400056d0
mov r8, r15
lea rdx, str.AuthenticAMD
call fcn.14001d8c0
cdqe
test rax, rax
jne 0x1400056eb
cmp rbx, 0xc
jae 0x1400056e2
mov eax, r13d
jmp 0x1400056eb
xor eax, eax
cmp rbx, 0xc
setne al
test eax, eax
jne 0x140005710
mov r15b, 1
lea rdx, [0x140048598]
lea rcx, str.CPUBrandName
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r14, qword [rbp - 0x58]
mov rdi, qword [rbp - 0x70]
jmp 0x140005713
xor r15b, r15b
lea rax, [rbp - 0x70]
cmp r14, 0x10
cmovae rax, rdi
mov rdi, r13
inc rdi
cmp byte [rax + rdi], 0
jne 0x140005722
inc rdi
mov qword [rsp + 0x70], 0
mov eax, 2
mul rdi
cmovo rax, r13
mov rcx, rax
call fcn.140017d00
mov rbx, rax
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae r9, qword [rbp - 0x70]
mov qword [rsp + 0x20], r13
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001b8b0
movzx r9d, r15b
movzx r8d, r12b
mov rdx, rbx
lea rcx, str._CPUInfo__CPUBrandName___s__isIntel__d__isAMD__d_n
call fcn.14000b8c0
mov qword [rbp - 0x38], 0xf
mov qword [rbp - 0x40], 0
mov byte [rbp - 0x50], 0
mov r14d, 0x80000000
mov eax, r14d
xor ecx, ecx
cpuid
mov r10d, eax
mov dword [rsp + 0x30], eax
mov dword [rbp - 0x7c], ebx
mov dword [rbp - 0x78], ecx
mov dword [rbp - 0x74], edx
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
xor edi, edi
mov qword [rsp + 0x50], rdi
xor r8d, r8d
mov qword [rsp + 0x58], r8
xor r9d, r9d
mov qword [rsp + 0x60], r9
cmp r10d, r14d
jl 0x1400059b6
nop dword [rax + rax]
mov eax, r14d
xor ecx, ecx
cpuid
mov r13d, edx
mov r12d, ecx
mov r15d, eax
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x7c], ebx
mov dword [rbp - 0x78], ecx
mov dword [rbp - 0x74], edx
lea rax, [rbp - 0x80]
cmp rax, r8
jae 0x1400058ed
lea rax, [rbp - 0x80]
cmp rdi, rax
ja 0x1400058ed
lea rbx, [rbp - 0x80]
sub rbx, rdi
cmp r8, r9
jne 0x1400058be
mov rax, r9
sub rax, r8
sar rax, 4
cmp rax, 1
jae 0x1400058be
sub r8, rdi
sar r8, 4
movabs rdx, 0xfffffffffffffff
mov rax, rdx
sub rax, r8
cmp rax, 1
jb 0x140005998
inc r8
sub r9, rdi
sar r9, 4
mov rcx, r9
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp rax, r9
jae 0x140005893
xor r9d, r9d
jmp 0x140005896
add r9, rcx
cmp r9, r8
cmovb r9, r8
mov rdx, r9
lea rcx, [rsp + 0x50]
call fcn.140015180
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov r10d, dword [rsp + 0x30]
and rbx, 0xfffffffffffffff0
add rbx, rdi
test r8, r8
je 0x140005982
mov eax, dword [rbx]
mov dword [r8], eax
mov eax, dword [rbx + 4]
mov dword [r8 + 4], eax
mov eax, dword [rbx + 8]
mov dword [r8 + 8], eax
mov eax, dword [rbx + 0xc]
mov dword [r8 + 0xc], eax
jmp 0x140005982
cmp r8, r9
jne 0x14000596e
mov rax, r9
sub rax, r8
sar rax, 4
cmp rax, 1
jae 0x14000596e
sub r8, rdi
sar r8, 4
movabs rdx, 0xfffffffffffffff
mov rax, rdx
sub rax, r8
cmp rax, 1
jb 0x1400059a5
inc r8
sub r9, rdi
sar r9, 4
mov rcx, r9
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp rax, r9
jae 0x140005943
xor r9d, r9d
jmp 0x140005946
add r9, rcx
cmp r9, r8
cmovb r9, r8
mov rdx, r9
lea rcx, [rsp + 0x50]
call fcn.140015180
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov r10d, dword [rsp + 0x30]
test r8, r8
je 0x140005982
mov dword [r8], r15d
mov dword [r8 + 4], ebx
mov dword [r8 + 8], r12d
mov dword [r8 + 0xc], r13d
add r8, 0x10
mov qword [rsp + 0x58], r8
inc r14d
cmp r14d, r10d
jg 0x1400059b2
jmp 0x140005800
lea rcx, str.vector_T__too_long
call fcn.14001837c
int3
lea rcx, str.vector_T__too_long
call fcn.14001837c
int3
or r13, 0xffffffffffffffff
cmp r10d, 0x80000001
jb 0x140005a79
movsxd r9, dword [rdi + 0x18]
mov dword [rsp + 0x30], 0
xor r8d, r8d
test r9, r9
je 0x140005a1e
cmp r8, 0x20
jae 0x140005a1e
test r9b, 1
je 0x140005a09
cmp r8, 0x20
jae 0x140005a11
mov rax, r8
shr rax, 5
lea rbx, [rsp + 0x30]
lea rbx, [rbx + rax*4]
movzx ecx, r8b
and cl, 0x1f
mov edx, 1
shl edx, cl
or dword [rbx], edx
inc r8
shr r9, 1
jmp 0x1400059d5
lea rcx, str.invalid_bitset_N__position
call fcn.1400183b4
int3
movsxd r9, dword [rdi + 0x1c]
mov dword [rsp + 0x30], 0
xor r8d, r8d
test r9, r9
je 0x140005a79
cmp r8, 0x20
jae 0x140005a79
test r9b, 1
je 0x140005a64
cmp r8, 0x20
jae 0x140005a6c
mov rax, r8
shr rax, 5
lea rbx, [rsp + 0x30]
lea rbx, [rbx + rax*4]
movzx ecx, r8b
and cl, 0x1f
mov edx, 1
shl edx, cl
or dword [rbx], edx
inc r8
shr r9, 1
jmp 0x140005a30
lea rcx, str.invalid_bitset_N__position
call fcn.1400183b4
int3
cmp r10d, 0x80000004
jb 0x140005ac7
movups xmm1, xmmword [rdi + 0x20]
movaps xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [rdi + 0x30]
movaps xmmword [rbp], xmm0
movups xmm0, xmmword [rdi + 0x40]
movaps xmmword [rbp + 0x10], xmm0
movq rax, xmm1
test al, al
jne 0x140005aa8
xor r8d, r8d
jmp 0x140005aba
lea rax, [rbp - 0x10]
mov r8, r13
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140005ab0
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x50]
call fcn.140002c20
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rcx, qword [rbp - 0x50]
mov r14, r13
nop dword [rax + rax]
inc r14
cmp byte [rcx + r14], 0
jne 0x140005ae0
inc r14
mov qword [rsp + 0x68], 0
mov eax, 2
mul r14
cmovo rax, r13
mov rcx, rax
call fcn.140017d00
mov rbx, rax
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae r9, qword [rbp - 0x50]
mov qword [rsp + 0x20], r13
mov r8, r14
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14001b8b0
mov rdx, rbx
lea rcx, str._CPUInfo__CPUFullName___s
call fcn.14000b8c0
mov rdx, rbx
lea rcx, str.CPUFullName
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
test rdi, rdi
je 0x140005b5e
mov rcx, rdi
call fcn.1400195a8
nop
cmp qword [rbp - 0x38], 0x10
jb 0x140005b6e
mov rcx, qword [rbp - 0x50]
call fcn.1400195a8
mov qword [rbp - 0x38], 0xf
mov qword [rbp - 0x40], 0
mov byte [rbp - 0x50], 0
mov rcx, rsi
call fcn.1400195a8
nop
cmp qword [rbp - 0x58], 0x10
jb 0x140005b9b
mov rcx, qword [rbp - 0x70]
call fcn.1400195a8
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14001a120
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret