Function at 0x436ac0
Capabilities:
Create pipe
Create two anonymous pipes
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3280
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x508164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edx, dword [ebp + 0xc]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436af5
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x18]
call fcn.0040beb0
lea eax, [esi + 0x30]
push 0
push 0x4ea2b7
mov ecx, eax
mov dword [ebp - 0x38], eax
call fcn.0040e3a0
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x436b39
push eax
call edi
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x436b48
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 8]
lea ebx, [esi + 8]
test eax, eax
je 0x436b5b
push eax
call edi
mov dword [ebx], 0
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0xc]
test ecx, ecx
je 0x436b71
push ecx
call edi
lea eax, [esi + 0xc]
mov dword [eax], 0
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0xc
push ecx
push eax
push ebx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x436e18
push 0
push 1
push dword [ebx]
mov ebx, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
call ebx
push 0
lea eax, [ebp - 0x28]
push eax
lea edi, [esi + 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x436e18
push 0
push 1
push dword [edi]
call ebx
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 2
push 0x4ea3fc
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x436e18
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x436e90
mov dword [ebp - 0x20], esi
call fcn.004370c0
mov dword [ebp + 0xc], eax
test eax, eax
je 0x436c13
lock inc dword [eax + 4]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0048d710
test al, al
je 0x436e40
lea ebx, [esi + 0x10]
mov dword [ebp - 0x20], ebx
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0048ca80
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x436c43
lock inc dword [eax + 4]
mov edi, dword [ebx]
mov dword [ebx], eax
or ebx, 0xffffffff
test edi, edi
je 0x436c6f
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x436c6f
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0xc], 0
test edi, edi
je 0x436ca2
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x436ca2
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x436ca8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.0048ca80
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x436cdb
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x436cdb
mov eax, dword [ecx]
push 0
call dword [eax]
push dword [ebp - 0x14]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x436f80
mov dword [ebp - 0x18], esi
call fcn.004370c0
mov dword [ebp + 0xc], eax
test eax, eax
je 0x436cfc
lock inc dword [eax + 4]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 5
call fcn.0048d710
test al, al
je 0x436e52
add esi, 0x14
mov dword [ebp - 0x14], esi
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0048ca80
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x436d2c
lock inc dword [ecx + 4]
mov eax, dword [ebp - 0x14]
mov esi, dword [esi]
mov dword [eax], ecx
test esi, esi
je 0x436d54
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x436d54
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp + 0xc]
mov dword [ebp + 0xc], 0
test esi, esi
je 0x436d83
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x436d83
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push esi
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
jmp 0x436d89
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
call fcn.0048ca80
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x436db7
lock xadd dword [ecx + 4], ebx
dec ebx
jne 0x436db7
mov eax, dword [ecx]
push 0
call dword [eax]
push dword [ebp - 0x18]
push 0
call edi
push eax
call esi
mov byte [ebp - 4], 0
lea eax, [ebp + 0xc]
mov edi, dword [ebp - 0x20]
mov ecx, edi
push eax
call fcn.0048cb00
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call fcn.0048cae0
add esp, 4
mov ecx, dword [eax]
cmp ecx, dword [esi]
je 0x436e64
mov ecx, edi
call fcn.0048cfd0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.0048cb00
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call fcn.0048cae0
add esp, 4
mov ecx, dword [eax]
cmp ecx, dword [esi]
je 0x436e79
mov ecx, ebx
call fcn.0048cfd0
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
call fcn.00429230
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x34]
call fcn.0040e030
push eax
mov byte [ebp - 4], 2
call fcn.0040c990
lea ecx, [ebp - 0x34]
call fcn.0040e030
push eax
mov byte [ebp - 4], 6
call fcn.0040c990
sub esp, 8
lea ecx, [ebp - 0x34]
call fcn.004371a0
push eax
mov byte [ebp - 4], 9
call fcn.0040c990
sub esp, 8
lea ecx, [ebp - 0x50]
call fcn.004371a0
push eax
mov byte [ebp - 4], 0xa
call fcn.0040c990
int3