Function at 0x1400137c0
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x588
mov rax, qword [0x14005b080]
xor rax, rsp
mov qword [rsp + 0x570], rax
mov dword [rsp + 0x2b8], 0x104
lea rcx, [rsp + 0x31]
call fcn.140013e10
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x32]
call fcn.140013df0
mov rcx, rax
call fcn.140010730
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.140010820
mov qword [rsp + 0x60], rax
lea r9, [rsp + 0x2b8]
lea r8, [rsp + 0x360]
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [rsp + 0x60]
test eax, eax
jne 0x140013846
xor eax, eax
jmp 0x140013dc4
call fcn.140011250
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x360]
call fcn.140011530
movzx eax, al
test eax, eax
jne 0x14001386a
xor eax, eax
jmp 0x140013dc4
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x140013911
lea rcx, [rsp + 0x33]
call fcn.140013e50
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x34]
call fcn.140013e30
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.140013e90
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x36]
call fcn.140013e70
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x360]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
xor ecx, ecx
call qword [rsp + 0x88]
cmp rax, 0x20
ja 0x140013911
jmp 0x140013877
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x140013921
xor eax, eax
jmp 0x140013dc4
lea rax, [rsp + 0x238]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x360]
mov rcx, qword [rsp + 0x90]
call fcn.140004300
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.140013eb0
mov rdx, rax
lea rcx, [rsp + 0x198]
call fcn.1400087f0
nop
mov r8, qword [rsp + 0xa8]
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x338]
call fcn.140011760
nop
lea rcx, [rsp + 0x198]
call fcn.140004670
lea rcx, [rsp + 0x38]
call fcn.140013f10
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x218]
call fcn.140011c20
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.140013ef0
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0x3a]
call fcn.140013ed0
lea r8, [rsp + 0x338]
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.140014280
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.140014230
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.1400141e0
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.140014230
nop
lea rcx, [rsp + 0x1b8]
call fcn.140004670
nop
lea rcx, [rsp + 0x1d8]
call fcn.140004670
nop
lea rcx, [rsp + 0x1f8]
call fcn.140004670
nop
lea rcx, [rsp + 0x218]
call fcn.140004670
lea rcx, [rsp + 0x2f8]
call fcn.140004360
nop
lea rax, [rsp + 0x258]
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0x3b]
call fcn.140013f50
mov rdx, rax
mov rcx, qword [rsp + 0x120]
call fcn.140004300
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.140008750
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.140013f30
mov rdx, rax
mov rcx, qword [rsp + 0x150]
call fcn.140004300
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.140001550
nop
lea rcx, [rsp + 0x2d8]
call fcn.140005ee0
cmp rax, 0xc8
jae 0x140013cb5
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0x2d8]
call fcn.1400046a0
nop
lea rcx, [rsp + 0x2f8]
call fcn.1400046a0
nop
lea rcx, [rsp + 0x318]
call fcn.140004670
nop
lea rcx, [rsp + 0x338]
call fcn.140004670
mov eax, dword [rsp + 0x44]
jmp 0x140013dc4
lea rcx, [rsp + 0x2f8]
call fcn.1400058f0
mov qword [rsp + 0x178], rax
lea rcx, [rsp + 0x3d]
call fcn.140013f70
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.140005560
mov r8d, 0xae
lea rdx, [rsp + 0x2d8]
lea rcx, [rsp + 0x2c0]
call fcn.1400125c0
nop
lea rcx, [rsp + 0x2c0]
call fcn.1400205b0
mov qword [rsp + 0x188], rax
lea rcx, [rsp + 0x2c0]
call fcn.140003a40
mov qword [rsp + 0x190], rax
lea rcx, [rsp + 0x3e]
call fcn.140013f90
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x188]
mov rdx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x48]
call fcn.140012a70
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x2c0]
call fcn.1400046d0
nop
lea rcx, [rsp + 0x2d8]
call fcn.1400046a0
nop
lea rcx, [rsp + 0x2f8]
call fcn.1400046a0
nop
lea rcx, [rsp + 0x318]
call fcn.140004670
nop
lea rcx, [rsp + 0x338]
call fcn.140004670
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.1400237e0
add rsp, 0x588
ret