Function at 0x1004f633
Capabilities:
Create pipe

Disassembly:
mov eax, 0x10085d17
call fcn.100840a8
sub esp, 0x88
push ebx
push esi
push edi
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x50]
push 3
call fcn.10018221
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 0xb2f67ab6
mov dword [ebp - 0x30], 0x8fa7ad11
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x30], 0x7c264f89
mov dword [ebp - 0x18], ebx
jmp 0x1004f689
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
mov dword [eax + ecx*4], 0xc418
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 3
jl 0x1004f679
xor edx, edx
mov dword [ebp - 0x18], ebx
inc edx
jmp 0x1004f6a5
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x34], 6
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edx
jl 0x1004f697
mov esi, dword [ebp - 0x50]
mov ecx, dword [esi]
imul eax, ecx, 0xe6e4
test eax, eax
jne 0x1004f6bf
mov eax, ebx
test ecx, ecx
je 0x1004f6c1
mov eax, edx
cmp dword [esi + 4], 0xb3f4b141
mov dword [ebp - 0x34], eax
sbb eax, eax
neg eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jne 0x1004f6de
mov ecx, ebx
cmp dword [ebp - 0x18], ebx
je 0x1004f6e0
mov ecx, edx
mov eax, dword [ebp - 0x50]
sub ecx, dword [eax]
cmp ecx, dword [eax]
jge 0x1004f6ed
cmp dword [eax], ebx
je 0x1004f6f4
mov ecx, edx
cmp dword [ebp - 0x18], ebx
jne 0x1004f6f6
mov ecx, ebx
mov eax, dword [ebp - 0x50]
sub ecx, dword [eax]
cmp ecx, 0x38d9
je 0x1004f70a
mov edi, edx
cmp dword [ebp - 0x34], ebx
jne 0x1004f70c
mov edi, ebx
mov eax, dword [ebp - 0x50]
xor ecx, ecx
cmp edi, dword [esi + 4]
setg cl
sub ecx, dword [esi + 4]
mov edx, dword [eax]
neg ecx
mov eax, dword [eax + 8]
sbb ecx, ecx
inc ecx
sub eax, ecx
xor ecx, ecx
cmp eax, edx
setl cl
xor eax, eax
cmp edx, ecx
setge al
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], ebx
je 0x1004f746
cmp dword [ebp - 0x18], ebx
je 0x1004f746
xor eax, eax
inc eax
jmp 0x1004f748
mov eax, ebx
mov dword [ebp - 0x30], eax
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
cmp dword [eax], 1
setne cl
xor eax, eax
cmp ecx, dword [esi + 4]
setle al
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xfffffffa
jmp 0x1004f7ae
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x80]
push 3
call fcn.10018221
mov dword [ebp - 0x20], ebx
jmp 0x1004f78c
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x80]
or dword [eax + ecx*4], 0xffffffff
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 3
jl 0x1004f77f
mov eax, dword [ebp - 0x30]
xor ecx, ecx
cmp eax, 0xfffffff8
mov eax, dword [ebp - 0x80]
setne cl
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x80]
call fcn.10018a1e
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x14
jl 0x1004f76d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.10018a1e
mov edi, dword [ebp - 0x2c]
xor esi, esi
inc esi
push esi
push 0x554
push edi
push 0x29e5
call fcn.1004b507
movdqa xmm0, xmmword [0x10007e00]
lea eax, [ebp - 0x80]
add esp, 0x10
mov dword [ebp - 0x5c], ebx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x58], ebx
movdqu xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x54], ebx
push dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x90]
push eax
push ebx
call fcn.10019760
mov dword [ebp - 0x30], 0xc8953526
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], ebx
jmp 0x1004f827
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x44], 0xf94f3783
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 3
jl 0x1004f819
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], bl
je 0x1004f83c
push ebx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov dword [ebp - 0x40], ebx
cmp dword [ebp - 0x40], 3
jg 0x1004f91c
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], 0xfffffff9
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
neg edx
sbb edx, edx
xor ecx, ecx
neg edx
cmp edx, eax
setge cl
xor edx, edx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
setg dl
imul eax, edx, 0xffff3f20
add dword [ebp - 0x1c], eax
je 0x1004f88d
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x5c]
push 3
mov eax, dword [eax + ecx*4]
mov dword [edx + esi*4], eax
pop esi
lea edx, [eax + 1]
sub edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
setne cl
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], ebx
jl 0x1004f90d
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], bl
je 0x1004f8f3
push ebx
push 0x24e7
push 0x2256
push 0x1f01
push 0x1be3
push 0x1ecd
push 0x215f
push ebx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], bl
je 0x1004f908
push ebx
push 0x30d
push ebx
call dword [sym.imp.KERNEL32.dll_HeapFree]
dec dword [ebp - 0x1c]
jns 0x1004f8c5
inc dword [ebp - 0x40]
cmp dword [ebp - 0x40], esi
push 1
pop esi
jle 0x1004f849
lea ecx, [ebp - 0x5c]
call fcn.10018a1e
push edi
call fcn.10031810
pop ecx
mov dword [ebp - 0x20], 0xe1757117
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x1c], 0xfffffffb
mov edi, eax
mov dword [ebp - 0x28], 0x37ad4351
push 4
call fcn.10018221
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], ebx
jmp 0x1004f964
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x68]
mov dword [eax + ecx*4], 0xfffffffb
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 4
jl 0x1004f954
mov dword [ebp - 0x20], ebx
jmp 0x1004fadd
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x18], 0xfffffffe
mov dword [ebp - 0x1c], 0xfba1a4d6
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
je 0x1004f9e8
mov dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x24], ebx
je 0x1004f9c1
mov dword [ebp - 0x30], 0xffff
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x68]
mov dword [eax], ecx
mov dword [ebp - 0x30], ecx
jmp 0x1004faaf
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], 0
je 0x1004faaf
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
jmp 0x1004faaf
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x74]
push 4
call fcn.10018221
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x24], ebx
jmp 0x1004fa0d
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x74]
mov dword [eax + ecx*4], 0x5d518144
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 4
jl 0x1004f9fd
cmp dword [ebp - 0x1c], ebx
jne 0x1004fae9
mov eax, dword [ebp - 0x2c]
xor edx, edx
imul ecx, dword [ebp - 0x28], 0xfffffffc
mov eax, dword [ebp - 0x74]
mov esi, dword [ebp - 0x74]
cmp dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x18]
setle dl
mov dword [esi + 8], edx
mov eax, dword [esi + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add eax, 7
imul eax, eax, 0xfffd
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], ebx
jne 0x1004fa5d
cmp dword [esi + 8], ebx
jne 0x1004fa5d
xor esi, esi
mov edx, ebx
inc esi
jmp 0x1004fa62
xor esi, esi
inc esi
mov edx, esi
mov eax, dword [ebp - 0x68]
xor ecx, ecx
cmp dword [eax + 4], edx
sete cl
cmp ecx, dword [ebp - 0x20]
jne 0x1004fa75
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
inc dword [ebp - 0x30]
cmp eax, esi
mov eax, dword [ebp - 0x18]
cmovl edx, ebx
xor ecx, ecx
cmp edx, eax
setl cl
sub ecx, 0x3a0aeb04
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x68]
mov dword [eax + 0xc], ecx
lea ecx, [ebp - 0x74]
call fcn.10018a1e
mov dword [ebp - 0x1c], ebx
jmp 0x1004fad4
mov dword [ebp - 0x18], ebx
jmp 0x1004facb
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + eax*4]
mov dword [ecx + edx*4], eax
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 3
jle 0x1004fab9
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jle 0x1004fab4
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x1a
jl 0x1004f972
jmp 0x1004faf1
lea ecx, [ebp - 0x74]
call fcn.10018a1e
lea ecx, [ebp - 0x68]
call fcn.10018a1e
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret