Function at 0x180122060
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x350
call sym.extension.dll_Py_GetPythonHome
xor edi, edi
cmp dword [sym.extension.dll_Py_IgnoreEnvironmentFlag], edi
mov r15, rax
je 0x180122092
mov r14d, edi
jmp 0x1801220a1
lea rcx, str.PYTHONPATH
call fcn.180236e9c
mov r14, rax
call fcn.180121ed0
mov rdx, rdi
lea rbx, [0x180517970]
movzx ecx, byte [rdx + rbx]
lea rdx, [rdx + 1]
mov byte [rsp + rdx + 0x12f], cl
test cl, cl
jne 0x1801220b0
lea rcx, [rsp + 0x130]
call fcn.180121850
test r15, r15
je 0x1801220f1
cmp byte [r15], dil
je 0x1801220f1
lea rcx, [0x180517860]
mov r8d, 0x100
mov rdx, r15
call fcn.18023bf70
jmp 0x180122112
lea rdx, str.libos.py
lea rcx, [rsp + 0x130]
call fcn.180121a80
lea r15, [0x180517860]
test eax, eax
cmove r15, rdi
test r14, r14
je 0x18012211e
cmp byte [r14], dil
cmove r14, rdi
cmp byte [0x180517a80], dil
mov r8d, 0x100
lea rcx, [rsp + 0x20]
lea rdx, [0x180517a80]
jne 0x18012213c
mov rdx, rbx
call fcn.18023bf70
mov byte [rsp + 0x120], dil
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x180122152
cmp rax, 4
jbe 0x18012216f
mov word [rsp + rax + 0x1d], 0x697a
mov byte [rsp + rax + 0x1f], reloc.WS2_32.dll_WSASetLastError
jmp 0x180122174
mov byte [rsp + 0x20], dil
mov ebx, edi
test r15, r15
mov rcx, 0xffffffff80000002
setne bl
mov qword [rsp + 0x370], r12
mov edx, ebx
call fcn.180121af0
mov edx, ebx
mov rcx, 0xffffffff80000001
mov rbp, rax
call fcn.180121af0
lea rsi, str..DLLs_.lib_.libplat_win_.liblib_tk
mov rbx, rax
test r14, r14
jne 0x1801221c6
test r15, r15
jne 0x1801221c6
test rbp, rbp
jne 0x1801221c6
test rax, rax
jne 0x1801221c6
mov r12d, edi
jmp 0x180122204
mov r12d, 1
test r15, r15
je 0x180122204
mov edi, r12d
mov rcx, rsi
mov al, 0x2e
nop dword [rax]
cmp al, 0x3b
jne 0x1801221e7
inc rdi
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x1801221e0
or rax, 0xffffffffffffffff
inc rax
cmp byte [r15 + rax], 0
jne 0x1801221f6
imul rdi, rax
lea rcx, [rsp + 0x130]
or rax, 0xffffffffffffffff
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x180122210
lea rcx, [rax + 0x2a]
add rcx, rdi
test rbx, rbx
je 0x18012223f
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x180122230
inc rcx
add rcx, rax
test rbp, rbp
je 0x18012225f
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rax + rbp], 0
jne 0x180122250
inc rcx
add rcx, rax
lea rdx, [rsp + 0x20]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x180122270
inc rcx
add rcx, rax
test r14, r14
je 0x1801222a0
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [r14 + rax], 0
jne 0x180122290
inc rcx
add rcx, rax
call fcn.180230da8
mov rdi, rax
mov qword [0x180517850], rax
test rax, rax
jne 0x180122342
call fcn.18023601c
lea rdx, str.Cant_malloc_dynamic_PYTHONPATH._n
lea rcx, [rax + 0x60]
call fcn.1802367b8
call fcn.18023601c
lea rcx, [rax + 0x60]
test r14, r14
je 0x1801222f0
lea rdx, str.Using_environment__PYTHONPATH._n
call fcn.1802367b8
mov qword [0x180517850], r14
jmp 0x180122303
lea rdx, str.Using_default_static_path._n
call fcn.1802367b8
mov qword [0x180517850], rsi
test rbp, rbp
je 0x180122310
mov rcx, rbp
call fcn.180230d68
test rbx, rbx
je 0x18012231d
mov rcx, rbx
call fcn.180230d68
mov r12, qword [rsp + 0x370]
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
test r14, r14
je 0x180122372
mov rcx, rax
sub rcx, r14
nop dword [rax]
movzx eax, byte [r14]
lea r14, [r14 + 1]
mov byte [rcx + r14 - 1], al
test al, al
jne 0x180122350
xor edx, edx
mov rcx, rdi
call fcn.18023635c
mov byte [rax], 0x3b
lea rdi, [rax + 1]
cmp byte [rsp + 0x20], 0
je 0x1801223b0
lea rax, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x20]
sub rdx, rax
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x180122390
xor edx, edx
mov rcx, rdi
call fcn.18023635c
mov byte [rax], 0x3b
lea rdi, [rax + 1]
test rbx, rbx
je 0x1801223e8
mov rdx, rdi
mov rcx, rbx
sub rdx, rbx
nop
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x1801223c0
xor edx, edx
mov rcx, rdi
call fcn.18023635c
mov rcx, rbx
mov byte [rax], 0x3b
lea rdi, [rax + 1]
call fcn.180230d68
test rbp, rbp
je 0x180122428
mov rdx, rdi
mov rcx, rbp
sub rdx, rbp
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x180122400
xor edx, edx
mov rcx, rdi
call fcn.18023635c
mov rcx, rbp
mov byte [rax], 0x3b
lea rdi, [rax + 1]
call fcn.180230d68
test r15, r15
jne 0x180122540
test r12d, r12d
jne 0x18012246f
movups xmm0, xmmword [str..DLLs_.lib_.libplat_win_.liblib_tk]
xor edx, edx
mov rcx, rdi
movups xmmword [rdi], xmm0
movups xmm1, xmmword [0x18033c578]
movups xmmword [rdi + 0x10], xmm1
movsd xmm0, qword [0x18033c588]
movsd qword [rdi + 0x20], xmm0
movzx eax, byte [0x18033c590]
mov byte [rdi + 0x28], al
call fcn.18023635c
mov rdi, rax
lea rax, [rsp + 0x130]
lea rdx, [rdi + 1]
mov byte [rdi], 0x3b
sub rdx, rax
lea rcx, [rsp + 0x130]
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x180122490
lea rcx, [rdi + 1]
xor edx, edx
call fcn.18023635c
mov byte [rax], 0
cmp byte [0x180517860], 0
jne 0x18012231d
lea rbx, [rax - 1]
mov rax, qword [0x180517850]
mov rdi, rbx
cmp rbx, rax
jb 0x1801224dd
nop dword [rax]
cmp byte [rbx], 0x3b
je 0x1801224dd
dec rbx
cmp rbx, rax
jae 0x1801224d0
sub rdi, rbx
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x240]
mov r8, rdi
call fcn.18023bf70
lea rcx, [rsp + 0x240]
mov byte [rsp + rdi + 0x240], 0
call fcn.180121850
lea rdx, str.libos.py
lea rcx, [rsp + 0x240]
call fcn.180121a80
test eax, eax
jne 0x18012231d
mov rax, qword [0x180517850]
cmp rbx, rax
jb 0x18012231d
dec rbx
jmp 0x1801224c5
mov edx, 0x3b
mov rcx, rsi
call fcn.18023635c
mov rbp, rax
test rax, rax
jne 0x18012256b
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x180122560
jmp 0x180122571
mov rbx, rax
sub rbx, rsi
cmp byte [rsi], 0x2e
jne 0x1801225b2
movzx ecx, byte [rsi + 1]
call fcn.180121830
test eax, eax
je 0x1801225b2
mov rdx, rdi
mov rcx, r15
sub rdx, r15
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x180122590
xor edx, edx
mov rcx, rdi
call fcn.18023635c
inc rsi
dec rbx
mov rdi, rax
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.18023bf70
add rdi, rbx
test rbp, rbp
je 0x18012246f
mov byte [rdi], 0x3b
inc rdi
lea rsi, [rbp + 1]
jmp 0x180122540