Function at 0x140087100
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 [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r14, r8
mov edi, edx
mov rsi, rcx
mov r13d, 1
mov edx, r13d
mov rcx, qword [0x14022ab50]
call fcn.14007f158
xor r12d, r12d
test eax, eax
je 0x14008715a
mov rcx, qword [0x14022a9e0]
call fcn.140011028
mov rcx, qword [0x14022b158]
test rcx, rcx
je 0x14008716d
xor edx, edx
call fcn.140063918
lea rdx, [rbp - 0x80]
mov rcx, qword [0x14022ab50]
call fcn.140075410
mov rcx, qword [rbp - 0x78]
call fcn.140117704
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.140114b38
nop
lea rdx, [0x1401759d0]
lea rcx, [rsp + 0x70]
call fcn.140115398
mov rdx, rax
lea rcx, str.ConEmuCfgDir
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [0x14022a9e8]
test rax, rax
je 0x1400871ce
test dil, 8
je 0x14008723d
mov rax, qword [0x14022ab50]
mov ecx, dword [rax + 0x111d8]
mov rax, qword [0x14022a9e0]
mov dword [rax + 0x458], ecx
mov rax, qword [0x14022ab50]
mov ecx, dword [rax + 0x111dc]
mov rax, qword [0x14022a9e0]
mov dword [rax + 0x45c], ecx
mov rax, qword [0x14022ab50]
mov ecx, dword [rax + 0x1119c]
mov rax, qword [0x14022a9e0]
mov dword [rax + 0x420], ecx
mov rax, qword [0x14022ab50]
mov ecx, dword [rax + 0x111b8]
mov rax, qword [0x14022a9e0]
mov dword [rax + 0x43c], ecx
mov rax, qword [0x14022a9e8]
test rax, rax
jne 0x140087288
lea rbx, [rsi + 0x12140]
mov rcx, qword [0x14022a9e0]
add rcx, 0x260
mov rdx, rbx
call fcn.14003508c
mov r9d, dword [rbx]
mov r8d, dword [rsi + 0x12144]
lea rdx, str.DPI_initialized_to__i__i_r_n
lea rcx, [rbp - 0x60]
call fcn.14000c838
xor r8d, r8d
mov dl, r13b
lea rcx, [rbp - 0x60]
call fcn.1400296e4
mov rcx, qword [0x14022ab50]
add rcx, 0x1a
mov dl, r13b
call fcn.14011ddf4
test dil, 2
je 0x1400873aa
mov rcx, qword [0x14022a9e0]
call fcn.140013110
mov r15, rax
mov rbx, qword [0x14022ab58]
lea rcx, [rsp + 0x58]
call fcn.140114c40
nop
xor edx, edx
mov ecx, r13d
call fcn.140064138
add rbx, 0x11948
je 0x140087308
cmp word [rbx], r12w
je 0x140087308
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea rcx, [0x140175aa0]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rbx
lea r9, [0x140175bf8]
jmp 0x140087324
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
xor r9d, r9d
mov r8, rax
lea rdx, [0x14017669c]
mov rcx, r15
call fcn.1401146e0
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.140114cd0
lea rcx, [rsp + 0x58]
call fcn.140054ee8
mov rcx, rax
mov edx, edi
call fcn.14008b69c
mov rax, qword [0x14022ab50]
cmp byte [rax + 0x11214], r12b
je 0x1400873a0
mov rax, qword [0x14022ab58]
cmp dword [rax + 0x11b34], r12d
jne 0x1400873a0
test r14, r14
je 0x140087389
cmp word [r14], r12w
jne 0x1400873a0
mov rax, qword [0x14022a9e0]
cmp dword [rax + 0x7c4], 2
je 0x1400873a0
mov dword [rsi + 0x11b38], r13d
lea rcx, [rsp + 0x58]
call fcn.140114ca4
test r13b, dil
je 0x1400873d1
mov rcx, qword [0x14022a9e0]
call fcn.140013efc
test al, al
jne 0x1400873d1
xor r8d, r8d
mov edx, r13d
mov rcx, qword [0x14022ab50]
call fcn.14007c870
cmp dword [0x14022aa24], 6
ja 0x1400873e5
jne 0x1400873ea
cmp dword [0x14022aa28], r12d
jbe 0x1400873ea
call fcn.1400d62d0
mov rcx, qword [0x14022ab50]
call fcn.14007b7e8
mov r8d, r13d
or edx, 0xffffffff
mov rcx, qword [0x14022ab50]
call fcn.140074f88
mov rcx, qword [0x14022ab88]
call fcn.14005e1fc
mov rcx, qword [0x14022ab88]
call fcn.14005e17c
mov rdx, qword [0x14022ab50]
mov eax, dword [rdx + 0x111f0]
mov ecx, 0x51f
sub eax, ecx
cmp eax, 2
jbe 0x140087446
mov dword [rdx + 0x111f0], ecx
mov rdx, qword [0x14022ab50]
cmp qword [rdx + 0xf00], r12
jne 0x14008748d
mov ecx, 0x20
call fcn.140113d08
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140087475
mov edx, 0x64
mov rcx, rax
call fcn.14000a358
mov rcx, rax
jmp 0x140087478
mov rcx, r12
mov rax, qword [0x14022ab50]
mov qword [rax + 0xf00], rcx
mov rdx, qword [0x14022ab50]
cmp dword [rsi + 0x11b34], r12d
jne 0x1400874ad
cmp byte [rdx + 0x10fe5], r12b
je 0x1400874ad
mov dword [rsi + 0x11b34], r13d
mov rdx, qword [0x14022ab50]
add rdx, 0x1a
mov rcx, qword [0x14022a9e0]
call fcn.140013468
mov rcx, qword [0x14022ab50]
add rcx, 0xbf0
call fcn.1400c8ff8
mov edx, edi
mov rcx, qword [0x14022ab90]
call fcn.1400547e0
mov rax, qword [0x14022ab50]
cmp qword [0x14022a9e8], r12
jne 0x140087503
mov ecx, dword [rax + 0x111f0]
mov rax, qword [0x14022a9e0]
mov dword [rax + 0x414], ecx
jmp 0x140087522
mov rcx, qword [0x14022a9e0]
add rcx, 0x260
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rax + 0x111f0]
call fcn.140039990
mov rcx, qword [0x14022a9e0]
call fcn.14001332c
test al, al
jne 0x14008753f
mov rcx, qword [0x14022a9e0]
call fcn.1400175c8
nop
lea rcx, [rsp + 0x70]
call fcn.140114ca4
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret