Function at 0x41e150
Capabilities:
Connect pipe
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431596
mov eax, dword fs:[0]
push eax
mov eax, 0x1498
call fcn.00425340
mov eax, dword [0x43d140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1460], esi
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 0x145c], eax
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00424bf1
add esp, 4
mov dword [ebp - 0x1470], eax
test esi, esi
jle 0x41e228
sub eax, edi
mov dword [ebp - 0x1464], esi
mov dword [ebp - 0x1468], eax
nop dword [eax]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [edi]
push 0
push dword [ebp - 0x145c]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call fcn.00424bf1
mov ecx, dword [ebp - 0x1468]
add esp, 4
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
mov dword [ecx + edi], eax
push dword [edi]
push 0
push dword [ebp - 0x145c]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub dword [ebp - 0x1464], 1
lea edi, [edi + 4]
jne 0x41e1d0
mov esi, dword [ebp - 0x1460]
mov edi, dword [ebp - 0x1470]
push 0
push 0xffffffffffffffff
push 0xffff
push 0xffff
push 0xff
push 6
push 3
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
push str.argc__d__n
mov dword [ebp - 0x145c], eax
call fcn.0041e7f0
xor esi, esi
add esp, 8
cmp dword [ebp - 0x1460], esi
jle 0x41e28a
nop dword [eax]
push dword [edi + esi*4]
push esi
push str._d__s_n
call fcn.0041e7f0
inc esi
add esp, 0xc
cmp esi, dword [ebp - 0x1460]
jl 0x41e270
push dword [edi + 0x14]
call sub.msvcrt.dll_atof
mov edx, dword [edi + 0xc]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x1448], 0
fstp dword [ebp - 0x1468]
add esp, 4
mov dword [ebp - 0x1444], 0
movups xmmword [ebp - 0x1458], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e2c1
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1458]
call fcn.004011a0
mov edx, dword [edi + 8]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x1440], xmm0
mov dword [ebp - 0x1430], 0
mov dword [ebp - 0x142c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e304
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1440]
call fcn.004011a0
mov edx, dword [edi + 4]
xorps xmm0, xmm0
mov ecx, edx
mov byte [ebp - 4], 1
movups xmmword [ebp - 0x1428], xmm0
mov dword [ebp - 0x1418], 0
mov dword [ebp - 0x1414], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e344
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1428]
call fcn.004011a0
movss xmm0, dword [ebp - 0x1468]
lea eax, [ebp - 0x1458]
sub esp, 8
mov byte [ebp - 4], 2
movss dword [esp + 4], xmm0
mov dword [esp], 0x40000000
push eax
lea eax, [ebp - 0x1440]
push eax
lea eax, [ebp - 0x1428]
push eax
call fcn.0041ee30
mov ecx, dword [ebp - 0x1414]
add esp, 0x14
mov dword [ebp - 0x1460], eax
mov byte [ebp - 4], 1
cmp ecx, 0xf
jbe 0x41e3d7
mov edx, dword [ebp - 0x1428]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e3cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e7e9
push ecx
push edx
call fcn.00424be3
add esp, 8
mov ecx, dword [ebp - 0x142c]
mov dword [ebp - 0x1418], 0
mov dword [ebp - 0x1414], 0xf
mov byte [ebp - 0x1428], 0
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x41e430
mov edx, dword [ebp - 0x1440]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e426
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e7e9
push ecx
push edx
call fcn.00424be3
add esp, 8
mov ecx, dword [ebp - 0x1444]
mov dword [ebp - 0x1430], 0
mov dword [ebp - 0x142c], 0xf
mov byte [ebp - 0x1440], 0
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x41e48c
mov edx, dword [ebp - 0x1458]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e482
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e7e9
push ecx
push edx
call fcn.00424be3
add esp, 8
push 1
lea eax, [ebp - 0x14a4]
mov dword [ebp - 0x1448], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1444], 0xf
push eax
mov byte [ebp - 0x1458], 0
movups xmmword [ebp - 0x14a4], xmm0
mov dword [ebp - 0x1494], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x14a4]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x14a4]
mov dword [ebp - 0x1490], 0xc
mov dword [ebp - 0x148c], eax
lea eax, [ebp - 0x1490]
mov dword [ebp - 0x1488], 0
push dword [edi + 0x20]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push dword [ebp - 0x145c]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push dword [edi + 0x10]
call sub.msvcrt.dll_atoi
push str.pipe_connected
mov dword [ebp - 0x1480], eax
call fcn.0041e7f0
push 0x1000
lea eax, [ebp - 0x1410]
mov esi, 1
push 0
push eax
mov dword [ebp - 0x1470], esi
call sub.msvcrt.dll_memset
add esp, 0x14
lea eax, [ebp - 0x1468]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1410]
push eax
push dword [ebp - 0x145c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e7cc
nop dword [eax + eax]
lea eax, [ebp - 0x1410]
push eax
push 0x432884
call fcn.0041e7f0
mov ecx, dword [ebp - 0x1460]
lea eax, [ebp - 0x1474]
add esp, 8
push eax
lea eax, [ebp - 0x1464]
push eax
lea eax, [ebp - 0x1410]
push eax
call fcn.0041ee80
push dword [ebp - 0x1464]
push 0x432884
call fcn.0041e7f0
mov ecx, dword [ebp - 0x1460]
lea eax, [ebp - 0x1474]
add esp, 8
push 0
push eax
lea eax, [ebp - 0x147c]
push eax
push dword [ebp - 0x1464]
call fcn.0041f9e0
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call sub.msvcrt.dll_memset
push esi
push dword [edi + 0x18]
lea eax, [ebp - 0x410]
push str._s_d.wav
push eax
call fcn.0041e820
lea eax, [ebp - 0x410]
push 0x434b3c
push eax
call sub.msvcrt.dll_fopen
mov ecx, dword [ebp - 0x1474]
mov esi, eax
push 0
add ecx, 0x2c
push 0
push esi
mov dword [ebp - 0x1478], ecx
call sub.msvcrt.dll_fseek
push esi
push 4
push 1
push str.RIFF
call fcn.004265b0
add esp, 0x40
lea eax, [ebp - 0x1478]
push esi
push 1
push 4
push eax
call fcn.004265b0
push esi
push 8
push 1
push str.WAVEfmt
call fcn.004265b0
push esi
push 8
push 1
push 0x434b54
call fcn.004265b0
mov eax, dword [ebp - 0x1480]
push esi
push 1
mov dword [ebp - 0x146c], eax
lea eax, [ebp - 0x146c]
push 4
push eax
call fcn.004265b0
mov eax, dword [ebp - 0x146c]
add esp, 0x40
add eax, eax
push esi
push 1
mov dword [ebp - 0x146c], eax
lea eax, [ebp - 0x146c]
push 4
push eax
call fcn.004265b0
push esi
push 4
push 1
push 0x434b60
call fcn.004265b0
push esi
push 4
push 1
push str.data
call fcn.004265b0
mov eax, dword [ebp - 0x1478]
push esi
add eax, 0xffffffd4
push 1
mov dword [ebp - 0x1484], eax
lea eax, [ebp - 0x1484]
push 4
push eax
call fcn.004265b0
add esp, 0x40
push esi
call sub.msvcrt.dll_ftell
push eax
push str._d__n
call fcn.0041e7f0
push esi
push dword [ebp - 0x1474]
push 1
push dword [ebp - 0x147c]
call fcn.004265b0
push esi
call sub.msvcrt.dll_fclose
lea ecx, [ebp - 0x410]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e744
push 0
lea eax, [ebp - 0x1468]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x145c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x1464]
call sub.msvcrt.dll_free
push dword [ebp - 0x147c]
call sub.msvcrt.dll_free
mov esi, dword [ebp - 0x1470]
lea eax, [ebp - 0x1410]
push 0x1000
push 0
inc esi
push eax
mov dword [ebp - 0x1470], esi
call sub.msvcrt.dll_memset
add esp, 0x14
lea eax, [ebp - 0x1468]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1410]
push eax
push dword [ebp - 0x145c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41e590
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424bff
mov esp, ebp
pop ebp
ret
call fcn.00426030
int3