Function at 0x1e0df6ec
Capabilities:
Allocate thread local storage
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
cmp dword [0x1e212d88], ebx
jne 0x1e0dfbe7
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
mov dword [0x1e212d88], 1
cmp dword [sym.python27.dll_Py_IgnoreEnvironmentFlag], ebx
jne 0x1e0df7c7
push str.PYTHONDEBUG
call esi
pop ecx
cmp eax, ebx
je 0x1e0df74c
cmp byte [eax], bl
je 0x1e0df74c
push eax
mov eax, dword [sym.python27.dll_Py_DebugFlag]
call fcn.1e0df6cc
pop ecx
mov dword [sym.python27.dll_Py_DebugFlag], eax
cmp dword [sym.python27.dll_Py_IgnoreEnvironmentFlag], ebx
jne 0x1e0df7c7
push str.PYTHONVERBOSE
call esi
pop ecx
cmp eax, ebx
je 0x1e0df775
cmp byte [eax], bl
je 0x1e0df775
push eax
mov eax, dword [sym.python27.dll_Py_VerboseFlag]
call fcn.1e0df6cc
pop ecx
mov dword [sym.python27.dll_Py_VerboseFlag], eax
cmp dword [sym.python27.dll_Py_IgnoreEnvironmentFlag], ebx
jne 0x1e0df7c7
push str.PYTHONOPTIMIZE
call esi
pop ecx
cmp eax, ebx
je 0x1e0df79e
cmp byte [eax], bl
je 0x1e0df79e
push eax
mov eax, dword [sym.python27.dll_Py_OptimizeFlag]
call fcn.1e0df6cc
pop ecx
mov dword [sym.python27.dll_Py_OptimizeFlag], eax
cmp dword [sym.python27.dll_Py_IgnoreEnvironmentFlag], ebx
jne 0x1e0df7c7
push str.PYTHONDONTWRITEBYTECODE
call esi
pop ecx
cmp eax, ebx
je 0x1e0df7c7
cmp byte [eax], bl
je 0x1e0df7c7
push eax
mov eax, dword [sym.python27.dll_Py_DontWriteBytecodeFlag]
call fcn.1e0df6cc
pop ecx
mov dword [sym.python27.dll_Py_DontWriteBytecodeFlag], eax
call sym.python27.dll_PyInterpreterState_New
mov edi, eax
cmp edi, ebx
jne 0x1e0df7dd
push str.Py_Initialize:_cant_make_first_interpreter
call sym.python27.dll_Py_FatalError
pop ecx
push edi
call sym.python27.dll_PyThreadState_New
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x1e0df7f6
push str.Py_Initialize:_cant_make_first_thread
call sym.python27.dll_Py_FatalError
pop ecx
push dword [ebp - 0xc]
call sym.python27.dll_PyThreadState_Swap
pop ecx
call fcn.1e08aaf6
call sym.python27.dll__PyFrame_Init
test eax, eax
jne 0x1e0df818
push str.Py_Initialize:_cant_init_frames
call sym.python27.dll_Py_FatalError
pop ecx
call sym.python27.dll__PyInt_Init
test eax, eax
jne 0x1e0df82c
push str.Py_Initialize:_cant_init_ints
call sym.python27.dll_Py_FatalError
pop ecx
call sym.python27.dll__PyLong_Init
test eax, eax
jne 0x1e0df840
push str.Py_Initialize:_cant_init_longs
call sym.python27.dll_Py_FatalError
pop ecx
call sym.python27.dll_PyByteArray_Init
test eax, eax
jne 0x1e0df854
push str.Py_Initialize:_cant_init_bytearray
call sym.python27.dll_Py_FatalError
pop ecx
call sym.python27.dll__PyFloat_Init
call sym.python27.dll_PyDict_New
mov dword [edi + 8], eax
cmp eax, ebx
jne 0x1e0df870
push str.Py_Initialize:_cant_make_modules_dictionary
call sym.python27.dll_Py_FatalError
pop ecx
call sym.python27.dll_PyDict_New
mov dword [edi + 0x14], eax
cmp eax, ebx
jne 0x1e0df887
push str.Py_Initialize:_cant_make_modules_reloading_dictionary
call sym.python27.dll_Py_FatalError
pop ecx
call fcn.1e0aaf3a
call sym.python27.dll__PyBuiltin_Init
mov esi, eax
cmp esi, ebx
jne 0x1e0df8a2
push str.Py_Initialize:_cant_initialize___builtin__
call sym.python27.dll_Py_FatalError
pop ecx
push esi
call sym.python27.dll_PyModule_GetDict
pop ecx
mov dword [edi + 0x10], eax
cmp eax, ebx
jne 0x1e0df8bb
push str.Py_Initialize:_cant_initialize_builtins_dict
call sym.python27.dll_Py_FatalError
pop ecx
mov eax, dword [edi + 0x10]
inc dword [eax]
call sym.python27.dll__PySys_Init
mov esi, eax
cmp esi, ebx
jne 0x1e0df8d6
push str.Py_Initialize:_cant_initialize_sys
call sym.python27.dll_Py_FatalError
pop ecx
push esi
call sym.python27.dll_PyModule_GetDict
pop ecx
mov dword [edi + 0xc], eax
cmp eax, ebx
jne 0x1e0df8ef
push str.Py_Initialize:_cant_initialize_sys_dict
call sym.python27.dll_Py_FatalError
pop ecx
mov eax, dword [edi + 0xc]
inc dword [eax]
mov eax, 0x1e1a5a24
push eax
push eax
call sym.python27.dll__PyImport_FixupExtension
call sym.python27.dll_Py_GetPath
push eax
call sym.python27.dll_PySys_SetPath
add esp, 0xc
push dword [edi + 8]
push str.modules
push dword [edi + 0xc]
call sym.python27.dll_PyDict_SetItemString
add esp, 0xc
call sym.python27.dll__PyImport_Init
call sym.python27.dll__PyExc_Init
mov eax, str.exceptions
push eax
push eax
call sym.python27.dll__PyImport_FixupExtension
mov eax, str.__builtin__
push eax
push eax
call sym.python27.dll__PyImport_FixupExtension
add esp, 0x10
call sym.python27.dll__PyImportHooks_Init
cmp dword [ebp + 8], ebx
je 0x1e0df955
call fcn.1e0e14be
call sym.python27.dll__PyWarnings_Init
call sym.python27.dll_PySys_HasWarnOptions
test eax, eax
je 0x1e0df985
push str.warnings
call sym.python27.dll_PyImport_ImportModule
pop ecx
cmp eax, ebx
jne 0x1e0df979
call sym.python27.dll_PyErr_Clear
jmp 0x1e0df985
dec dword [eax]
jne 0x1e0df985
mov ecx, dword [eax + 4]
push eax
call dword [ecx + 0x18]
pop ecx
call fcn.1e0dfe49
mov esi, dword [ebp - 0xc]
push edi
call fcn.1e0d4955
pop ecx
cmp dword [sym.python27.dll_Py_NoSiteFlag], ebx
jne 0x1e0df9a1
call fcn.1e0dfec2
cmp dword [sym.python27.dll_Py_IgnoreEnvironmentFlag], ebx
jne 0x1e0df9f1
push str.PYTHONIOENCODING
call dword [sym.imp.MSVCR90.dll_getenv]
pop ecx
cmp eax, ebx
je 0x1e0df9f1
cmp byte [eax], bl
je 0x1e0df9f1
push eax
call dword [sym.imp.MSVCR90.dll__strdup]
pop ecx
mov ebx, eax
xor esi, esi
push 0x3a
inc esi
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.MSVCR90.dll_strchr]
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1e0df9ec
mov byte [eax], 0
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
jmp 0x1e0dfa32
lea eax, [ebp - 0xa4]
lea ebx, [ebp - 0x124]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
push eax
mov edi, str.cp_d
lea eax, [ebp - 0xa4]
push edi
push eax
call esi
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
mov eax, ebx
push edi
push eax
call esi
add esp, 0xc
test ebx, ebx
je 0x1e0dfbe7
push str.stdin
call sym.python27.dll_PySys_GetObject
pop ecx
mov edi, 0x1e0e7f5e
push edi
mov esi, str.isatty
push esi
push eax
mov dword [ebp - 0x10], eax
call sym.python27.dll_PyObject_CallMethod
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
jne 0x1e0dfa69
call sym.python27.dll_PyErr_Clear
cmp dword [ebp - 0x18], 0
mov ebx, sym.python27.dll_PyFile_Type
jne 0x1e0dfa87
cmp dword [ebp - 8], 0
je 0x1e0dfad1
push dword [ebp - 8]
call sym.python27.dll_PyObject_IsTrue
pop ecx
test eax, eax
je 0x1e0dfabe
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x1e0dfa9e
push ebx
push eax
call sym.python27.dll_PyType_IsSubtype
pop ecx
pop ecx
test eax, eax
je 0x1e0dfabe
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call sym.python27.dll_PyFile_SetEncodingAndErrors
add esp, 0xc
test eax, eax
jne 0x1e0dfabe
push str.Cannot_set_codeset_of_stdin
call sym.python27.dll_Py_FatalError
pop ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x1e0dfad1
dec dword [eax]
jne 0x1e0dfad1
mov ecx, dword [eax + 4]
push eax
call dword [ecx + 0x18]
pop ecx
push str.stdout
call sym.python27.dll_PySys_GetObject
pop ecx
push edi
push esi
push eax
mov dword [ebp - 0x10], eax
call sym.python27.dll_PyObject_CallMethod
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
jne 0x1e0dfaf6
call sym.python27.dll_PyErr_Clear
cmp dword [ebp - 0x18], 0
jne 0x1e0dfb0f
cmp dword [ebp - 8], 0
je 0x1e0dfb59
push dword [ebp - 8]
call sym.python27.dll_PyObject_IsTrue
pop ecx
test eax, eax
je 0x1e0dfb46
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x1e0dfb26
push ebx
push eax
call sym.python27.dll_PyType_IsSubtype
pop ecx
pop ecx
test eax, eax
je 0x1e0dfb46
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call sym.python27.dll_PyFile_SetEncodingAndErrors
add esp, 0xc
test eax, eax
jne 0x1e0dfb46
push str.Cannot_set_codeset_of_stdout
call sym.python27.dll_Py_FatalError
pop ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x1e0dfb59
dec dword [eax]
jne 0x1e0dfb59
mov ecx, dword [eax + 4]
push eax
call dword [ecx + 0x18]
pop ecx
push str.stderr
call sym.python27.dll_PySys_GetObject
pop ecx
push edi
push esi
push eax
mov dword [ebp - 0x10], eax
call sym.python27.dll_PyObject_CallMethod
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1e0dfb7d
call sym.python27.dll_PyErr_Clear
cmp dword [ebp - 0x18], 0
jne 0x1e0dfb92
test esi, esi
je 0x1e0dfbd7
push esi
call sym.python27.dll_PyObject_IsTrue
pop ecx
test eax, eax
je 0x1e0dfbc7
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x1e0dfba9
push ebx
push eax
call sym.python27.dll_PyType_IsSubtype
pop ecx
pop ecx
test eax, eax
je 0x1e0dfbc7
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push edi
call sym.python27.dll_PyFile_SetEncodingAndErrors
add esp, 0xc
test eax, eax
jne 0x1e0dfbc7
push str.Cannot_set_codeset_of_stderr
call sym.python27.dll_Py_FatalError
pop ecx
test esi, esi
je 0x1e0dfbd7
dec dword [esi]
jne 0x1e0dfbd7
mov eax, dword [esi + 4]
push esi
call dword [eax + 0x18]
pop ecx
cmp dword [ebp - 0x20], 0
je 0x1e0dfbe7
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret