Function at 0x10048569
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 8], ebx
mov esi, ecx
push edi
mov dword [ebp - 0xc], ebx
jmp 0x1004858c
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x28], 0x25a8
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x1004857e
push 1
mov dword [ebp - 8], 0x14
pop ecx
jmp 0x100485ab
mov dword [ebp - 0x14], 0x8cb4c23a
mov dword [ebp - 0x14], ecx
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xfffffffa
jl 0x1004859e
push 2
pop edi
mov dword [ebp - 8], edi
cmp dword [ebp - 8], ebx
jl 0x100485fa
mov dword [ebp - 0x14], 0xba29f583
mov eax, dword [ebp - 8]
push 1
mov eax, dword [ebp + eax*4 - 0x28]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x28]
cmp ecx, eax
mov eax, dword [ebp - 0x24]
sbb edx, edx
xor ecx, ecx
neg edx
cmp eax, 0xffffffff
setge cl
imul edx, ecx
pop ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x14], 7
dec dword [ebp - 8]
jns 0x100485bc
push esi
push ecx
call fcn.100427cc
mov dword [ebp - 8], 0xfffffffc
mov dword [ebp - 0xc], 0xd1d89e17
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
pop ecx
pop ecx
cmp dword [ebp - 8], ebx
je 0x10048635
mov edx, ebx
jmp 0x10048638
xor edx, edx
inc edx
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp edx, eax
setle cl
inc ecx
neg ecx
sbb ecx, ecx
inc ecx
sub ecx, dword [ebp - 8]
jne 0x10048650
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, 0x88ad88ca
mov eax, dword [ebp - 8]
cmp ecx, eax
sbb eax, eax
inc eax
mov dword [ebp - 0xc], eax
je 0x100486cf
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 8], 0x1d
jmp 0x100486ba
mov dword [ebp - 0x10], 0x380d42f5
mov ecx, dword [ebp - 0x14]
dec ecx
neg ecx
sbb ecx, ecx
xor eax, eax
neg ecx
cmp ecx, 1
setg al
imul eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
jne 0x1004869a
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
je 0x100486b1
cmp dword [ebp - 0x10], ebx
jne 0x100486b1
mov eax, ebx
jmp 0x100486b4
xor eax, eax
inc eax
mov dword [ebp - 0x14], eax
dec dword [ebp - 8]
cmp dword [ebp - 8], edi
jle 0x10048675
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x10048721
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
jmp 0x10048721
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ebx
jmp 0x100486e5
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x1c], ebx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edi
jl 0x100486db
mov dword [ebp - 0xc], ebx
jmp 0x10048715
mov dword [ebp - 0x14], 0x2e34ef9d
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1004870c
push 0x20d5
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x2d
jge 0x100486ef
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
push esi
call fcn.1002fa5d
mov dword [ebp - 0xc], 0xffffffff
mov esi, eax
pop ecx
mov dword [ebp - 0xc], ebx
jmp 0x10048744
mov ecx, dword [ebp - 0xc]
mov dword [ebp + ecx*4 - 0x34], 0x7571177e
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x10048736
mov dword [ebp - 0xc], ebx
jmp 0x10048767
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x10048764
push ebx
push 0x1381
push ebx
call dword [sym.imp.GDI32.dll_GetMetaFileBitsEx]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edi
jle 0x1004874f
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret