Function at 0x140161460
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x3b8
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov dword [rsp + 0x44], 0
mov byte [rsp + 0x41], 0
lea rcx, [rsp + 0x88]
call fcn.14000a280
nop
lea rcx, [rsp + 0x128]
call fcn.1400150f0
nop
mov byte [rsp + 0x40], 1
mov rdx, qword [0x1408ce770]
mov rcx, qword [str.PYTHONIOENCODING]
call fcn.14025b220
mov dword [rsp + 0x30], 2
mov byte [rsp + 0x28], 1
lea rax, [rsp + 0x128]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
lea r8, [0x140316988]
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
mov rcx, 0xffffffff80000002
call fcn.1400f6f60
movzx eax, al
test eax, eax
jne 0x140161516
lea rdx, [rsp + 0x88]
lea rcx, [0x140316a40]
call fcn.14025afe0
mov r8d, 0x104
lea rdx, [rsp + 0x190]
lea rcx, str.CommonProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14016160a
lea rcx, [rsp + 0xa8]
call fcn.14000a280
nop
lea rdx, [0x140316648]
lea rcx, [rsp + 0x68]
call fcn.14001e490
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x78]
call fcn.14001e490
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x78]
lea rdx, [0x140316998]
lea rcx, [rsp + 0xa8]
call fcn.14001d950
lea rcx, [rsp + 0xa8]
call fcn.14000c690
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
xor r8d, r8d
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x88]
call fcn.1400d7d80
cmp rax, 0xffffffffffffffff
jne 0x1401615fb
lea rcx, [rsp + 0x88]
call fcn.140164750
movzx eax, word [rax]
cmp eax, 0x3b
je 0x1401615e5
lea rdx, [0x140316644]
lea rcx, [rsp + 0x88]
call fcn.140016190
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x88]
call fcn.140020060
nop
lea rcx, [rsp + 0xa8]
call fcn.14000a800
jmp 0x14016160f
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x140161800
mov rax, qword [rsp + 0x3c0]
cmp dword [rax + 8], 5
je 0x1401617fb
mov rax, qword [rsp + 0x3c0]
cmp dword [rax + 8], 1
je 0x1401617fb
mov rax, qword [rsp + 0x3c0]
cmp dword [rax + 8], 6
je 0x1401617fb
mov rax, qword [rsp + 0x3c0]
cmp dword [rax + 8], 9
je 0x1401617fb
mov rdx, qword [0x1408ce908]
lea rcx, [rsp + 0xe8]
call fcn.1400179b0
nop
xor r8d, r8d
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0xc8]
call fcn.140101a40
nop
lea rcx, [rsp + 0xe8]
call fcn.14000a800
xor edx, edx
lea rcx, [rsp + 0x148]
call fcn.1401017e0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x44]
or eax, 1
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x58]
call fcn.1400165c0
movzx eax, al
test eax, eax
jne 0x140161715
lea rcx, [rsp + 0xc8]
call fcn.1400165c0
movzx eax, al
test eax, eax
jne 0x140161715
lea rcx, [rsp + 0xc8]
call fcn.14000c690
mov dl, 1
mov rcx, rax
call fcn.1400f1be0
movzx eax, al
test eax, eax
je 0x140161715
mov dword [rsp + 0x48], 1
jmp 0x14016171d
mov dword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x42], al
mov eax, dword [rsp + 0x44]
and eax, 1
test eax, eax
je 0x140161743
and dword [rsp + 0x44], 0xfffffffe
lea rcx, [rsp + 0x148]
call fcn.14000a800
movzx eax, byte [rsp + 0x42]
test eax, eax
je 0x1401617b5
lea rcx, [rsp + 0x88]
call fcn.1400165c0
movzx eax, al
test eax, eax
jne 0x140161774
lea rdx, [0x1403166c4]
lea rcx, [rsp + 0xc8]
call fcn.14001efd0
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x168]
call fcn.140025010
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x88]
call fcn.14001e7a0
lea rcx, [rsp + 0x168]
call fcn.14000a800
lea rdx, str.PATH
lea rcx, [rsp + 0x108]
call fcn.1400179b0
nop
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x108]
call fcn.140102b10
nop
lea rcx, [rsp + 0x108]
call fcn.14000a800
nop
lea rcx, [rsp + 0xc8]
call fcn.14000a800
mov byte [rsp + 0x41], 1
movzx eax, byte [rsp + 0x41]
mov byte [rsp + 0x43], al
lea rcx, [rsp + 0x128]
call fcn.140015480
nop
lea rcx, [rsp + 0x88]
call fcn.14000a800
movzx eax, byte [rsp + 0x43]
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x3b8
ret