Function at 0x1003f2be
Capabilities:
Create pipe

Disassembly:
mov eax, 0x1005fe81
call fcn.1005e378
sub esp, 0x8c
push ebx
push esi
push edi
xor ebx, ebx
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x2c], ebx
call fcn.1003baa3
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.1003f5a9
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], 0xfffffff8
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x1003f31e
push ebx
push 0x1713
push 0x8ce
push 0x123f
push 0x1b62
push 0x2627
push 0x29
push ebx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x1003f338
push 0x15d8
push 0x28e
push ebx
call dword [sym.imp.GDI32.dll_PtInRegion]
mov edx, dword [ebp - 0x44]
add esi, 0xffffc872
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x1003f371
cmp dword [eax + 0x10], esi
jge 0x1003f356
mov eax, dword [eax + 8]
jmp 0x1003f35a
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x1003f34c
cmp ecx, edx
je 0x1003f371
cmp esi, dword [ecx + 0x10]
jl 0x1003f371
mov dword [ebp - 0x3c], ecx
lea esi, [ebp - 0x3c]
jmp 0x1003f377
mov dword [ebp - 0x38], edx
lea esi, [ebp - 0x38]
mov esi, dword [esi]
xor edx, edx
mov dword [ebp - 0x18], 0xf251d69f
inc edx
mov dword [ebp - 0x30], 0x35637001
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x1c], ebx
push 2
mov dword [ebp - 0x14], ebx
pop ebx
jmp 0x1003f3b6
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x28], 0x6a53d06c
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], ebx
jl 0x1003f3a8
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jl 0x1003f48d
mov dword [ebp - 0x14], 0x732aa61f
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x1c], edx
push 3
call fcn.1000e43e
push 3
pop eax
mov dword [ebp - 0x1c], eax
xor edx, edx
mov dword [ebp - 0x1c], 0x248e6bae
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], eax
jge 0x1003f40c
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x60]
mov dword [eax + ecx*4], 1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x1003f3f6
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0x28], edx
jne 0x1003f425
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0x28], edx
jne 0x1003f425
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x28]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x28]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x28]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0x62b000cd
mov dword [ebp - 0x14], edx
jmp 0x1003f473
mov dword [ebp - 0x20], edx
jmp 0x1003f455
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x64], 7
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 1
jl 0x1003f447
mov byte [ebp - 0xd], dl
cmp byte [ebp - 0xd], 0
je 0x1003f46d
push edx
call dword [sym.imp.GDI32.dll_CreateBitmapIndirect]
xor edx, edx
inc dword [ebp - 0x1c]
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffffffe7
jg 0x1003f442
lea ecx, [ebp - 0x60]
call fcn.1000e4c1
dec dword [ebp - 0x18]
push 1
pop edx
jns 0x1003f3c8
cmp dword [ebp - 0x24], 0
jne 0x1003f4af
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x30]
jne 0x1003f4af
mov eax, dword [ebp - 0x34]
mov ecx, 0x69a3
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
sub ecx, eax
jne 0x1003f4af
xor edx, edx
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x54], ecx
neg ecx
cmp ecx, edx
setne al
mov dword [ebp - 0x1c], eax
mov eax, dword [0x10a06ac0]
test al, 1
jne 0x1003f4f6
and dword [0x10a06ae0], 0
or eax, 1
mov dword [0x10a06ac0], eax
xor eax, eax
push 0x10060179
mov dword [0x10a06ae4], 7
mov word [0x10a06ad0], ax
call fcn.10046209
pop ecx
cmp esi, dword [ebp - 0x44]
je 0x1003f516
push dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [ebp - 0x94]
call fcn.10036851
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 1
inc ebx
jmp 0x1003f526
push 0x10a06ad0
lea ecx, [ebp - 0x7c]
call fcn.1000e271
mov dword [ebp - 4], ebx
push eax
mov ecx, edi
mov dword [ebp - 0x2c], ebx
call fcn.1000e271
or ebx, 4
test bl, 2
je 0x1003f548
push 0
push 1
lea ecx, [ebp - 0x7c]
and ebx, 0xfffffffd
call fcn.1000edc9
test bl, 1
je 0x1003f55c
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.1000edc9
lea ecx, [ebp - 0x44]
call fcn.1003f577
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