Function at 0x1e03b85f
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
xor eax, eax
push eax
push eax
mov ebx, str.COMSPEC
push ebx
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x1e03bb7e
call fcn.1e0e6710
mov dword [ebp - 0xc], esp
push edi
push dword [ebp - 0xc]
push ebx
call esi
test eax, eax
je 0x1e03bb90
mov ecx, dword [ebp - 0xc]
lea esi, [eax + ecx]
jmp 0x1e03b8af
cmp byte [esi], 0x5c
je 0x1e03b8b3
dec esi
cmp esi, ecx
jae 0x1e03b8a9
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1e03b92d
push str.command.com
inc esi
push esi
call dword [sym.imp.MSVCR90.dll__stricmp]
pop ecx
pop ecx
test eax, eax
je 0x1e03b92d
mov ebx, str.__c
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e03b8dd
sub eax, edx
mov esi, eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1e03b8ee
sub eax, ecx
add eax, esi
lea esi, [eax + edi + 1]
mov eax, esi
call fcn.1e0e6710
mov edi, esp
push esi
push 0
push edi
call sub.MSVCR90.dll_memset
add esp, 0xc
push dword [ebp + 8]
push ebx
push dword [ebp - 0xc]
push str._s_s_s
push esi
push edi
call sym.python27.dll_PyOS_snprintf
add esp, 0x18
jmp 0x1e03bb0e
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x174]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 8], eax
cmp byte [ebp - 0x174], al
je 0x1e03b97e
xor edx, edx
inc edx
lea esi, [ebp - 0x174]
sub edx, esi
cmp byte [ebp + eax - 0x174], 0x5c
jne 0x1e03b970
lea ecx, [edx + eax]
lea ecx, [ebp + ecx - 0x174]
inc eax
cmp byte [ebp + eax - 0x174], 0
jne 0x1e03b95c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x174]
mov byte [ebp + ecx - 0x174], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e03b98f
sub eax, esi
mov ecx, ebx
sub ecx, eax
push ecx
mov esi, str.w9xpopen.exe
lea eax, [ebp - 0x174]
push esi
push eax
call dword [sym.imp.MSVCR90.dll_strncat]
add esp, 0xc
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.MSVCR90.dll__stat64i32]
pop ecx
pop ecx
test eax, eax
je 0x1e03ba7e
push ebx
push ecx
call sym.python27.dll_Py_GetExecPrefix
pop ecx
push eax
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.MSVCR90.dll_strncpy]
lea eax, [ebp - 0x174]
add esp, 0xc
mov byte [ebp - 0x71], 0
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e03b9f7
sub eax, edi
cmp byte [ebp + eax - 0x175], 0x5c
je 0x1e03ba25
lea edi, [ebp - 0x174]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1e03ba11
mov esi, 0x1e195948
movsw word es:[edi], word [esi]
mov esi, str.w9xpopen.exe
lea eax, [ebp - 0x174]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e03ba2e
sub eax, edx
sub ebx, eax
push ebx
lea eax, [ebp - 0x174]
push esi
push eax
call dword [sym.imp.MSVCR90.dll_strncat]
add esp, 0xc
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.MSVCR90.dll__stat64i32]
pop ecx
pop ecx
test eax, eax
je 0x1e03ba7e
push esi
push str.Can_not_locate__s_which_is_needed_for_popen_to_work_with_your_shell_or_platform.
push dword [sym.python27.dll_PyExc_RuntimeError]
call sym.python27.dll_PyErr_Format
add esp, 0xc
jmp 0x1e03bb90
mov ebx, str.__c
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e03ba88
sub eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e03ba9a
sub eax, edi
mov edx, eax
lea eax, [ebp - 0x174]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e03baae
sub eax, edi
mov edi, eax
mov eax, esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e03babe
mov ecx, dword [ebp - 8]
sub eax, esi
add eax, edi
add eax, edx
add eax, dword [ebp - 0x10]
lea esi, [eax + ecx + 2]
mov eax, esi
call fcn.1e0e6710
mov edi, esp
push esi
push 0
push edi
call sub.MSVCR90.dll_memset
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x174]
push ebx
push dword [ebp - 0xc]
push eax
push str.__s___s_s_s
push esi
push edi
call sym.python27.dll_PyOS_snprintf
add esp, 0x1c
mov dword [ebp - 8], 0x10
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov dword [ebp - 0x2c], eax
xor eax, eax
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x6c], esi
push 1
push ebx
push ebx
push edi
push ebx
mov dword [ebp - 0x40], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1e03bb76
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x1e03bb92
push edi
call fcn.1e039332
jmp 0x1e03bb8f
push str.Cannot_locate_a_COMSPEC_environment_variable_to_use_as_the_shell
push dword [sym.python27.dll_PyExc_RuntimeError]
call sym.python27.dll_PyErr_SetString
pop ecx
pop ecx
xor eax, eax
lea esp, [ebp - 0x1b4]
pop edi
pop esi
pop ebx
leave
ret