Function at 0x140013b80
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x5a8
mov rax, qword [0x14005a300]
xor rax, rsp
mov qword [rsp + 0x590], rax
mov dword [rsp + 0x2b8], 0x104
lea rcx, [rsp + 0x31]
call fcn.140014200
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x32]
call fcn.1400141e0
mov rcx, rax
call fcn.1400107e0
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.1400108d0
mov qword [rsp + 0x60], rax
lea r9, [rsp + 0x2b8]
lea r8, [rsp + 0x380]
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [rsp + 0x60]
test eax, eax
jne 0x140013c06
xor eax, eax
jmp 0x1400141b6
call fcn.140011300
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x380]
call fcn.1400115e0
movzx eax, al
test eax, eax
jne 0x140013c2a
xor eax, eax
jmp 0x1400141b6
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x140013cd1
lea rcx, [rsp + 0x33]
call fcn.140014240
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x34]
call fcn.140014220
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x35]
call fcn.140014280
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x36]
call fcn.140014260
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x380]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
xor ecx, ecx
call qword [rsp + 0x88]
cmp rax, 0x20
ja 0x140013cd1
jmp 0x140013c37
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x140013ce1
xor eax, eax
jmp 0x1400141b6
lea rdx, [rsp + 0x380]
lea rcx, [rsp + 0x358]
call fcn.140003880
nop
lea rax, [rsp + 0x238]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x358]
mov rcx, qword [rsp + 0x90]
call fcn.1400139e0
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x37]
call fcn.1400142a0
mov rdx, rax
lea rcx, [rsp + 0x198]
call fcn.1400081d0
nop
mov r8, qword [rsp + 0xa8]
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x338]
call fcn.140011810
nop
lea rcx, [rsp + 0x198]
call fcn.140003c40
lea rcx, [rsp + 0x38]
call fcn.140014300
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x218]
call fcn.140011cd0
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x39]
call fcn.1400142e0
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0x3a]
call fcn.1400142c0
lea r8, [rsp + 0x338]
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.140014690
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd8], rax
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x1d8]
call fcn.140014630
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf8], rax
mov r8, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0x1b8]
call fcn.1400145e0
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x118], rax
mov r8, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0x318]
call fcn.140014630
nop
lea rcx, [rsp + 0x1b8]
call fcn.140003c40
nop
lea rcx, [rsp + 0x1d8]
call fcn.140003c40
nop
lea rcx, [rsp + 0x1f8]
call fcn.140003c40
nop
lea rcx, [rsp + 0x218]
call fcn.140003c40
lea rcx, [rsp + 0x2f8]
call fcn.1400038e0
nop
lea rax, [rsp + 0x258]
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0x3b]
call fcn.140014340
mov rdx, rax
mov rcx, qword [rsp + 0x120]
call fcn.140003880
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x160], rax
lea rax, [rsp + 0x278]
mov qword [rsp + 0x138], rax
lea rdx, [rsp + 0x318]
mov rcx, qword [rsp + 0x138]
call fcn.140008130
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x168], rax
lea rax, [rsp + 0x298]
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x3c]
call fcn.140014320
mov rdx, rax
mov rcx, qword [rsp + 0x150]
call fcn.140003880
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x170], rax
lea rax, [rsp + 0x2f8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x160]
mov r8, qword [rsp + 0x168]
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x2d8]
call fcn.140000990
nop
lea rcx, [rsp + 0x2d8]
call fcn.140005770
cmp rax, 0xc8
jae 0x140014099
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0x2d8]
call fcn.140003c70
nop
lea rcx, [rsp + 0x2f8]
call fcn.140003c70
nop
lea rcx, [rsp + 0x318]
call fcn.140003c40
nop
lea rcx, [rsp + 0x338]
call fcn.140003c40
nop
lea rcx, [rsp + 0x358]
call fcn.140003c70
mov eax, dword [rsp + 0x44]
jmp 0x1400141b6
lea rcx, [rsp + 0x2f8]
call fcn.140005090
mov qword [rsp + 0x178], rax
lea rcx, [rsp + 0x3d]
call fcn.140014360
mov qword [rsp + 0x180], rax
mov rdx, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, 0x18
lea rcx, [rsp + 0x2c0]
call fcn.140004cb0
mov r8d, 0xae
lea rdx, [rsp + 0x2d8]
lea rcx, [rsp + 0x2c0]
call fcn.140012670
nop
lea rcx, [rsp + 0x2c0]
call fcn.14001f7a0
mov qword [rsp + 0x188], rax
lea rcx, [rsp + 0x2c0]
call fcn.140002f40
mov qword [rsp + 0x190], rax
lea rcx, [rsp + 0x3e]
call fcn.140014380
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x188]
mov rdx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x48]
call fcn.140012b20
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x2c0]
call fcn.140003ca0
nop
lea rcx, [rsp + 0x2d8]
call fcn.140003c70
nop
lea rcx, [rsp + 0x2f8]
call fcn.140003c70
nop
lea rcx, [rsp + 0x318]
call fcn.140003c40
nop
lea rcx, [rsp + 0x338]
call fcn.140003c40
nop
lea rcx, [rsp + 0x358]
call fcn.140003c70
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x590]
xor rcx, rsp
call fcn.140022760
add rsp, 0x5a8
ret