Function at 0x1e0b1a9c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
call sym.python27.dll_Py_GetPythonHome
cmp dword [sym.python27.dll_Py_IgnoreEnvironmentFlag], 0
mov esi, eax
mov dword [ebp - 0x14], eax
je 0x1e0b1ac1
and dword [ebp - 0xc], 0
jmp 0x1e0b1ad0
push str.PYTHONPATH
call dword [sym.imp.MSVCR90.dll_getenv]
pop ecx
mov dword [ebp - 0xc], eax
call fcn.1e0b198b
xor eax, eax
mov cl, byte [eax + 0x1e2115e8]
mov byte [ebp + eax - 0x228], cl
inc eax
test cl, cl
jne 0x1e0b1ad7
lea edx, [ebp - 0x228]
call fcn.1e0b154f
mov edi, dword [sym.imp.MSVCR90.dll_strncpy]
mov ebx, 0x100
test esi, esi
je 0x1e0b1b16
cmp byte [esi], 0
je 0x1e0b1b16
push ebx
push esi
push 0x1e2116f0
call edi
add esp, 0xc
jmp 0x1e0b1b30
lea eax, [ebp - 0x228]
call fcn.1e0b16d7
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x1e2116f0
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1e0b1b40
cmp byte [eax], 0
jne 0x1e0b1b40
and dword [ebp - 0xc], 0
cmp byte [0x1e2114e0], 0
push ebx
lea eax, [ebp - 0x120]
je 0x1e0b1b57
push 0x1e2114e0
jmp 0x1e0b1b5c
push 0x1e2115e8
push eax
call edi
lea eax, [ebp - 0x120]
add esp, 0xc
mov byte [ebp - 0x20], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e0b1b6f
sub eax, edx
cmp eax, 4
jbe 0x1e0b1b92
lea eax, [ebp + eax - 0x120]
mov byte [eax - 3], 0x7a
mov byte [eax - 2], 0x69
mov byte [eax - 1], 0x70
jmp 0x1e0b1b99
mov byte [ebp - 0x120], 0
xor eax, eax
test esi, esi
setne al
mov edi, eax
push edi
push 0x80000002
call fcn.1e0b170d
push edi
push 0x80000001
mov dword [ebp - 4], eax
call fcn.1e0b170d
add esp, 0x10
cmp dword [ebp - 0xc], 0
mov ebx, eax
mov dword [ebp - 8], ebx
jne 0x1e0b1caa
test esi, esi
jne 0x1e0b1caa
cmp dword [ebp - 4], esi
jne 0x1e0b1caa
test ebx, ebx
jne 0x1e0b1caa
and dword [ebp - 0x10], esi
xor ecx, ecx
lea eax, [ebp - 0x228]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1e0b1bf4
sub eax, edi
lea ecx, [ecx + eax + 0x2a]
test ebx, ebx
je 0x1e0b1c17
mov eax, ebx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1e0b1c0a
sub eax, edi
lea ecx, [ecx + eax + 1]
mov eax, dword [ebp - 4]
test eax, eax
je 0x1e0b1c2e
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1e0b1c21
sub eax, edi
lea ecx, [ecx + eax + 1]
lea eax, [ebp - 0x120]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1e0b1c37
sub eax, edi
lea ecx, [ecx + eax + 1]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1e0b1c5b
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1e0b1c4e
sub eax, edi
lea ecx, [ecx + eax + 1]
push ecx
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
pop ecx
mov dword [0x1e212cd8], ebx
test ebx, ebx
jne 0x1e0b1d21
mov edi, dword [sym.imp.MSVCR90.dll___iob_func]
push str.Cant_malloc_dynamic_PYTHONPATH._n
call edi
mov ebx, dword [sym.imp.MSVCR90.dll_fprintf]
add eax, 0x40
push eax
call ebx
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
test esi, esi
je 0x1e0b1ce5
push str.Using_environment__PYTHONPATH._n
call edi
add eax, 0x40
push eax
call ebx
mov dword [0x1e212cd8], esi
jmp 0x1e0b1cfc
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
test esi, esi
je 0x1e0b1be9
mov edi, eax
mov ecx, str..DLLs_.lib_.libplat_win_.liblib_tk
mov al, 0x2e
cmp al, 0x3b
jne 0x1e0b1cc6
inc edi
inc ecx
mov al, byte [ecx]
test al, al
jne 0x1e0b1cc1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e0b1cd2
sub eax, edx
imul eax, edi
mov ecx, eax
jmp 0x1e0b1beb
push str.Using_default_static_path._n
call edi
add eax, 0x40
push eax
call ebx
mov dword [0x1e212cd8], 0x1e1a5bc8
cmp dword [ebp - 4], 0
mov edi, dword [sym.imp.MSVCR90.dll_free]
pop ecx
pop ecx
je 0x1e0b1d10
push dword [ebp - 4]
call edi
pop ecx
cmp dword [ebp - 8], 0
je 0x1e0b1d1c
push dword [ebp - 8]
call edi
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0xc]
mov edi, dword [sym.imp.MSVCR90.dll_strchr]
test eax, eax
je 0x1e0b1d49
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1e0b1d32
push 0
push ebx
call edi
mov ebx, eax
pop ecx
mov byte [ebx], 0x3b
pop ecx
inc ebx
cmp byte [ebp - 0x120], 0
je 0x1e0b1d75
lea eax, [ebp - 0x120]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1e0b1d5e
push 0
push ebx
call edi
mov ebx, eax
pop ecx
mov byte [ebx], 0x3b
pop ecx
inc ebx
mov eax, dword [ebp - 8]
mov esi, dword [sym.imp.MSVCR90.dll_free]
test eax, eax
je 0x1e0b1da3
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1e0b1d86
push 0
push ebx
call edi
push dword [ebp - 8]
mov ebx, eax
mov byte [ebx], 0x3b
inc ebx
call esi
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x1e0b1dcb
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1e0b1dae
push 0
push ebx
call edi
push dword [ebp - 4]
mov ebx, eax
mov byte [ebx], 0x3b
inc ebx
call esi
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x1e0b1e38
cmp dword [ebp - 0x10], 0
jne 0x1e0b1df7
push 0xa
pop ecx
mov esi, str..DLLs_.lib_.libplat_win_.liblib_tk
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 0
push ebx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCR90.dll_strchr]
mov edi, dword [sym.imp.MSVCR90.dll_strchr]
pop ecx
pop ecx
mov ebx, eax
mov byte [ebx], 0x3b
inc ebx
lea eax, [ebp - 0x228]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1e0b1e07
push 0
push ebx
call edi
pop ecx
mov byte [eax], 0
cmp byte [0x1e2116f0], 0
pop ecx
jne 0x1e0b1d1c
lea edi, [eax - 1]
mov ecx, dword [0x1e212cd8]
mov eax, edi
jmp 0x1e0b1ecc
mov esi, str..DLLs_.lib_.libplat_win_.liblib_tk
push 0x3b
push esi
call edi
pop ecx
pop ecx
mov dword [ebp - 8], eax
test eax, eax
jne 0x1e0b1e5b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e0b1e50
sub eax, edx
jmp 0x1e0b1e60
mov eax, dword [ebp - 8]
sub eax, esi
cmp byte [esi], 0x2e
mov dword [ebp - 4], eax
jne 0x1e0b1e9e
lea eax, [esi + 1]
mov dword [ebp - 0x10], eax
movzx eax, byte [eax]
push eax
call fcn.1e0b153a
add esp, 4
test eax, eax
je 0x1e0b1e9e
mov eax, dword [ebp - 0x14]
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1e0b1e85
push 0
push ebx
call edi
mov esi, dword [ebp - 0x10]
dec dword [ebp - 4]
pop ecx
pop ecx
mov ebx, eax
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.MSVCR90.dll_strncpy]
add ebx, dword [ebp - 4]
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x1e0b1df7
mov esi, dword [ebp - 8]
mov byte [ebx], 0x3b
inc ebx
inc esi
jmp 0x1e0b1e3d
cmp byte [edi], 0x3b
je 0x1e0b1ed0
dec edi
cmp edi, ecx
jae 0x1e0b1ec6
sub eax, edi
mov esi, eax
push esi
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.MSVCR90.dll_strncpy]
add esp, 0xc
lea edx, [ebp - 0x228]
mov byte [ebp + esi - 0x228], 0
call fcn.1e0b154f
mov eax, edx
call fcn.1e0b16d7
test eax, eax
jne 0x1e0b1d1c
cmp edi, dword [0x1e212cd8]
jb 0x1e0b1d1c
dec edi
jmp 0x1e0b1e2b