Function at 0x100331cb
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x60]
push edi
xor edi, edi
mov dword [ebp - 0x60], 0xc
push edi
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x58], 1
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x5c], edi
push eax
call ebx
test eax, eax
jne 0x10033211
push edi
push 0x1028eb84
call fcn.10030cec
pop ecx
pop ecx
jmp 0x10033816
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x18]
push 2
push edi
push edi
push eax
call esi
push eax
push dword [ebp - 0x3c]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x10033239
push edi
jmp 0x100332c1
push dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
call ebx
test eax, eax
je 0x10033297
push 2
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call esi
push eax
push dword [ebp - 0x40]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x10033278
push eax
jmp 0x100332c1
push dword [ebp - 0x40]
call edi
cmp dword [ebp + 0x10], 4
je 0x100332d0
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call ebx
test eax, eax
jne 0x100332a3
push 0
push 0x1028eb84
jmp 0x100337de
push 2
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push ebx
push eax
call esi
push eax
push dword [ebp - 0x44]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x100332cb
push ebx
push 0x1028eb90
jmp 0x100337de
push dword [ebp - 0x44]
call edi
mov eax, dword [ebp + 0x10]
dec eax
je 0x100334ec
dec eax
je 0x10033416
dec eax
je 0x100332ff
dec eax
je 0x10033416
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x50]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ebx
jmp 0x100335c5
test dword [ebp + 0xc], 0x4000
je 0x10033314
mov esi, 0x1028a14c
mov ebx, 0x1028eba0
jmp 0x1003331e
mov esi, 0x1028eba4
mov ebx, 0x1028eba8
push dword [ebp + 0xc]
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x28], esi
call fcn.101bfac9
push ebx
push eax
call fcn.101c0851
push dword [ebp + 0xc]
mov ebx, eax
push dword [ebp - 0x14]
mov dword [ebp - 8], ebx
call fcn.101bfac9
push esi
push eax
call fcn.101c0851
push dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
call fcn.101bfac9
push esi
push eax
call fcn.101c0851
mov esi, dword [ebp + 8]
push 0x1003381c
push dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
push esi
push ebx
call sym.extension.dll_PyFile_FromFile
add esp, 0x40
mov dword [ebp - 0xc], eax
push 0x1003381c
push dword [ebp - 0x28]
push esi
push dword [ebp - 0x20]
call sym.extension.dll_PyFile_FromFile
push 0x1003381c
push dword [ebp - 0x28]
mov ebx, eax
push esi
push dword [ebp - 0x24]
call sym.extension.dll_PyFile_FromFile
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
call sym.extension.dll_PyFile_SetBufSize
push 0
push ebx
call sym.extension.dll_PyFile_SetBufSize
push 0
push dword [ebp - 0x28]
call sym.extension.dll_PyFile_SetBufSize
push dword [ebp - 0x28]
push ebx
push dword [ebp - 0xc]
push 3
call sym.extension.dll_PyTuple_Pack
mov dword [ebp - 0x10], eax
add esp, 0x48
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100333e7
dec dword [eax]
jne 0x100333e7
mov ecx, dword [eax + 4]
push eax
call dword [ecx + 0x18]
pop ecx
test ebx, ebx
je 0x100333f7
dec dword [ebx]
jne 0x100333f7
mov eax, dword [ebx + 4]
push ebx
call dword [eax + 0x18]
pop ecx
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x1003340a
dec dword [ecx]
jne 0x1003340a
mov eax, dword [ecx + 4]
push ecx
call dword [eax + 0x18]
pop ecx
mov dword [ebp - 0xc], 3
jmp 0x100337f0
test dword [ebp + 0xc], 0x4000
je 0x1003342b
mov esi, 0x1028a14c
mov ebx, 0x1028eba0
jmp 0x10033435
mov esi, 0x1028eba4
mov ebx, 0x1028eba8
push dword [ebp + 0xc]
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x30], esi
call fcn.101bfac9
push ebx
push eax
call fcn.101c0851
push dword [ebp + 0xc]
mov ebx, eax
push dword [ebp - 0x14]
mov dword [ebp - 8], ebx
call fcn.101bfac9
push esi
push eax
call fcn.101c0851
mov esi, dword [ebp + 8]
push 0x1003381c
push dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
push esi
push ebx
call sym.extension.dll_PyFile_FromFile
mov ebx, eax
push 0
push ebx
call sym.extension.dll_PyFile_SetBufSize
push 0x1003381c
push dword [ebp - 0x30]
push esi
push dword [ebp - 0x20]
call sym.extension.dll_PyFile_FromFile
add esp, 0x48
mov esi, eax
push 0
push esi
call sym.extension.dll_PyFile_SetBufSize
cmp dword [ebp + 0x10], 4
pop ecx
pop ecx
je 0x100334ae
push dword [ebp - 0x1c]
call edi
push esi
push ebx
push 2
call sym.extension.dll_PyTuple_Pack
add esp, 0xc
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x100334cd
dec dword [ebx]
jne 0x100334cd
mov eax, dword [ebx + 4]
push ebx
call dword [eax + 0x18]
pop ecx
test esi, esi
je 0x100334dd
dec dword [esi]
jne 0x100334dd
mov eax, dword [esi + 4]
push esi
call dword [eax + 0x18]
pop ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], 2
jmp 0x100335cb
mov ecx, dword [ebp + 0xc]
mov eax, ecx
and eax, 0xc001
sub eax, 0x4000
je 0x1003357a
dec eax
je 0x1003356a
sub eax, 0x3fff
je 0x1003355a
dec eax
jne 0x10033549
push ecx
push dword [ebp - 0x18]
call fcn.101bfac9
mov esi, 0x1028eba8
push esi
push eax
call fcn.101c0851
push 0x1003381c
push esi
mov esi, dword [ebp + 8]
mov ebx, eax
push esi
push ebx
mov dword [ebp - 8], ebx
call sym.extension.dll_PyFile_FromFile
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x10], ebx
call sym.extension.dll_PyFile_SetBufSize
add esp, 0x28
push dword [ebp - 0x14]
jmp 0x100335b7
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], eax
jmp 0x100335be
push ecx
push dword [ebp - 0x14]
call fcn.101bfac9
mov esi, 0x1028eba4
jmp 0x10033588
push ecx
push dword [ebp - 0x18]
call fcn.101bfac9
mov esi, 0x1028eba0
jmp 0x10033518
push ecx
push dword [ebp - 0x14]
call fcn.101bfac9
mov esi, 0x1028a14c
push esi
push eax
call fcn.101c0851
push 0x1003381c
push esi
mov esi, dword [ebp + 8]
mov ebx, eax
push esi
push ebx
mov dword [ebp - 8], ebx
call sym.extension.dll_PyFile_FromFile
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x10], ebx
call sym.extension.dll_PyFile_SetBufSize
add esp, 0x28
push dword [ebp - 0x18]
call edi
push dword [ebp - 0x1c]
call edi
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x10], 4
jne 0x100337e7
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x2c]
push dword [ebp - 0x38]
push esi
call fcn.10033b7d
add esp, 0x14
test eax, eax
je 0x1003380e
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x24], ebx
cmp dword [0x10422914], 0
jne 0x10033614
call sym.extension.dll_PyDict_New
mov dword [0x10422914], eax
test eax, eax
je 0x100337b6
xor ecx, ecx
mov eax, ecx
mov dword [ebp - 0x34], ecx
push 2
mov esi, ecx
mov dword [ebp - 0x28], eax
mov ebx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x4c], ecx
call sym.extension.dll_PyList_New
push dword [ebp - 0x48]
mov dword [ebp - 4], eax
call sym.extension.dll_PyLong_FromVoidPtr
push dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
call sym.extension.dll_PyInt_FromLong
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, eax
mov dword [ebp - 0x54], edx
test ecx, ecx
je 0x100337b6
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10033777
test edx, edx
je 0x10033777
push eax
push ebx
push ecx
call sym.extension.dll_PyList_SetItem
push dword [ebp - 0x54]
push 1
push dword [ebp - 4]
call sym.extension.dll_PyList_SetItem
push dword [ebp - 8]
call sym.extension.dll_PyLong_FromVoidPtr
add esp, 0x1c
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100336a7
push dword [ebp - 4]
push eax
push dword [0x10422914]
call sym.extension.dll_PyDict_SetItem
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, 2
jl 0x100336d6
push dword [ebp - 0x20]
call sym.extension.dll_PyLong_FromVoidPtr
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100336d3
push dword [ebp - 4]
push ebx
push dword [0x10422914]
call sym.extension.dll_PyDict_SetItem
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, 3
jl 0x10033702
push dword [ebp - 0x24]
call sym.extension.dll_PyLong_FromVoidPtr
mov esi, eax
pop ecx
test esi, esi
je 0x100336ff
push dword [ebp - 4]
push esi
push dword [0x10422914]
call sym.extension.dll_PyDict_SetItem
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
test edx, edx
js 0x10033730
test eax, eax
je 0x1003372e
cmp dword [ebp - 0x30], 0
jl 0x1003372e
cmp ecx, 1
jle 0x1003371f
test ebx, ebx
je 0x1003372e
cmp dword [ebp - 0x34], 0
jl 0x1003372e
cmp ecx, 2
jle 0x10033774
test esi, esi
jne 0x10033774
test edx, edx
jne 0x10033744
test eax, eax
je 0x10033744
push eax
push dword [0x10422914]
call sym.extension.dll_PyDict_DelItem
pop ecx
pop ecx
cmp dword [ebp - 0x30], 0
jne 0x1003375c
test ebx, ebx
je 0x1003375c
push ebx
push dword [0x10422914]
call sym.extension.dll_PyDict_DelItem
pop ecx
pop ecx
cmp dword [ebp - 0x34], 0
jne 0x10033774
test esi, esi
je 0x10033774
push esi
push dword [0x10422914]
call sym.extension.dll_PyDict_DelItem
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
dec dword [ecx]
jne 0x10033783
mov eax, dword [ecx + 4]
push ecx
call dword [eax + 0x18]
pop ecx
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x10033796
dec dword [ecx]
jne 0x10033796
mov eax, dword [ecx + 4]
push ecx
call dword [eax + 0x18]
pop ecx
test ebx, ebx
je 0x100337a6
dec dword [ebx]
jne 0x100337a6
mov eax, dword [ebx + 4]
push ebx
call dword [eax + 0x18]
pop ecx
test esi, esi
je 0x100337b6
dec dword [esi]
jne 0x100337b6
mov eax, dword [esi + 4]
push esi
call dword [eax + 0x18]
pop ecx
push dword [ebp - 0x38]
call edi
test eax, eax
je 0x100337d7
push dword [ebp - 0x2c]
call edi
test eax, eax
je 0x100337d7
cmp dword [ebp + 0x10], 4
je 0x10033812
push dword [ebp - 0x50]
call edi
test eax, eax
jne 0x10033812
push 0
push 0x1028ebac
call fcn.10030cec
pop ecx
pop ecx
jmp 0x10033815
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x2c]
push dword [ebp - 0x38]
push esi
call fcn.10033b7d
add esp, 0x14
test eax, eax
jne 0x100335f9
xor eax, eax
jmp 0x10033815
mov eax, dword [ebp - 0x10]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret