Function at 0x1801629d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x120
xor ebx, ebx
mov r14d, ecx
cmp dword [0x180518ec4], ebx
mov r15d, ebx
mov ebp, ebx
jne 0x180162e6a
cmp dword [sym.extension.dll_Py_IgnoreEnvironmentFlag], ebx
mov qword [rsp + 0x148], rdi
mov dword [0x180518ec4], 1
jne 0x180162b0a
lea rcx, str.PYTHONDEBUG
call fcn.180236e9c
test rax, rax
je 0x180162a3e
cmp byte [rax], bl
je 0x180162a3e
mov ecx, dword [sym.extension.dll_Py_DebugFlag]
mov rdx, rax
call fcn.180164d80
mov dword [sym.extension.dll_Py_DebugFlag], eax
cmp dword [sym.extension.dll_Py_IgnoreEnvironmentFlag], ebx
jne 0x180162b0a
lea rcx, str.PYTHONVERBOSE
call fcn.180236e9c
test rax, rax
je 0x180162a73
cmp byte [rax], bl
je 0x180162a73
mov ecx, dword [sym.extension.dll_Py_VerboseFlag]
mov rdx, rax
call fcn.180164d80
mov dword [sym.extension.dll_Py_VerboseFlag], eax
cmp dword [sym.extension.dll_Py_IgnoreEnvironmentFlag], ebx
jne 0x180162b0a
lea rcx, str.PYTHONOPTIMIZE
call fcn.180236e9c
test rax, rax
je 0x180162aa8
cmp byte [rax], bl
je 0x180162aa8
mov ecx, dword [sym.extension.dll_Py_OptimizeFlag]
mov rdx, rax
call fcn.180164d80
mov dword [sym.extension.dll_Py_OptimizeFlag], eax
cmp dword [sym.extension.dll_Py_IgnoreEnvironmentFlag], ebx
jne 0x180162b0a
lea rcx, str.PYTHONDONTWRITEBYTECODE
call fcn.180236e9c
test rax, rax
je 0x180162ad9
cmp byte [rax], bl
je 0x180162ad9
mov ecx, dword [sym.extension.dll_Py_DontWriteBytecodeFlag]
mov rdx, rax
call fcn.180164d80
mov dword [sym.extension.dll_Py_DontWriteBytecodeFlag], eax
cmp dword [sym.extension.dll_Py_IgnoreEnvironmentFlag], ebx
jne 0x180162b0a
lea rcx, str.PYTHONHASHSEED
call fcn.180236e9c
test rax, rax
je 0x180162b0a
cmp byte [rax], bl
je 0x180162b0a
mov ecx, dword [sym.extension.dll_Py_HashRandomizationFlag]
mov rdx, rax
call fcn.180164d80
mov dword [sym.extension.dll_Py_HashRandomizationFlag], eax
call sym.extension.dll__PyRandom_Init
call sym.extension.dll_PyInterpreterState_New
mov rdi, rax
test rax, rax
je 0x180162e7f
mov rcx, rax
mov qword [rsp + 0x140], rsi
call sym.extension.dll_PyThreadState_New
mov rsi, rax
test rax, rax
je 0x180162e8c
mov rcx, rax
call sym.extension.dll_PyThreadState_Swap
call fcn.1800e9040
call sym.extension.dll__PyFrame_Init
test eax, eax
je 0x180162e99
call sym.extension.dll__PyInt_Init
test eax, eax
je 0x180162ea6
call sym.extension.dll__PyLong_Init
test eax, eax
je 0x180162eb3
call sym.extension.dll_PyByteArray_Init
test eax, eax
je 0x180162ec0
call sym.extension.dll__PyFloat_Init
call sym.extension.dll_PyDict_New
mov qword [rdi + 0x10], rax
test rax, rax
je 0x180162ecd
call sym.extension.dll_PyDict_New
mov qword [rdi + 0x28], rax
test rax, rax
je 0x180162eda
call fcn.180119c00
call sym.extension.dll__PyBuiltin_Init
test rax, rax
je 0x180162ee7
mov rcx, rax
call sym.extension.dll_PyModule_GetDict
mov qword [rdi + 0x20], rax
test rax, rax
je 0x180162ef4
inc qword [rax]
call sym.extension.dll__PySys_Init
test rax, rax
je 0x180162f01
mov rcx, rax
call sym.extension.dll_PyModule_GetDict
mov qword [rdi + 0x18], rax
test rax, rax
je 0x180162f0e
inc qword [rax]
lea rdx, [0x18033c384]
lea rcx, [0x18033c384]
call sym.extension.dll__PyImport_FixupExtension
call sym.extension.dll_Py_GetPath
mov rcx, rax
call sym.extension.dll_PySys_SetPath
mov r8, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
lea rdx, str.modules
call sym.extension.dll_PyDict_SetItemString
call sym.extension.dll__PyImport_Init
call sym.extension.dll__PyExc_Init
lea rdx, str.exceptions
lea rcx, str.exceptions
call sym.extension.dll__PyImport_FixupExtension
lea rdx, str.__builtin__
lea rcx, str.__builtin__
call sym.extension.dll__PyImport_FixupExtension
call sym.extension.dll__PyImportHooks_Init
test r14d, r14d
je 0x180162c6a
call fcn.180164bc0
call sym.extension.dll__PyWarnings_Init
call sym.extension.dll_PySys_HasWarnOptions
test eax, eax
je 0x180162c9f
lea rcx, str.warnings
call sym.extension.dll_PyImport_ImportModule
mov rcx, rax
test rax, rax
jne 0x180162c93
call sym.extension.dll_PyErr_Clear
jmp 0x180162c9f
dec qword [rax]
jne 0x180162c9f
mov rax, qword [rax + 8]
call qword [rax + 0x30]
call fcn.180164650
mov rdx, rsi
mov rcx, rdi
call fcn.180154490
cmp dword [sym.extension.dll_Py_NoSiteFlag], ebx
jne 0x180162cbc
call fcn.180164700
cmp dword [sym.extension.dll_Py_IgnoreEnvironmentFlag], ebx
jne 0x180162d14
lea rcx, str.PYTHONIOENCODING
call fcn.180236e9c
test rax, rax
je 0x180162d14
cmp byte [rax], bl
je 0x180162d14
mov rcx, rax
call fcn.18024c188
mov edx, 0x3a
mov rcx, rax
mov rdi, rax
mov r14, rax
lea r15d, [rdx - 0x39]
call fcn.18023635c
mov rbx, rax
test rax, rax
je 0x180162d06
mov byte [rax], bpl
inc rbx
mov ebp, r15d
test rdi, rdi
je 0x180162e5a
jmp 0x180162d58
lea r14, [rsp + 0x20]
lea rdi, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetConsoleCP]
lea rdx, str.cp_d
lea rcx, [rsp + 0x20]
mov r8d, eax
call fcn.1802352dc
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
lea rdx, str.cp_d
lea rcx, [rsp + 0xa0]
mov r8d, eax
call fcn.1802352dc
lea rcx, str.stdin
mov qword [rsp + 0x150], r12
call sym.extension.dll_PySys_GetObject
lea r12, sym.extension.dll_PyFile_Type
mov rsi, rax
test ebp, ebp
jne 0x180162d86
mov rcx, rax
call fcn.180164db0
test eax, eax
je 0x180162db1
mov rcx, qword [rsi + 8]
cmp rcx, r12
je 0x180162d9b
mov rdx, r12
call sym.extension.dll_PyType_IsSubtype
test eax, eax
je 0x180162db1
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call sym.extension.dll_PyFile_SetEncodingAndErrors
test eax, eax
je 0x180162f1b
lea rcx, str.stdout
call sym.extension.dll_PySys_GetObject
mov rsi, rax
test ebp, ebp
jne 0x180162dd0
mov rcx, rax
call fcn.180164db0
test eax, eax
je 0x180162dfb
mov rcx, qword [rsi + 8]
cmp rcx, r12
je 0x180162de5
mov rdx, r12
call sym.extension.dll_PyType_IsSubtype
test eax, eax
je 0x180162dfb
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call sym.extension.dll_PyFile_SetEncodingAndErrors
test eax, eax
je 0x180162f28
lea rcx, str.stderr
call sym.extension.dll_PySys_GetObject
mov rsi, rax
test ebp, ebp
jne 0x180162e1a
mov rcx, rax
call fcn.180164db0
test eax, eax
je 0x180162e45
mov rcx, qword [rsi + 8]
cmp rcx, r12
je 0x180162e2f
mov rdx, r12
call sym.extension.dll_PyType_IsSubtype
test eax, eax
je 0x180162e45
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call sym.extension.dll_PyFile_SetEncodingAndErrors
test eax, eax
je 0x180162f35
test r15d, r15d
je 0x180162e52
mov rcx, rdi
call fcn.180230d68
mov r12, qword [rsp + 0x150]
mov rsi, qword [rsp + 0x140]
mov rdi, qword [rsp + 0x148]
mov rbx, qword [rsp + 0x158]
add rsp, 0x120
pop r15
pop r14
pop rbp
ret
lea rcx, str.Py_Initialize:_cant_make_first_interpreter
call sym.extension.dll_Py_FatalError
int3
lea rcx, str.Py_Initialize:_cant_make_first_thread
call sym.extension.dll_Py_FatalError
int3
lea rcx, str.Py_Initialize:_cant_init_frames
call sym.extension.dll_Py_FatalError
int3
lea rcx, str.Py_Initialize:_cant_init_ints
call sym.extension.dll_Py_FatalError
int3
lea rcx, str.Py_Initialize:_cant_init_longs
call sym.extension.dll_Py_FatalError
int3
lea rcx, str.Py_Initialize:_cant_init_bytearray
call sym.extension.dll_Py_FatalError
int3
lea rcx, str.Py_Initialize:_cant_make_modules_dictionary
call sym.extension.dll_Py_FatalError
int3
lea rcx, str.Py_Initialize:_cant_make_modules_reloading_dictionary
call sym.extension.dll_Py_FatalError
int3
lea rcx, str.Py_Initialize:_cant_initialize___builtin__
call sym.extension.dll_Py_FatalError
int3
lea rcx, str.Py_Initialize:_cant_initialize_builtins_dict
call sym.extension.dll_Py_FatalError
int3
lea rcx, str.Py_Initialize:_cant_initialize_sys
call sym.extension.dll_Py_FatalError
int3
lea rcx, str.Py_Initialize:_cant_initialize_sys_dict
call sym.extension.dll_Py_FatalError
int3
lea rcx, str.Cannot_set_codeset_of_stdin
call sym.extension.dll_Py_FatalError
int3
lea rcx, str.Cannot_set_codeset_of_stdout
call sym.extension.dll_Py_FatalError
int3
lea rcx, str.Cannot_set_codeset_of_stderr
call sym.extension.dll_Py_FatalError
int3