Function at 0x10048409
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069fd5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push esi
push edi
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x1004860f
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x80]
movzx eax, byte [eax]
test eax, eax
je 0x10048509
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x58], eax
push dword [ebp - 0x58]
mov eax, dword [ebp - 0x30]
push dword [eax]
mov eax, dword [ebp - 0x60]
push dword [eax]
lea eax, [ebp - 0xac]
push eax
call fcn.10042ace
add esp, 0x10
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x68], eax
and dword [ebp - 4], 0
push dword [ebp - 0x68]
mov ecx, dword [ebp - 0x88]
call fcn.10049711
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.10049746
jmp 0x1004860d
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp - 0x10]
call fcn.1001f9f7
cmp dword [eax], 0xffffffff
jle 0x10048551
mov dword [ebp - 0x20], 1
jmp 0x10048555
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0x5f9c7104
jl 0x10048567
mov dword [ebp - 0x28], 1
jmp 0x1004856b
and dword [ebp - 0x28], 0
push 0
mov ecx, dword [ebp - 0x10]
call fcn.1001f9f7
mov eax, dword [eax]
cmp eax, dword [ebp - 0x28]
jle 0x10048585
mov dword [ebp - 0x14], 1
jmp 0x10048589
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
push 0
mov ecx, dword [ebp - 0x10]
call fcn.1001f9f7
mov ecx, dword [ebp - 0x14]
sub ecx, dword [eax]
sub edi, ecx
cmp esi, edi
jg 0x100485b1
mov dword [ebp - 0x74], 1
jmp 0x100485b5
and dword [ebp - 0x74], 0
push 0
mov ecx, dword [ebp - 0x10]
call fcn.1001f9f7
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x100485d1
mov dword [ebp - 0x1c], 1
jmp 0x100485d5
and dword [ebp - 0x1c], 0
push 0
mov ecx, dword [ebp - 0x10]
call fcn.1001f9f7
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax]
jl 0x100485ef
mov dword [ebp - 0x2c], 1
jmp 0x100485f3
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
sub esi, dword [eax]
push 0
mov ecx, dword [ebp - 0x10]
call fcn.1001f9f7
imul esi, dword [eax]
mov eax, dword [ebp - 0x7c]
mov dword [eax], esi
jmp 0x10048673
lea eax, [ebp + 0x30]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x84]
movzx eax, byte [eax]
test eax, eax
je 0x10048663
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax]
test eax, eax
je 0x10048661
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
jmp 0x10048673
push 0x148a
push 0x10aa
call dword [sym.imp.GDI32.dll_SetPolyFillMode]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret