Function at 0x470d10
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4cc680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
lea ebx, [eax + 0x14]
mov dword [ebp - 0x34], eax
lea edi, [eax + 0x2c]
mov dword [ebp - 0x30], ecx
cmp edi, ebx
je 0x470e23
cmp dword [ebx + 0x14], 0xf
mov esi, dword [ebx + 0x10]
jbe 0x470d4e
mov ebx, dword [ebx]
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x2c], edx
cmp esi, edx
ja 0x470d81
mov dword [ebp - 0x20], edi
mov eax, edi
cmp edx, 0xf
jbe 0x470d67
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
push esi
push ebx
push eax
mov dword [edi + 0x10], esi
call fcn.00477520
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x470e23
cmp esi, 0x7fffffff
ja 0x470f4d
mov ecx, esi
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x470da1
mov ecx, SysReAllocString
jmp 0x470dc5
mov eax, edx
shr eax, 1
mov dword [ebp - 0x20], eax
mov eax, SysReAllocString
sub eax, dword [ebp - 0x20]
cmp edx, eax
jbe 0x470dbb
mov ecx, SysReAllocString
jmp 0x470dc5
mov eax, dword [ebp - 0x20]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
push eax
push edi
call fcn.004017b0
mov ecx, dword [ebp - 0x20]
push esi
push ebx
mov ebx, eax
mov dword [edi + 0x10], esi
push ebx
mov dword [edi + 0x14], ecx
call fcn.00477520
mov eax, dword [ebp - 0x2c]
add esp, 0x14
mov byte [ebx + esi], 0
cmp eax, 0xf
jbe 0x470e21
lea ecx, [eax + 1]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x470e17
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x470f48
mov eax, edx
push ecx
push eax
call fcn.004759b5
add esp, 8
mov dword [edi], ebx
xor ebx, ebx
cmp byte [ebp + 8], bl
je 0x470e93
lea eax, [ebp - 0x4c]
push eax
call fcn.004726a0
mov esi, eax
add esp, 4
cmp edi, esi
je 0x470e5f
mov ecx, edi
call fcn.004033c0
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xf
jbe 0x470e93
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x470e89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x470f48
push ecx
push edx
call fcn.004759b5
add esp, 8
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00472cb0
add esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 0xf
cmova eax, dword [ebp - 0x1c]
push dword [ebp - 0x30]
push 0
push 0x200
push 0x200
push 1
push 0
push 0x400c0003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x10], eax
cmp eax, 0xffffffff
jne 0x470edd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
inc eax
mov dword [ebp - 0x24], eax
cmp ecx, 0xf
jbe 0x470f17
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x470f0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x470f48
push ecx
push edx
call fcn.004759b5
mov eax, dword [ebp - 0x24]
add esp, 8
cmp byte [ebp + 8], 0
je 0x470f33
cmp ebx, 0xe7
je 0x470f2a
cmp ebx, 5
jne 0x470f33
cmp eax, 0x19
jb 0x470e23
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004759c3
mov esp, ebp
pop ebp
ret 8
call fcn.0047abff
call fcn.004015a0
int3