Function at 0x10027693
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100279f7
mov eax, dword [ebp + 0x5c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x110], eax
lea eax, [ebp + 0x58]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xf0]
movzx eax, byte [eax]
test eax, eax
je 0x100279cd
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x10027832
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x10027843
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x10027843
mov dword [ebp - 0x5c], 1
jmp 0x10027847
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 8]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
je 0x1002787a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x1002787a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x1002787a
mov dword [ebp - 0x14], 1
jmp 0x1002787e
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp dword [ebp - 0x14], 0xffffffff
jbe 0x10027898
mov dword [ebp - 0x2c], 1
jmp 0x1002789c
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x2c]
jl 0x100278af
mov dword [ebp - 0x1c], 1
jmp 0x100278b3
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
cmp dword [ebp - 0x1c], 0
jne 0x100278cd
mov dword [ebp - 0x3c], 1
jmp 0x100278d1
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
cmp dword [ebp - 0x3c], eax
jl 0x100278e1
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x100278f6
mov dword [ebp - 0x54], 1
jmp 0x100278fa
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x54], eax
jge 0x1002790d
mov dword [ebp - 0x24], 1
jmp 0x10027911
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
jl 0x1002792c
mov dword [ebp - 0x64], 1
jmp 0x10027930
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x64], eax
jge 0x10027943
mov dword [ebp - 0x4c], 1
jmp 0x10027947
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 4
je 0x10027956
mov dword [ebp - 0x30], 1
jmp 0x1002795a
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x30]
add eax, 0xfff9
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jl 0x1002799d
mov dword [ebp - 0x20], 1
jmp 0x100279a1
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
je 0x100279bf
mov dword [ebp - 0x40], 1
jmp 0x100279c3
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
jmp 0x100279f2
push 0
push 0xa
push 0x289
push 0x7fd
push 0x2581
push 0x2414
push 0x1a0d
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
jmp 0x10027bb3
lea eax, [ebp + 0x54]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x10027ba8
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0xf4]
cmp dword [eax], 0
je 0x10027b93
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0xfc]
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jg 0x10027b31
push 0
mov ecx, dword [ebp - 0x60]
call fcn.1000f48a
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x13c], eax
push 0
mov ecx, dword [ebp - 0x104]
call fcn.1000f48a
cmp dword [eax], 1
jbe 0x10027b57
mov dword [ebp - 0x50], 1
jmp 0x10027b5b
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0xfffffff6
je 0x10027b6a
mov dword [ebp - 0x28], 1
jmp 0x10027b6e
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jle 0x10027b93
push 0xfffffffffffffffe
pop eax
test eax, eax
je 0x10027b93
mov dword [ebp - 0x68], 1
jmp 0x10027b97
and dword [ebp - 0x68], 0
push 1
mov ecx, dword [ebp - 0x60]
call fcn.1000f48a
mov ecx, dword [ebp - 0x68]
mov dword [eax], ecx
jmp 0x10027bb3
push 0x124f
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esp, ebp
pop ebp
ret