Function at 0x405000
Capabilities:
Create pipe
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5fcd
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x54b07c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x12c], edi
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x134], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
push 0x44
mov dword [edi + 8], eax
lea eax, [edi + 0xc]
push 0
push eax
mov dword [edi], 0
call fcn.004c7d50
xor ecx, ecx
mov dword [ebp - 0x12c], 0x405880
mov dword [edi + 0x50], ecx
lea eax, [ebp - 0x130]
mov dword [edi + 0x54], ecx
add esp, 0xc
mov dword [edi + 0x58], ecx
mov dword [edi + 0x5c], ecx
mov dword [edi + 0x60], ecx
push eax
lea eax, [ebp - 0x12c]
mov dword [edi + 0x64], ecx
mov dword [edi + 0x6c], ecx
mov byte [edi + 0x70], cl
lea ecx, [edi + 0x74]
push eax
mov dword [edi + 0x68], ebx
mov dword [ebp - 0x130], edi
call fcn.00405cd0
lea eax, [edi + 0x7c]
push 2
push eax
call fcn.0049c52b
mov byte [ebp - 4], 2
lea esi, [edi + 0xac]
mov dword [ebp - 0x12c], esi
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0049dbb6
add esp, 0xc
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x405a30
lea ecx, [edi + 0xc0]
mov dword [ebp - 0x12c], edi
push eax
call fcn.00405cd0
lea eax, [edi + 0xc8]
push 2
push eax
call fcn.0049c52b
mov byte [ebp - 4], 5
lea esi, [edi + 0xf8]
mov dword [ebp - 0x12c], esi
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0049dbb6
add esp, 0xc
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
push 0
push 0
push 0
push 0x800
push 0xff
push 0
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push 2
push str..pipemupenvideo
mov byte [edi + 0x10c], 0
mov dword [edi + 0xc], 0x44
call esi
mov dword [edi + 0x60], eax
test eax, eax
jne 0x4051c4
mov dword [edi], 3
jmp 0x405391
push 0
push 0
push 0
lea eax, [ebx*8]
push eax
push 0xff
push 0
push 2
push str..pipemupenaudio
call esi
mov dword [edi + 0x64], eax
test eax, eax
jne 0x4051fd
push dword [edi + 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 3
jmp 0x405391
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x110]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.__thread_queue_size_4__f_rawvideo__video_size__dx_d__framerate__d__pixel_format_bgr24__i_.pipemupenvideo__thread_queue_size_64__f_s16le__ar__d__ac_2__channel_layout_stereo__i_.pipemupenaudio
push 0x100
push eax
call fcn.00404f80
lea ecx, [ebp - 0x110]
add esp, 0x1c
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405230
sub ecx, edx
mov eax, Ordinal_1
mov edx, dword [ebp + 0x28]
sub eax, edx
cmp eax, ecx
jb 0x4053e1
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
jb 0x405257
mov eax, dword [ebp + 0x18]
push edx
push eax
push ecx
lea eax, [ebp - 0x110]
push eax
push ecx
push dword [ebp - 0x134]
lea ecx, [ebp - 0x128]
call fcn.00404aa0
mov ecx, dword [ebp + 0x2c]
cmp ecx, 0x10
jb 0x4052a7
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40529d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4053e6
push ecx
push edx
call fcn.0049dbeb
add esp, 8
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp + 0x2c], eax
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
call fcn.00401c70
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
jb 0x40530f
mov eax, dword [ebp + 0x18]
lea ecx, [edi + 0x50]
push ecx
lea ecx, [edi + 0xc]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push str.ffmpeg_bin_ffmpeg.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x405372
push 0x10
push 0x532438
push str.Could_not_start_ffmpeg_process__Does_ffmpeg_exist_on_disk_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failed___d_._n
call fcn.00402650
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push dword [edi + 0x60]
call esi
push dword [edi + 0x64]
call esi
mov dword [edi], 2
jmp 0x405391
push 1
push ebx
call fcn.004cf114
add esp, 8
mov dword [edi + 0x6c], eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [edi], 1
mov ecx, dword [ebp + 0x2c]
cmp ecx, 0x10
jb 0x4053c1
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4053b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4053eb
push ecx
push edx
call fcn.0049dbeb
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049dba8
mov esp, ebp
pop ebp
ret 0x28
call fcn.004018c0
call fcn.004cb586
call fcn.004cb586
int3