Function at 0x1004fc78
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080bed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1004fdb5
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x120], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
movzx eax, byte [eax]
test eax, eax
je 0x1004fd73
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push dword [eax]
mov ecx, dword [ebp - 0x54]
call fcn.10020c90
mov eax, dword [ebp - 0x50]
push dword [eax]
mov ecx, dword [ebp - 0x54]
call fcn.10020c90
cmp dword [eax], 1
jbe 0x1004fd53
mov dword [ebp - 0x74], 1
jmp 0x1004fd57
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x50]
push dword [eax]
mov ecx, dword [ebp - 0x54]
call fcn.10020c90
mov ecx, dword [ebp - 0x74]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x9c]
mov dword [eax], ecx
jmp 0x1004fdb0
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x114]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xb4]
mov ecx, dword [ecx]
mov dword [eax + 8], ecx
jmp 0x1005035d
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x6c], 0x65da
mov dword [ebp - 0xbc], 0x1000cda8
cmp dword [ebp - 0x6c], 0x6805
jle 0x1004fe9f
and dword [ebp - 0x44], 0
jmp 0x1004fde9
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xdb6
jge 0x1004fe9f
and dword [ebp - 0x3c], 0
jmp 0x1004fe03
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x314d
jge 0x1004fe9a
and dword [ebp - 0x1c], 0
jmp 0x1004fe1d
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x973
jge 0x1004fe95
and dword [ebp - 0x24], 0
jmp 0x1004fe33
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x4ee
jge 0x1004fe93
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x44]
or eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], edx
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
lea ecx, [ebp - 0x164]
call fcn.1001098e
pop ecx
pop ecx
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
call fcn.100208b8
push eax
call fcn.1006abb3
pop ecx
lea ecx, [ebp - 0x164]
call fcn.100208ae
jmp 0x1004fe2c
jmp 0x1004fe16
jmp 0x1004fdfc
jmp 0x1004fde2
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0x6c], 0x65a8
jge 0x1004febd
push dword [ebp - 0xbc]
call fcn.1006abb3
pop ecx
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0x64], 0x2eb7
mov dword [ebp - 0xc4], 0x1000ce10
cmp dword [ebp - 0x64], 0x328e
jle 0x1004ff6e
and dword [ebp - 0x4c], 0
jmp 0x1004fef1
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x5ef1
jge 0x1004ff64
and dword [ebp - 0x48], 0
jmp 0x1004ff07
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x326f
jge 0x1004ff62
mov eax, dword [ebp - 0x4c]
imul eax, dword [ebp - 0x48]
cdq
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], edx
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x194]
call fcn.1001098e
pop ecx
pop ecx
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
call fcn.100208b8
push eax
call fcn.1006abb3
pop ecx
lea ecx, [ebp - 0x194]
call fcn.100208ae
jmp 0x1004ff00
jmp 0x1004feea
push 0
push 0
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0x64], 0x2cb3
jge 0x1004ff8c
push dword [ebp - 0xc4]
call fcn.1006abb3
pop ecx
lea eax, [ebp + 0x34]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x78], 0x46de
mov dword [ebp - 0xd8], 0x1000ce38
cmp dword [ebp - 0x78], 0x48f3
jle 0x10050037
and dword [ebp - 0x30], 0
jmp 0x1004ffc5
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x6cdc
jge 0x10050037
and dword [ebp - 0x40], 0
jmp 0x1004ffdb
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x49c8
jge 0x10050035
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x40]
cdq
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], edx
push dword [ebp - 0x124]
push dword [ebp - 0x128]
lea ecx, [ebp - 0x17c]
call fcn.1001098e
pop ecx
pop ecx
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
call fcn.100208b8
push eax
call fcn.1006abb3
pop ecx
lea ecx, [ebp - 0x17c]
call fcn.100208ae
jmp 0x1004ffd4
jmp 0x1004ffbe
mov eax, dword [ebp - 0xcc]
movzx eax, byte [eax]
test eax, eax
je 0x10050278
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x58], 0x19c8
mov dword [ebp - 0x80], 0x1000ce68
cmp dword [ebp - 0x58], 0x1ae1
jle 0x1005011a
and dword [ebp - 0x38], 0
jmp 0x1005009d
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x6a27
jge 0x10050104
and dword [ebp - 0x28], 0
jmp 0x100500b3
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x522d
jge 0x10050102
and dword [ebp - 0x2c], 0
jmp 0x100500c9
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x690a
jge 0x10050100
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x28]
or eax, dword [ebp - 0x2c]
cdq
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], edx
push dword [ebp - 0x130]
push dword [ebp - 0x134]
mov ecx, 0x10085b58
call fcn.100208d8
jmp 0x100500c2
jmp 0x100500ac
jmp 0x10050096
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0x58], 0x1717
jge 0x1005013c
mov edx, dword [ebp - 0x80]
mov ecx, 0x10085b58
call fcn.10023628
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x1005015e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0xfffffff7
jle 0x10050273
mov dword [ebp - 0x5c], 0xab72
mov dword [ebp - 0x70], 0x316e
mov dword [ebp - 0xa8], 0x1000ce88
cmp dword [ebp - 0x70], 0x318a
jle 0x10050216
push 0
call dword [sym.imp.GDI32.dll_EndDoc]
and dword [ebp - 0x34], 0
jmp 0x100501a4
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x5a1
jge 0x10050216
and dword [ebp - 0x14], 0
jmp 0x100501ba
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xbb0
jge 0x10050214
mov eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x14]
cdq
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], edx
push dword [ebp - 0xe4]
push dword [ebp - 0xe8]
lea ecx, [ebp - 0x1ac]
call fcn.1001098e
pop ecx
pop ecx
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
call fcn.100208b8
push eax
call fcn.1006abb3
pop ecx
lea ecx, [ebp - 0x1ac]
call fcn.100208ae
jmp 0x100501b3
jmp 0x1005019d
cmp dword [ebp - 0x5c], 0
je 0x1005022b
cmp dword [ebp - 0x5c], 0
je 0x1005022b
mov dword [ebp - 0x60], 1
jmp 0x1005022f
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x60]
je 0x10050242
mov dword [ebp - 0x68], 1
jmp 0x10050246
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
add eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xa0]
mov dword [ecx], eax
cmp dword [ebp - 0x70], 0x313b
jge 0x1005026e
push dword [ebp - 0xa8]
call fcn.1006abb3
pop ecx
jmp 0x10050153
jmp 0x10050348
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x100502bb
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 1
jg 0x10050348
mov dword [ebp - 0x138], 0xfffffff6
mov dword [ebp - 0x13c], 0x63f9e923
mov dword [ebp - 0x140], 7
push 4
lea ecx, [ebp - 0x14c]
call fcn.10020bf2
and dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
jmp 0x10050306
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
jge 0x10050322
push dword [ebp - 0x20]
lea ecx, [ebp - 0x14c]
call fcn.10020c90
mov dword [eax], 0x81ced8f6
jmp 0x100502ff
push 0
push 0
push dword [ebp - 0xd0]
call fcn.100488ec
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.10020c74
jmp 0x100502b0
cmp dword [ebp - 0x78], 0x4538
jge 0x1005035d
push dword [ebp - 0xd8]
call fcn.1006abb3
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret