Function at 0x401550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 2
push edi
mov edi, 0x58f04b
push esi
mov edx, str.pipe:0
push ebx
sub esp, 0xbc
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov esi, eax
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
cmove eax, edx
mov dword [esp + 4], eax
lea eax, [esp + 0x98]
mov dword [esp], eax
call fcn.004166a0
test eax, eax
je 0x401690
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor esi, esi
xor edi, edi
mov dword [esp + 8], 0x1e
xor ebx, ebx
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_couldnt_open_the_file_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov ebp, dword [esp + 0xa0]
test ebp, ebp
je 0x40162c
lea eax, [esp + 0xa0]
mov dword [esp], eax
call fcn.00453b90
mov ecx, dword [esp + 0xac]
test ecx, ecx
je 0x401646
lea eax, [esp + 0xac]
mov dword [esp], eax
call fcn.00537510
mov edx, dword [esp + 0xa4]
test edx, edx
je 0x401660
lea eax, [esp + 0xa4]
mov dword [esp], eax
call fcn.00582f7c
test edi, edi
jne 0x401a60
mov eax, dword [esp + 0x98]
test eax, eax
je 0x401682
lea eax, [esp + 0x98]
mov dword [esp], eax
call fcn.00416ba0
add esp, 0xbc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x98]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00413450
test eax, eax
js 0x401a70
lea eax, [esp + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004160a0
test eax, eax
mov ebx, eax
js 0x401ad0
mov eax, dword [esp + 0x98]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax + ebx*4]
mov eax, dword [esp + 0x9c]
mov esi, dword [edi + 8]
mov dword [esi + 0x1d4], 1
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00456ba0
test eax, eax
js 0x401b6d
mov edx, dword [esi + 0x1a0]
test edx, edx
mov dword [esp + 0x34], edx
jle 0x401b9e
mov ecx, dword [esi + 0x1a4]
cmp ecx, 1
je 0x4017c8
mov edx, dword [esi + 0x1c4]
mov eax, dword [esi + 0x1c0]
mov ebp, edx
or ebp, eax
je 0x401b56
mov ebp, dword [esi + 0x19c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 1
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 0
call fcn.005537a0
test eax, eax
mov dword [esp + 0xa4], eax
je 0x401bd2
mov dword [esp], eax
call fcn.0058303d
test eax, eax
js 0x401c06
mov edx, dword [edi + 0x38]
mov dword [esp + 0x34], edx
mov edx, dword [edi + 0x3c]
lea ecx, [edx - 0x80000000]
or ecx, dword [esp + 0x34]
je 0x401b0a
mov ecx, dword [edi + 0x28]
mov eax, dword [esp + 0x34]
mov ebp, ecx
sar ebp, 0x1f
mov dword [esp + 0x3c], ebp
mov ebp, edx
mov edx, dword [esp + 0x3c]
imul ebp, ecx
imul edx, dword [esp + 0x34]
add ebp, edx
mul ecx
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x2c]
add edx, ebp
mov dword [esp + 0x3c], edx
mov edx, eax
sar edx, 0x1f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00567bf0
mov ebp, dword [esp + 0xdc]
mov dword [ebp], eax
mov edx, dword [esi + 0x1a0]
lea edi, [esp + 0x40]
mov ebp, dword [esp + 0xd8]
mov eax, dword [esi + 0x19c]
mov dword [esp + 8], edx
imul ebp, edx
mov dword [esp + 4], eax
imul ebp, eax
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0xd0]
mov dword [esp], ebp
call fcn.004024f0
call fcn.00453b60
mov dword [esp + 0x38], 0
mov dword [esp + 0xa0], eax
jmp 0x401898
mov dword [esp], edi
call fcn.00459dd0
mov eax, dword [esp + 0x98]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00410ed0
test eax, eax
js 0x401a10
cmp dword [esp + 0x60], ebx
jne 0x401890
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
call fcn.00453a20
lea eax, [esp + 0x94]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x94], 0
mov dword [esp + 0xc], edi
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00454fd0
test eax, eax
js 0x401aa3
mov eax, dword [esp + 0x94]
test eax, eax
je 0x401890
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
test ecx, ecx
je 0x401b03
mov edx, dword [eax + 0x4c]
lea ebp, [esp + 0xac]
cmp dword [esp + 0x38], edx
jge 0x401992
mov dword [esp], ebp
call fcn.00537510
mov eax, dword [esp + 0xa0]
lea edx, [esp + 0xa8]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 1
mov eax, dword [eax + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x1a0]
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.00538150
test eax, eax
js 0x401cae
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ebp
mov dword [esp], ecx
call fcn.005539f0
test eax, eax
js 0x401c46
mov eax, dword [esp + 0xa0]
mov edx, ebp
mov ebp, dword [eax + 0x4c]
imul ebp, dword [esi + 0x1a0]
cmp dword [esp + 0x34], ebp
cmovle ebp, dword [esp + 0x34]
mov dword [esp + 8], ebp
mov eax, dword [edx]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd0]
mov dword [esp], eax
call fcn.00402520
test eax, eax
je 0x401c3a
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x401890
sub dword [esp + 0x34], ebp
mov eax, dword [esp + 0x34]
test eax, eax
jg 0x401890
nop
mov ebp, dword [esp + 0xd0]
mov edi, 1
mov ebx, 1
mov dword [esp], ebp
call fcn.00402550
test eax, eax
jne 0x401612
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor bl, bl
mov dword [esp + 8], 0x26
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_fingerprint_calculation_failed_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x401612
mov dword [esp], esi
call fcn.005763c2
jmp 0x401668
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor esi, esi
xor edi, edi
mov dword [esp + 8], 0x34
xor ebx, ebx
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_couldnt_find_stream_information_in_the_file_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x401612
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1e
mov dword [esp + 4], 1
mov dword [esp], str.WARNING:_error_decoding_audio_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x401898
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor esi, esi
xor edi, edi
mov dword [esp + 8], 0x32
xor ebx, ebx
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_couldnt_find_any_audio_stream_in_the_file_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x401612
mov edx, eax
jmp 0x4019bb
mov eax, dword [esp + 0x98]
mov edx, dword [eax + 0x428]
mov eax, dword [eax + 0x42c]
lea ecx, [eax - 0x80000000]
or ecx, edx
je 0x401c7a
mov dword [esp + 8], 0xf4240
mov dword [esp + 0xc], 0
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00567bf0
mov ebp, dword [esp + 0xdc]
mov dword [ebp], eax
jmp 0x40183c
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00538fd0
mov ecx, dword [esi + 0x1a4]
jmp 0x401763
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor edi, edi
xor ebx, ebx
mov dword [esp + 8], 0x1f
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_couldnt_open_the_codec_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x401612
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edi, 1
xor ebx, ebx
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_no_channels_found_in_the_audio_stream_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x401612
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edi, 1
xor ebx, ebx
mov dword [esp + 8], 0x29
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_couldnt_allocate_audio_converter_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x401612
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edi, 1
xor ebx, ebx
mov dword [esp + 8], 0x2f
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_couldnt_initialize_the_audio_converter_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x401612
mov edi, 1
xor ebx, ebx
jmp 0x401612
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edi, 1
xor ebx, ebx
mov dword [esp + 8], 0x22
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_couldnt_convert_the_audio_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x401612
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edi, 1
xor ebx, ebx
mov dword [esp + 8], 0x2a
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_couldnt_detect_the_audio_duration_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x401612
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edi, 1
xor ebx, ebx
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_couldnt_allocate_audio_converter_buffer_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x401612