Function at 0x1e054220
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
push 0
mov edi, eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x6c], 0xc
mov dword [esp + 0x74], 1
mov dword [esp + 0x70], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1e05428f
mov esi, dword [sym.imp.MSVCR90.dll__errno]
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
call esi
mov eax, dword [eax]
push 0
push eax
mov eax, dword [sym.python27.dll_PyExc_WindowsError]
push eax
call sym.python27.dll_PyErr_SetExcFromWindowsErrWithFilenameObject
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call esi
mov edx, dword [esp + 0x3c]
push eax
push edx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1e054261
mov ecx, dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
push 0
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1e05430c
mov esi, dword [sym.imp.MSVCR90.dll__errno]
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
call esi
mov eax, dword [eax]
mov edx, dword [sym.python27.dll_PyExc_WindowsError]
push 0
push eax
push edx
call sym.python27.dll_PyErr_SetExcFromWindowsErrWithFilenameObject
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x40]
push eax
push ecx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1e0542dd
mov eax, dword [esp + 0x30]
push eax
call ebx
cmp dword [ebp + 0xc], 4
je 0x1e0543aa
push 0
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1e054383
mov esi, dword [sym.imp.MSVCR90.dll__errno]
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
call esi
mov eax, dword [eax]
mov ecx, dword [sym.python27.dll_PyExc_WindowsError]
push 0
push eax
push ecx
call sym.python27.dll_PyErr_SetExcFromWindowsErrWithFilenameObject
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
lea edx, [esp + 0x20]
push edx
call esi
push eax
mov eax, dword [esp + 0x48]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1e054354
mov edx, dword [esp + 0x34]
push edx
call ebx
mov eax, dword [ebp + 0xc]
dec eax
cmp eax, 3
ja case.default.0x1e0543b7
jmp dword [eax*4 + 0x1e0549f0]
mov eax, edi
and eax, 0xc001
cmp eax, 0x8000
jg 0x1e0544ee
je 0x1e054496
sub eax, 0x4000
je 0x1e05443e
sub eax, 1
jne 0x1e05451c
mov eax, dword [esp + 0xc]
push edi
push eax
call dword [sym.imp.MSVCR90.dll__open_osfhandle]
push 0x1e1f9538
push eax
call dword [sym.imp.MSVCR90.dll__fdopen]
push 0x1e054a00
push 0x1e1f9538
mov ecx, dword [ebp + 8]
mov esi, eax
push ecx
push esi
call sym.python27.dll_PyFile_FromFile
push 0
push eax
mov dword [esp + 0x40], eax
call sym.python27.dll_PyFile_SetBufSize
mov edx, dword [esp + 0x38]
add esp, 0x28
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call ebx
mov dword [esp + 0x1c], 1
jmp 0x1e054760
mov ecx, dword [esp + 0x10]
push edi
push ecx
call dword [sym.imp.MSVCR90.dll__open_osfhandle]
push 0x1e1f4d0c
push eax
call dword [sym.imp.MSVCR90.dll__fdopen]
mov edx, dword [ebp + 8]
push 0x1e054a00
push 0x1e1f4d0c
mov esi, eax
push edx
push esi
call sym.python27.dll_PyFile_FromFile
push 0
push eax
mov dword [esp + 0x40], eax
call sym.python27.dll_PyFile_SetBufSize
mov eax, dword [esp + 0x34]
add esp, 0x28
push eax
call ebx
mov ecx, dword [esp + 0x14]
push ecx
call ebx
mov dword [esp + 0x1c], 1
jmp 0x1e054760
mov edx, dword [esp + 0x10]
push edi
push edx
call dword [sym.imp.MSVCR90.dll__open_osfhandle]
push 0x1e14bb6c
push eax
call dword [sym.imp.MSVCR90.dll__fdopen]
push 0x1e054a00
mov esi, eax
mov eax, dword [ebp + 8]
push 0x1e14bb6c
push eax
push esi
call sym.python27.dll_PyFile_FromFile
push 0
push eax
mov dword [esp + 0x40], eax
call sym.python27.dll_PyFile_SetBufSize
mov ecx, dword [esp + 0x34]
add esp, 0x28
push ecx
call ebx
mov edx, dword [esp + 0x14]
push edx
call ebx
mov dword [esp + 0x1c], 1
jmp 0x1e054760
cmp eax, 0x8001
jne 0x1e05451c
mov eax, dword [esp + 0xc]
push edi
push eax
call dword [sym.imp.MSVCR90.dll__open_osfhandle]
push 0x1e14bca4
push eax
call dword [sym.imp.MSVCR90.dll__fdopen]
push 0x1e054a00
push 0x1e14bca4
jmp 0x1e054408
mov esi, dword [esp + 0x40]
mov dword [esp + 0x1c], 1
jmp 0x1e054760
test edi, 0x4000
je 0x1e054544
mov ebx, 0x1e1f4d0c
mov dword [esp + 0x1c], 0x1e1f9538
jmp 0x1e054551
mov ebx, 0x1e14bb6c
mov dword [esp + 0x1c], 0x1e14bca4
mov ecx, dword [esp + 0xc]
push edi
push ecx
call dword [sym.imp.MSVCR90.dll__open_osfhandle]
mov edx, dword [esp + 0x24]
push edx
push eax
call dword [sym.imp.MSVCR90.dll__fdopen]
mov esi, eax
mov eax, dword [esp + 0x20]
push edi
push eax
call dword [sym.imp.MSVCR90.dll__open_osfhandle]
push ebx
push eax
call dword [sym.imp.MSVCR90.dll__fdopen]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebp + 8]
push 0x1e054a00
push ecx
push edx
push esi
mov dword [esp + 0x50], eax
call sym.python27.dll_PyFile_FromFile
mov edi, eax
push 0
push edi
call sym.python27.dll_PyFile_SetBufSize
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x58]
push 0x1e054a00
push ebx
push eax
push ecx
call sym.python27.dll_PyFile_FromFile
add esp, 0x48
mov ebx, eax
push 0
push ebx
call sym.python27.dll_PyFile_SetBufSize
add esp, 8
cmp dword [ebp + 0xc], 4
je 0x1e0545d6
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push 2
call sym.python27.dll_PyTuple_Pack
add esp, 0xc
mov dword [esp + 0x18], eax
test edi, edi
je 0x1e0545fb
add dword [edi], 0xffffffff
jne 0x1e0545fb
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x18]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x1e054610
add dword [ebx], 0xffffffff
jne 0x1e054610
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x18]
push ebx
call eax
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c], 2
jmp 0x1e054760
test edi, 0x4000
je 0x1e05463a
mov ebx, 0x1e1f4d0c
mov dword [esp + 0x1c], 0x1e1f9538
jmp 0x1e054647
mov ebx, 0x1e14bb6c
mov dword [esp + 0x1c], 0x1e14bca4
mov ecx, dword [esp + 0xc]
push edi
push ecx
call dword [sym.imp.MSVCR90.dll__open_osfhandle]
mov edx, dword [esp + 0x24]
push edx
push eax
call dword [sym.imp.MSVCR90.dll__fdopen]
mov esi, eax
mov eax, dword [esp + 0x20]
push edi
push eax
call dword [sym.imp.MSVCR90.dll__open_osfhandle]
push ebx
push eax
call dword [sym.imp.MSVCR90.dll__fdopen]
mov ecx, dword [esp + 0x34]
push edi
push ecx
mov dword [esp + 0x48], eax
call dword [sym.imp.MSVCR90.dll__open_osfhandle]
push ebx
push eax
call dword [sym.imp.MSVCR90.dll__fdopen]
mov edx, dword [esp + 0x4c]
push 0x1e054a00
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
push edx
push eax
push esi
call sym.python27.dll_PyFile_FromFile
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x60]
add esp, 0x40
push 0x1e054a00
push ebx
push ecx
push edx
mov edi, eax
call sym.python27.dll_PyFile_FromFile
mov ecx, dword [esp + 0x4c]
push 0x1e054a00
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
push ebx
push eax
push ecx
call sym.python27.dll_PyFile_FromFile
push 0
push edi
mov ebx, eax
call sym.python27.dll_PyFile_SetBufSize
mov edx, dword [esp + 0x44]
push 0
push edx
call sym.python27.dll_PyFile_SetBufSize
push 0
push ebx
call sym.python27.dll_PyFile_SetBufSize
mov eax, dword [esp + 0x54]
push ebx
push eax
push edi
push 3
call sym.python27.dll_PyTuple_Pack
add esp, 0x48
mov dword [esp + 0x18], eax
test edi, edi
je 0x1e05471e
add dword [edi], 0xffffffff
jne 0x1e05471e
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 0x18]
push edi
call edx
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1e054737
add dword [eax], 0xffffffff
jne 0x1e054737
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push eax
call edx
add esp, 4
test ebx, ebx
je 0x1e05474c
add dword [ebx], 0xffffffff
jne 0x1e05474c
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x18]
push ebx
call ecx
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c], 3
jmp 0x1e054760
mov esi, dword [esp + 0x40]
cmp dword [ebp + 0xc], 4
mov eax, dword [ebp + 8]
jne 0x1e05478b
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x2c]
push edx
mov ecx, dword [esp + 0x2c]
push eax
call fcn.1e053e10
add esp, 0xc
test eax, eax
jne 0x1e05479b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x38]
push ecx
push edx
mov edx, dword [esp + 0x30]
jmp 0x1e054773
cmp dword [0x1e2826b4], 0
jne 0x1e0547b6
call sym.python27.dll_PyDict_New
mov dword [0x1e2826b4], eax
test eax, eax
je 0x1e0549b1
xor eax, eax
push 2
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
call sym.python27.dll_PyList_New
mov ecx, dword [esp + 0x3c]
add esp, 4
push ecx
mov edi, eax
call sym.python27.dll_PyLong_FromVoidPtr
mov edx, dword [esp + 0x20]
add esp, 4
push edx
mov ebx, eax
call sym.python27.dll_PyInt_FromLong
add esp, 4
mov dword [esp + 0x38], eax
test edi, edi
je 0x1e0549ab
test ebx, ebx
je 0x1e05494f
test eax, eax
je 0x1e05494f
push ebx
push 0
push edi
call sym.python27.dll_PyList_SetItem
mov eax, dword [esp + 0x44]
add esp, 0xc
push eax
push 1
push edi
call sym.python27.dll_PyList_SetItem
add esp, 0xc
push esi
call sym.python27.dll_PyLong_FromVoidPtr
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
je 0x1e054858
mov edx, dword [0x1e2826b4]
push edi
mov ecx, eax
push ecx
push edx
call sym.python27.dll_PyDict_SetItem
add esp, 0xc
mov dword [esp + 0x50], eax
mov esi, dword [esp + 0x1c]
cmp esi, 2
jl 0x1e05488f
mov eax, dword [esp + 0x20]
push eax
call sym.python27.dll_PyLong_FromVoidPtr
mov ebx, eax
add esp, 4
mov dword [esp + 0x48], ebx
test ebx, ebx
je 0x1e054893
mov ecx, dword [0x1e2826b4]
push edi
push ebx
push ecx
call sym.python27.dll_PyDict_SetItem
add esp, 0xc
mov dword [esp + 0x54], eax
jmp 0x1e054893
mov ebx, dword [esp + 0x48]
cmp esi, 3
jl 0x1e0548c5
mov edx, dword [esp + 0x3c]
push edx
call sym.python27.dll_PyLong_FromVoidPtr
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
test esi, esi
je 0x1e0548c9
mov eax, dword [0x1e2826b4]
push edi
push esi
push eax
call sym.python27.dll_PyDict_SetItem
add esp, 0xc
mov dword [esp + 0x58], eax
jmp 0x1e0548c9
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
test ecx, ecx
jl 0x1e05491a
cmp dword [esp + 0x44], 0
je 0x1e0548fc
cmp dword [esp + 0x54], 0
jl 0x1e0548fc
mov eax, dword [esp + 0x1c]
cmp eax, 1
jle 0x1e0548ec
test ebx, ebx
je 0x1e0548fc
cmp dword [esp + 0x58], 0
jl 0x1e0548fc
cmp eax, 2
jle 0x1e05494f
test esi, esi
jne 0x1e05494f
test ecx, ecx
jne 0x1e05491a
cmp dword [esp + 0x44], ecx
je 0x1e05491a
mov ecx, dword [esp + 0x44]
mov edx, dword [0x1e2826b4]
push ecx
push edx
call sym.python27.dll_PyDict_DelItem
add esp, 8
cmp dword [esp + 0x54], 0
jne 0x1e054934
test ebx, ebx
je 0x1e054934
mov eax, dword [0x1e2826b4]
push ebx
push eax
call sym.python27.dll_PyDict_DelItem
add esp, 8
cmp dword [esp + 0x58], 0
jne 0x1e05494f
test esi, esi
je 0x1e05494f
mov ecx, dword [0x1e2826b4]
push esi
push ecx
call sym.python27.dll_PyDict_DelItem
add esp, 8
add dword [edi], 0xffffffff
jne 0x1e054960
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x18]
push edi
call eax
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1e054979
add dword [eax], 0xffffffff
jne 0x1e054979
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push eax
call edx
add esp, 4
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1e054992
add dword [eax], 0xffffffff
jne 0x1e054992
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push eax
call edx
add esp, 4
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x1e0549ab
add dword [eax], 0xffffffff
jne 0x1e0549ab
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push eax
call edx
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
push eax
call ebx
test eax, eax
je 0x1e054354
mov edx, dword [esp + 0x28]
push edx
call ebx
test eax, eax
je 0x1e054261
cmp dword [ebp + 0xc], 4
je 0x1e0549e4
mov ecx, dword [esp + 0x40]
push ecx
call ebx
test eax, eax
je 0x1e0542dd
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret