Function at 0x100101ed
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ee02
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xd8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x10010555
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x38], 0x48a2
mov dword [ebp - 0x58], 0x10007944
cmp dword [ebp - 0x38], 0x4b65
jle 0x1001031b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
and dword [ebp - 0x2c], 0
jmp 0x10010269
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x63d8
jge 0x1001031b
and dword [ebp - 0x30], 0
jmp 0x10010283
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x756b
jge 0x10010316
and dword [ebp - 0x28], 0
jmp 0x1001029d
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3591
jge 0x10010311
and dword [ebp - 0x24], 0
jmp 0x100102b3
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x332f
jge 0x1001030f
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
sar eax, cl
or eax, dword [ebp - 0x2c]
cdq
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
push dword [ebp - 0x94]
push dword [ebp - 0x98]
lea ecx, [ebp - 0xe8]
call fcn.1000a54c
pop ecx
pop ecx
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
call fcn.10021824
push eax
call fcn.1005677c
pop ecx
lea ecx, [ebp - 0xe8]
call fcn.1002181a
jmp 0x100102ac
jmp 0x10010296
jmp 0x1001027c
jmp 0x10010262
lea eax, [ebp + 0x14]
mov dword [ebp - 0x88], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x38], 0x4684
jge 0x1001033a
push dword [ebp - 0x58]
call fcn.1005677c
pop ecx
jmp 0x10010356
or dword [ebp - 4], 0xffffffff
jmp 0x10010360
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x100104f6
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x100103b1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 1
jg 0x100104f4
mov dword [ebp - 0xbc], 1
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0xb4], 1
mov dword [ebp - 0xb0], 1
lea ecx, [ebp - 0x31]
call fcn.10021e27
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0xd0]
call fcn.10021e2a
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0xc8]
call fcn.10021dd6
mov dword [ebp - 4], 2
mov dword [ebp - 0x70], 0x65f4e26c
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.10021e18
push 2
lea ecx, [ebp - 0xc8]
call fcn.10021e18
mov dword [eax], 0x308f4727
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.10021e18
mov eax, dword [eax]
add eax, 0x308f4720
cmp eax, 0x278c007c
jne 0x10010469
mov dword [ebp - 0x40], 1
jmp 0x1001046d
and dword [ebp - 0x40], 0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.10021e18
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
cmp ecx, 0xed1
jle 0x1001049c
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.10021e18
cmp dword [eax], 0
jne 0x1001049c
and dword [ebp - 0x48], 0
jmp 0x100104a3
mov dword [ebp - 0x48], 1
cmp dword [ebp - 0x48], 0x60ed
jne 0x100104b5
mov dword [ebp - 0x3c], 1
jmp 0x100104b9
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.10021e18
mov eax, dword [eax]
cmp eax, dword [ebp - 0x3c]
jl 0x100104d6
mov dword [ebp - 0x44], 1
jmp 0x100104da
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x70], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc8]
call fcn.10021dfc
jmp 0x100103a6
jmp 0x10010550
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], 0
jmp 0x10010530
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 4
jge 0x10010550
mov eax, dword [ebp - 0x20]
push dword [eax]
mov ecx, dword [ebp - 0xa0]
call fcn.10021e18
mov dword [eax], 0xfffffffa
jmp 0x10010525
jmp 0x100105e7
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x100105c7
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
jmp 0x100105a8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 1
jge 0x100105c5
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov ecx, dword [ebp - 0x7c]
call fcn.10021e18
mov dword [eax], 0x6986d6d
jmp 0x1001059d
jmp 0x100105e7
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret