Function at 0x1e02ca13
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor edi, edi
push str.encodings.utf_8
xor ebx, ebx
mov dword [esp + 0x18], edi
xor esi, esi
call sym.python31.dll_PyImport_ImportModule
pop ecx
cmp eax, edi
je 0x1e05552a
dec dword [eax]
mov dword [esp + 0x18], edi
je 0x1e055496
push str.encodings.latin_1
call sym.python31.dll_PyImport_ImportModule
pop ecx
cmp eax, edi
je 0x1e05552a
dec dword [eax]
je 0x1e0554a3
push str.builtins
call sym.python31.dll_PyImport_ImportModule
pop ecx
mov dword [esp + 0x14], eax
cmp eax, edi
je 0x1e05552a
push 0x1e1908e8
call sym.python31.dll_PyImport_ImportModule
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x1e05552a
push str.OpenWrapper
push ebx
call sym.python31.dll_PyObject_GetAttrString
pop ecx
pop ecx
cmp eax, edi
je 0x1e05552a
push eax
push str.open
push dword [esp + 0x1c]
call sym.python31.dll_PyObject_SetAttrString
add esp, 0xc
cmp eax, 0xffffffff
je 0x1e05552a
cmp dword [sym.python31.dll_Py_IgnoreEnvironmentFlag], edi
jne 0x1e0554b0
push str.PYTHONIOENCODING
call dword [sym.imp.MSVCR90.dll_getenv]
pop ecx
mov esi, eax
cmp esi, edi
jne 0x1e0554b7
xor ebp, ebp
call dword [sym.imp.MSVCR90.dll___iob_func]
push eax
call dword [sym.imp.MSVCR90.dll__fileno]
cmp eax, edi
pop ecx
jl 0x1e0554e0
push ebp
push esi
push str._stdin_
push edi
push eax
push ebx
call fcn.1e02a7ae
add esp, 0x18
test eax, eax
je 0x1e05552a
mov edi, eax
push edi
push str.__stdin__
call sym.python31.dll_PySys_SetObject
push edi
push str.stdin
call sym.python31.dll_PySys_SetObject
add esp, 0x10
dec dword [edi]
je 0x1e0554f0
mov edi, dword [sym.imp.MSVCR90.dll___iob_func]
call edi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR90.dll__fileno]
pop ecx
test eax, eax
jl 0x1e0554fd
push ebp
push esi
push str._stdout_
push 1
push eax
push ebx
call fcn.1e02a7ae
add esp, 0x18
test eax, eax
je 0x1e05552a
mov ebp, eax
push ebp
push str.__stdout__
call sym.python31.dll_PySys_SetObject
push ebp
push str.stdout
call sym.python31.dll_PySys_SetObject
add esp, 0x10
dec dword [ebp]
je 0x1e05550d
call edi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll__fileno]
pop ecx
test eax, eax
jl 0x1e05551a
push str.backslashreplace
push esi
push str._stderr_
push 1
push eax
push ebx
call fcn.1e02a7ae
add esp, 0x18
test eax, eax
je 0x1e05552a
mov edi, eax
push str.encoding
push edi
call sym.python31.dll_PyObject_GetAttrString
pop ecx
pop ecx
test eax, eax
je 0x1e02cbe4
push eax
call sym.python31.dll__PyUnicode_AsString
pop ecx
test eax, eax
je 0x1e02cbe4
push eax
call sym.python31.dll__PyCodec_Lookup
pop ecx
call sym.python31.dll_PyErr_Clear
push edi
push str.__stderr__
call sym.python31.dll_PySys_SetObject
push edi
push str.stderr
call sym.python31.dll_PySys_SetObject
add esp, 0x10
dec dword [edi]
je 0x1e055534
test esi, esi
jne 0x1e055541
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1e02cc22
dec dword [eax]
je 0x1e05554e
test ebx, ebx
je 0x1e02cc2e
dec dword [ebx]
je 0x1e05555b
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [eax + 4]
push eax
call dword [ecx + 0x18]
pop ecx
jmp 0x1e02ca43
mov ecx, dword [eax + 4]
push eax
call dword [ecx + 0x18]
pop ecx
jmp 0x1e02ca5e
xor esi, esi
jmp 0x1e02cad4
push esi
call dword [sym.imp.MSVCR90.dll__strdup]
pop ecx
mov esi, eax
push 0x3a
push esi
call dword [sym.imp.MSVCR90.dll_strchr]
mov ebp, eax
pop ecx
pop ecx
cmp ebp, edi
je 0x1e02cade
mov byte [ebp], 0
inc ebp
jmp 0x1e02cade
inc dword [sym.python31.dll__Py_NoneStruct]
mov edi, sym.python31.dll__Py_NoneStruct
jmp 0x1e02cb10
mov eax, dword [edi + 4]
push edi
call dword [eax + 0x18]
pop ecx
jmp 0x1e02cb31
inc dword [sym.python31.dll__Py_NoneStruct]
mov ebp, sym.python31.dll__Py_NoneStruct
jmp 0x1e02cb69
mov eax, dword [ebp + 4]
push ebp
call dword [eax + 0x18]
pop ecx
jmp 0x1e02cb8b
inc dword [sym.python31.dll__Py_NoneStruct]
mov edi, sym.python31.dll__Py_NoneStruct
jmp 0x1e02cbc1
or dword [esp + 0x18], 0xffffffff
jmp 0x1e02cc0a
mov eax, dword [edi + 4]
push edi
call dword [eax + 0x18]
pop ecx
jmp 0x1e02cc0a
push esi
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
jmp 0x1e02cc12
mov ecx, dword [eax + 4]
push eax
call dword [ecx + 0x18]
pop ecx
jmp 0x1e02cc22
mov eax, dword [ebx + 4]
push ebx
call dword [eax + 0x18]
pop ecx
jmp 0x1e02cc2e