Function at 0x413f10
Capabilities:
Set console window title

Disassembly:
lea rcx, [0x00401520]
jmp fcn.004014f0
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2c0
mov ebp, ecx
mov rsi, rdx
call fcn.00403080
cmp ebp, 1
jle 0x414112
mov ebx, 1
xor eax, eax
lea r12, section..rdata
lea r13, [0x00415040]
lea r14, [0x004168ae]
cmp eax, 2
je 0x4140a2
jg 0x413f8e
test eax, eax
je 0x413f9c
cmp eax, 1
jne 0x414107
mov rcx, qword [rsi + rbx*8]
lea r8, [rsp + 0x1bc]
mov rdx, r12
call fcn.00401670
mov ecx, dword [rsp + 0x1bc]
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
jmp 0x41409e
cmp eax, 3
je 0x4140cb
jmp 0x414107
mov rdi, qword [rsi + rbx*8]
mov rdx, r14
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov edx, eax
mov eax, 1
test edx, edx
je 0x414107
lea rdx, [0x004168b2]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x413fe0
lea rdx, str._hidemeta
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x413ff8
lea rdx, [0x00415040]
mov ecx, 0xa
xor eax, eax
mov rdi, rdx
rep stosd dword [rdi], eax
jmp 0x41409e
lea rdx, [0x004168c0]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x41401e
lea rdx, str._showmeta
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x41403a
lea rax, [0x00415040]
lea rdx, [rax + 0x28]
mov dword [rax], 1
add rax, 4
cmp rax, rdx
jne 0x414029
jmp 0x41409e
lea rdx, [0x004168ce]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov edx, eax
mov eax, 2
test edx, edx
je 0x414107
lea rdx, [0x004168d2]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov edx, eax
mov eax, 3
test edx, edx
je 0x414107
lea rdx, str._fps
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x41409e
mov dword [0x00415028], 1
jmp 0x41409e
mov dword [r13 + rdx*4], 1
xor eax, eax
jmp 0x414107
mov rcx, qword [rsi + rbx*8]
mov rdx, r12
lea r8, [rsp + 0x1bc]
call fcn.00401670
mov edx, dword [rsp + 0x1bc]
cmp edx, 9
jbe 0x414095
lea rcx, str._nCommand_line_error___em_parameter_above_9__set_to__u_
jmp 0x4140f2
mov rcx, qword [rsi + rbx*8]
mov rdx, r12
lea r8, [rsp + 0x1bc]
call fcn.00401670
mov edx, dword [rsp + 0x1bc]
cmp edx, 9
jbe 0x4140fe
lea rcx, str._nCommand_line_error___dm_parameter_above_9__set_to__u_
call fcn.0040157c
xor ecx, ecx
call sub.msvcrt.dll_exit
xor eax, eax
mov dword [r13 + rdx*4], eax
jmp 0x41409e
inc rbx
cmp ebp, ebx
jg 0x413f50
lea rbx, str.v2.0.8
lea rcx, str.ConMIDI__s_n_n
mov rdx, rbx
call fcn.0040157c
call fcn.004017f2
mov rdx, rbx
lea rcx, str.ConMIDI
lea rbx, str._nPick_sound_device_ID:
call fcn.00401733
mov rcx, rax
mov qword [0x0041a040], rax
mov qword [0x0041a138], rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call fcn.00401bf7
cmp dword [0x0041a1a8], 1
jg 0x414181
cmp dword [0x0041a1b0], 0
jne 0x414196
cmp dword [0x0041a1b4], 0
je 0x41419f
mov ecx, 1
jmp 0x414198
mov rcx, rbx
call fcn.00401699
mov ecx, eax
call fcn.00401c75
dec eax
jne 0x414181
jmp 0x41419f
xor ecx, ecx
inc ecx
call fcn.00401c75
lea r12, str._nSelect_a_MIDI_n
xor ebp, ebp
lea r13, str.MIDI_Files
mov rcx, r12
lea rbx, [rsp + 0xb8]
call fcn.0040157c
lea rdx, [rsp + 0x24]
mov eax, ebp
mov ecx, 0x25
mov rdi, rdx
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x98
rep stosd dword [rdi], eax
lea rax, str.Select_a_MIDI_file
mov qword [rsp + 0x38], r13
mov rcx, r8
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], 0x104
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x80], 0x2001800
call qword [sym.imp.comdlg32.dll_GetOpenFileNameA]
mov esi, eax
test eax, eax
jne 0x414258
lea rcx, str.No_file_selected.
mov rdi, rbx
call fcn.0040157c
mov eax, esi
mov ecx, 0x41
rep stosd dword [rdi], eax
lea rcx, str._nEnter_file_path:
call fcn.0040157c
mov rdx, rbx
lea rcx, str._260__n_
call fcn.004015c3
xor ecx, ecx
call qword [fcn.00413770]
mov rcx, rax
call sub.msvcrt.dll_fflush
lea rsi, [rsp + 0x1bc]
mov edx, 0x22
mov rcx, rbx
mov r8, rsi
call fcn.004016cc
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll__access
inc eax
jne 0x41429b
lea rcx, str.Invalid_path
mov rdi, rbx
call fcn.0040157c
mov ecx, 0x41
mov eax, ebp
rep stosd dword [rdi], eax
jmp 0x4141af
lea rcx, str._nLoading_MIDI...
call fcn.0040157c
mov edx, 0x40
mov rcx, rsi
call fcn.00402e5f
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401510