Function at 0x14008f928
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r14, r8
mov ebx, edx
mov rdi, rcx
mov r13d, 1
mov edx, r13d
mov rcx, qword [0x14021c740]
call fcn.140087888
xor r12d, r12d
test eax, eax
je 0x14008f982
mov rcx, qword [0x14021c5d8]
call fcn.140011ec4
mov rcx, qword [0x14021cd28]
test rcx, rcx
je 0x14008f995
xor edx, edx
call fcn.140068504
lea rdx, [rbp - 0x80]
mov rcx, qword [0x14021c740]
call fcn.14007d858
mov rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x70]
call fcn.1401245b8
nop
lea rdx, [0x14015a140]
lea rcx, [rsp + 0x70]
call fcn.140121ccc
mov rdx, rax
lea rcx, str.ConEmuCfgDir
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [0x14021c5e0]
test rax, rax
je 0x14008f9e6
test bl, 8
je 0x14008fa55
mov rax, qword [0x14021c740]
mov ecx, dword [rax + 0x111e0]
mov rax, qword [0x14021c5d8]
mov dword [rax + 0x468], ecx
mov rax, qword [0x14021c740]
mov ecx, dword [rax + 0x111e4]
mov rax, qword [0x14021c5d8]
mov dword [rax + 0x46c], ecx
mov rax, qword [0x14021c740]
mov ecx, dword [rax + 0x111a4]
mov rax, qword [0x14021c5d8]
mov dword [rax + 0x430], ecx
mov rax, qword [0x14021c740]
mov ecx, dword [rax + 0x111c0]
mov rax, qword [0x14021c5d8]
mov dword [rax + 0x44c], ecx
mov rax, qword [0x14021c5e0]
test rax, rax
jne 0x14008fabe
mov rcx, qword [0x14021c5d8]
add rcx, 0x260
lea rdx, [rsp + 0x50]
call fcn.140037034
movsd xmm0, qword [rax]
movsd qword [rdi + 0x12188], xmm0
mov eax, dword [rax + 8]
mov dword [rdi + 0x12190], eax
lea rcx, [rsp + 0x50]
call fcn.140003df4
mov r9d, dword [rdi + 0x12188]
mov r8d, dword [rdi + 0x1218c]
lea rdx, str.DPI_initialized_to__i__i_r_n
lea rcx, [rbp - 0x60]
call fcn.14000d08c
xor r8d, r8d
mov dl, r13b
lea rcx, [rbp - 0x60]
call fcn.14002b004
mov rcx, qword [0x14021c740]
add rcx, 0x1a
mov dl, r13b
call fcn.14012b748
test bl, 2
je 0x14008fbee
mov rcx, qword [0x14021c5d8]
call fcn.1400140ac
mov r15, rax
mov rsi, qword [0x14021c748]
lea rcx, [rsp + 0x50]
call fcn.140120d54
nop
xor edx, edx
mov ecx, r13d
call fcn.140068cf4
add rsi, 0x11958
je 0x14008fb42
cmp word [rsi], r12w
je 0x14008fb42
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
lea rcx, [0x140167e00]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rsi
lea rcx, [0x140167f58]
mov qword [rsp + 0x20], rcx
jmp 0x14008fb60
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9, rax
lea r8, [0x140168a9c]
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.140120be0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140120e10
lea rcx, [rsp + 0x60]
call fcn.140120ddc
lea rcx, [rsp + 0x50]
call fcn.140058574
mov rcx, rax
mov edx, ebx
call fcn.14009342c
mov rax, qword [0x14021c740]
cmp byte [rax + 0x1121c], r12b
je 0x14008fbe4
mov rax, qword [0x14021c748]
cmp dword [rax + 0x11b44], r12d
jne 0x14008fbe4
test r14, r14
je 0x14008fbcd
cmp word [r14], r12w
jne 0x14008fbe4
mov rax, qword [0x14021c5d8]
cmp dword [rax + 0x7d4], 2
je 0x14008fbe4
mov dword [rdi + 0x11b48], r13d
lea rcx, [rsp + 0x50]
call fcn.140120ddc
test r13b, bl
je 0x14008fc15
mov rcx, qword [0x14021c5d8]
call fcn.140014fec
test al, al
jne 0x14008fc15
xor r8d, r8d
mov edx, r13d
mov rcx, qword [0x14021c740]
call fcn.140084ee4
cmp dword [0x14021c614], 6
ja 0x14008fc29
jne 0x14008fc2e
cmp dword [0x14021c618], r12d
jbe 0x14008fc2e
call fcn.1400e0d30
mov rcx, qword [0x14021c740]
call fcn.140083e50
mov r8d, r13d
or edx, 0xffffffff
mov rcx, qword [0x14021c740]
call fcn.14007d3f4
mov rcx, qword [0x14021c5c0]
call fcn.14006280c
mov rcx, qword [0x14021c5c0]
call fcn.14006278c
mov rdx, qword [0x14021c740]
mov eax, dword [rdx + 0x111f8]
mov ecx, 0x51f
sub eax, ecx
cmp eax, 2
jbe 0x14008fc8a
mov dword [rdx + 0x111f8], ecx
mov rdx, qword [0x14021c740]
cmp qword [rdx + 0xf08], r12
jne 0x14008fcd1
mov ecx, 0x20
call fcn.14011ff78
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14008fcb9
mov edx, 0x64
mov rcx, rax
call fcn.14000a644
mov rcx, rax
jmp 0x14008fcbc
mov rcx, r12
mov rax, qword [0x14021c740]
mov qword [rax + 0xf08], rcx
mov rdx, qword [0x14021c740]
cmp dword [rdi + 0x11b44], r12d
jne 0x14008fcf1
cmp byte [rdx + 0x10fed], r12b
je 0x14008fcf1
mov dword [rdi + 0x11b44], r13d
mov rdx, qword [0x14021c740]
add rdx, 0x1a
mov rcx, qword [0x14021c5d8]
call fcn.140014434
mov rcx, qword [0x14021c740]
add rcx, 0xbf8
call fcn.1400d36ac
mov edx, ebx
mov rcx, qword [0x14021c5c8]
call fcn.140057d48
mov rax, qword [0x14021c740]
cmp qword [0x14021c5e0], r12
jne 0x14008fd47
mov ecx, dword [rax + 0x111f8]
mov rax, qword [0x14021c5d8]
mov dword [rax + 0x424], ecx
jmp 0x14008fd66
mov rcx, qword [0x14021c5d8]
add rcx, 0x260
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rax + 0x111f8]
call fcn.14003bb88
mov rcx, qword [0x14021c5d8]
call fcn.1400142f8
test al, al
jne 0x14008fd83
mov rcx, qword [0x14021c5d8]
call fcn.140018acc
nop
lea rcx, [rsp + 0x70]
call fcn.140120ddc
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140139b10
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret