Function at 0x10074750
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x103fb118]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x14], 0
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x2f0]
lea esi, [eax + 0x204]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
push edi
test edx, edx
je 0x10074a14
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10074790
sub ecx, edi
sar ecx, 1
push ecx
push edx
call sym.python310.dll_PyUnicode_FromWideChar
mov edi, eax
add esp, 8
test edi, edi
je 0x100749cf
mov eax, dword [0x103fb118]
push str.path_importer_cache
mov dword [esp + 0x20], eax
call sym.python310.dll_PySys_GetObject
add esp, 4
mov ebx, eax
push str.path_hooks
call sym.python310.dll_PySys_GetObject
add esp, 4
test ebx, ebx
je 0x100749ba
test eax, eax
je 0x100749ba
mov ecx, dword [esp + 0x1c]
mov edx, ebx
push edi
push eax
call fcn.101f64c0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100749ba
cmp ebx, sym.python310.dll__Py_NoneStruct
jne 0x10074835
add dword [edi], 0xffffffff
jne 0x1007481b
mov eax, dword [edi + 4]
push edi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
add dword [ebx], 0xffffffff
jne 0x10074a14
mov eax, dword [ebx + 4]
push ebx
mov eax, dword [eax + 0x18]
call eax
add esp, 4
jmp 0x10074a14
add dword [ebx], 0xffffffff
jne 0x10074846
mov eax, dword [ebx + 4]
push ebx
mov eax, dword [eax + 0x18]
call eax
add esp, 4
mov ecx, dword [esp + 0x14]
mov edx, edi
mov dword [esp + 0x18], edi
call fcn.10073d00
test eax, eax
js 0x10074a60
cmp dword [esi + 0x88], 0
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], eax
jne 0x10074909
cmp dword [esi + 0x84], 0
jne 0x100748c9
cmp dword [esi + 0xe4], 0
jne 0x10074909
cmp dword [esi + 0xec], 0
jne 0x10074909
cmp dword [esi + 0xe8], 0
jne 0x10074909
push 0
call ebx
add esp, 4
push eax
call dword [esp + 0x18]
add esp, 4
push eax
call edi
add esp, 4
test eax, eax
jne 0x100748c9
cmp dword [esi + 0x74], eax
je 0x10074909
push str.win32
call sym.python310.dll_Py_GetVersion
push eax
push str.Python__s_on__s_n
push 2
call ebx
add esp, 4
push eax
call fcn.10073c50
add esp, 0x10
cmp dword [esi + 0x64], 0
je 0x10074909
push str.Type__help____copyright____credits__or__license__for_more_information.
push 0x1036e808
push 2
call ebx
add esp, 4
push eax
call fcn.10073c50
add esp, 0xc
cmp dword [esi + 4], 0
jne 0x10074ac5
cmp dword [esi + 0x70], 0
jne 0x10074940
cmp dword [esi + 0xe4], 0
jne 0x10074ac5
cmp dword [esi + 0xec], 0
jne 0x10074ac5
cmp dword [esi + 0xe8], 0
jne 0x10074ac5
push 0
call ebx
add esp, 4
push eax
call dword [esp + 0x18]
add esp, 4
push eax
call edi
add esp, 4
test eax, eax
je 0x10074ac5
push 0
push 0
push 0
mov edx, 8
mov ecx, str.readline
call fcn.101599e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10074ab7
push edi
call sym.python310.dll_PyImport_Import
add esp, 4
mov ebx, eax
add dword [edi], 0xffffffff
jne 0x1007499b
mov ecx, dword [edi + 4]
push edi
mov ecx, dword [ecx + 0x18]
call ecx
add esp, 4
test ebx, ebx
je 0x10074ab7
add dword [ebx], 0xffffffff
jne 0x10074ac5
mov eax, dword [ebx + 4]
push ebx
mov eax, dword [eax + 0x18]
call eax
jmp 0x10074ac2
add dword [edi], 0xffffffff
jne 0x100749cb
mov eax, dword [edi + 4]
push edi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
mov ebx, dword [esp + 0x10]
push str.Failed_checking_if_argv_0__is_an_import_path_entry_n
call sym.python310.dll_PySys_WriteStderr
add esp, 4
lea eax, [esp + 0x20]
push eax
call sym.python310.dll__Py_HandleSystemExit
add esp, 4
test eax, eax
je 0x100749fa
mov eax, dword [esp + 0x20]
mov dword [ebx], eax
mov eax, 1
jmp 0x10074a0c
mov ecx, dword [0x103fb118]
mov edx, 1
call fcn.1022fc40
xor eax, eax
test eax, eax
jne 0x10074e2c
cmp dword [esi + 4], 0
jne 0x1007485d
lea ecx, [esi + 0x4c]
mov dword [esp + 0x1c], 0
lea edx, [esp + 0x1c]
call fcn.10205640
test eax, eax
js 0x10074a60
jle 0x1007485d
mov edi, dword [esp + 0x1c]
mov edx, edi
mov ecx, dword [esp + 0x14]
call fcn.10073d00
test eax, eax
jns 0x10074a85
add dword [edi], 0xffffffff
jne 0x10074a60
mov eax, dword [edi + 4]
push edi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
lea eax, [esp + 0x24]
mov esi, 1
push eax
call sym.python310.dll__Py_HandleSystemExit
add esp, 4
test eax, eax
je 0x10074a9f
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
mov dword [ecx], esi
jmp 0x10074e13
add dword [edi], 0xffffffff
jne 0x1007485d
mov eax, dword [edi + 4]
push edi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
jmp 0x1007485d
mov ecx, dword [0x103fb118]
mov edx, esi
call fcn.1022fc40
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
jmp 0x10074e13
mov eax, dword [0x103fb118]
push eax
call sym.python310.dll__PyErr_Clear
add esp, 4
mov eax, dword [esi + 0xe4]
test eax, eax
je 0x10074bd3
push 0xffffffffffffffff
push eax
call sym.python310.dll_PyUnicode_FromWideChar
mov edi, eax
add esp, 8
test edi, edi
je 0x10074b95
push edi
push 0x1036a740
push str.cpython.run_command
call sym.python310.dll_PySys_Audit
add esp, 0xc
test eax, eax
jns 0x10074b22
lea eax, [esp + 0x28]
mov ebx, 1
push eax
call sym.python310.dll__Py_HandleSystemExit
add esp, 4
test eax, eax
je 0x10074bc1
mov ebx, dword [esp + 0x28]
jmp 0x10074ca8
push 0
xor edx, edx
mov ecx, edi
call fcn.1015a540
add esp, 4
mov ebx, eax
add dword [edi], 0xffffffff
jne 0x10074b43
mov ecx, dword [edi + 4]
push edi
mov ecx, dword [ecx + 0x18]
call ecx
add esp, 4
test ebx, ebx
je 0x10074b95
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push ebx
mov dword [esp + 0x44], 0xa
mov dword [esp + 0x40], 0x800
call sym.python310.dll_PyBytes_AsString
add esp, 4
push eax
call sym.python310.dll_PyRun_SimpleStringFlags
add esp, 8
mov edi, eax
add dword [ebx], 0xffffffff
jne 0x10074b89
mov ecx, dword [ebx + 4]
push ebx
mov ecx, dword [ecx + 0x18]
call ecx
add esp, 4
xor ebx, ebx
test edi, edi
setne bl
jmp 0x10074ca8
push str.Unable_to_decode_the_command_from_the_command_line:_n
call sym.python310.dll_PySys_WriteStderr
add esp, 4
lea eax, [esp + 0x2c]
mov ebx, 1
push eax
call sym.python310.dll__Py_HandleSystemExit
add esp, 4
test eax, eax
je 0x10074bc1
mov ebx, dword [esp + 0x2c]
jmp 0x10074ca8
mov ecx, dword [0x103fb118]
mov edx, ebx
call fcn.1022fc40
jmp 0x10074ca8
mov ecx, dword [esi + 0xe8]
test ecx, ecx
je 0x10074bec
mov edx, 1
call fcn.10073e30
jmp 0x10074ca6
cmp dword [esp + 0x18], 0
je 0x10074c04
xor edx, edx
mov ecx, str.__main__
call fcn.10073e30
jmp 0x10074ca6
mov eax, dword [esi + 0xec]
test eax, eax
je 0x10074c9f
push 0xffffffffffffffff
push eax
call sym.python310.dll_PyUnicode_FromWideChar
mov edi, eax
add esp, 8
test edi, edi
jne 0x10074c38
mov ecx, dword [0x103fb118]
mov edx, 1
call fcn.1022fc40
or ebx, 0xffffffff
jmp 0x10074ca8
push 0xffffffffffffffff
push dword [esi + 0xac]
call sym.python310.dll_PyUnicode_FromWideChar
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x10074c63
add dword [edi], 0xffffffff
jne 0x10074c23
mov eax, dword [edi + 4]
push edi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
jmp 0x10074c23
push dword [esi + 0xe0]
mov edx, edi
mov ecx, eax
call fcn.10074100
add esp, 4
mov ebx, eax
add dword [edi], 0xffffffff
jne 0x10074c88
mov eax, dword [edi + 4]
push edi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
mov ecx, dword [esp + 0x2c]
add dword [ecx], 0xffffffff
jne 0x10074ca8
mov eax, dword [ecx + 4]
push ecx
mov eax, dword [eax + 0x18]
call eax
add esp, 4
jmp 0x10074ca8
mov ecx, esi
call fcn.10074470
mov ebx, eax
mov ecx, dword [esp + 0x10]
mov dword [ecx], ebx
cmp dword [esi + 0x70], 0
jne 0x10074cec
cmp dword [esi + 8], 0
je 0x10074ce2
push str.PYTHONINSPECT
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10074ce2
cmp byte [eax], 0
je 0x10074ce2
mov dword [esi + 0x70], 1
mov dword [sym.python310.dll_Py_InspectFlag], 1
cmp dword [esi + 0x70], 0
je 0x10074e13
mov edi, dword [esp + 0x30]
push 0
call edi
add esp, 4
push eax
call dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
add esp, 4
push eax
call ebx
add esp, 4
test eax, eax
jne 0x10074d16
cmp dword [esi + 0x74], eax
je 0x10074e13
cmp dword [esi + 0xe4], 0
jne 0x10074d35
cmp dword [esi + 0xec], 0
jne 0x10074d35
cmp dword [esi + 0xe8], 0
je 0x10074e13
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x70], 0
mov dword [sym.python310.dll_Py_InspectFlag], 0
call fcn.100742b0
test eax, eax
jne 0x10074e13
push eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0xa
call edi
add esp, 4
mov edi, eax
push 7
push str._stdin_
call sym.python310.dll_PyUnicode_DecodeFSDefaultAndSize
mov esi, eax
add esp, 8
test esi, esi
jne 0x10074d93
mov ecx, dword [0x103fb118]
lea edx, [eax + 1]
call fcn.1022fc40
or edi, 0xffffffff
jmp 0x10074e06
push edi
call dword [esp + 0x18]
add esp, 4
push eax
call ebx
add esp, 4
test eax, eax
jne 0x10074de4
cmp dword [sym.python310.dll_Py_InteractiveFlag], eax
je 0x10074dd1
push str._stdin_
push esi
call sym.python310.dll_PyUnicode_CompareWithASCIIString
add esp, 8
test eax, eax
je 0x10074de4
push 0x1038fde8
push esi
call sym.python310.dll_PyUnicode_CompareWithASCIIString
add esp, 8
test eax, eax
je 0x10074de4
lea eax, [esp + 0x40]
push eax
push 0
push esi
push edi
call sym.python310.dll__PyRun_SimpleFileObject
add esp, 0x10
jmp 0x10074df3
lea eax, [esp + 0x40]
push eax
push esi
push edi
call sym.python310.dll__PyRun_InteractiveLoopObject
add esp, 0xc
add dword [esi], 0xffffffff
mov edi, eax
jne 0x10074e06
mov eax, dword [esi + 4]
push esi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
mov ecx, dword [esp + 0x10]
xor eax, eax
test edi, edi
setne al
mov dword [ecx], eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10074e2c
add dword [ecx], 0xffffffff
jne 0x10074e2c
mov eax, dword [ecx + 4]
push ecx
mov eax, dword [eax + 0x18]
call eax
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret