Function at 0x14000209d
Capabilities:
Execute command
Move file
Query environment variable

Disassembly:
push rbp
push rsi
push rbx
mov eax, 0x103e0
call fcn.140003da0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10380], rcx
mov qword [rbp + 0x102f0], 0
mov qword [rbp + 0x102f8], 0
mov qword [rbp + 0x10300], 0
mov qword [rbp + 0x10308], 0
mov qword [rbp + 0x10310], 0
mov qword [rbp + 0x10318], 0
mov qword [rbp + 0x10320], 0
mov qword [rbp + 0x10328], 0
mov qword [rbp + 0x102e8], 0
mov ecx, 4
call sym.printTitle
lea rax, str._n_Select_a_NONG_to_toggle._n_n
mov rcx, rax
call sym.printf
mov dword [rbp + 0x10358], 0
mov dword [rbp + 0x1035c], 0
jmp 0x140002190
mov eax, dword [rbp + 0x1035c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
test eax, eax
je 0x140002189
add dword [rbp + 0x10358], 1
add dword [rbp + 0x1035c], 1
cmp dword [rbp + 0x1035c], 0xff
jle 0x14000214e
mov edx, dword [rbp + 0x10358]
lea rax, [rbp + 0x102e8]
mov r8d, edx
lea rdx, [0x14000e15f]
mov rcx, rax
call sym.sprintf
mov dword [rbp + 0x1035c], 0
jmp 0x1400022e7
mov eax, dword [rbp + 0x1035c]
lea ebx, [rax + 1]
lea rax, [rbp + 0x102e8]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x38]
mov r9d, ebx
mov r8, rdx
lea rdx, str._0d
mov rcx, rax
call sym.sprintf
mov eax, dword [rbp + 0x1035c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
add rax, 0x60
lea rdx, [0x14000e2c3]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140002252
lea rax, [rbp - 0x50]
movabs rsi, 0x64656c62616964
mov qword [rax], rsi
jmp 0x140002263
lea rax, [rbp - 0x50]
movabs rbx, 0x64656c62616e65
mov qword [rax], rbx
mov eax, dword [rbp + 0x1035c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
lea rcx, [rax + 0x40]
mov eax, dword [rbp + 0x1035c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
mov r8, rax
lea rax, [rbp - 0x38]
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov rdx, rax
lea rax, str.__s___s__song_id__s__is__s__n
mov rcx, rax
call sym.printf
add dword [rbp + 0x1035c], 1
mov eax, dword [rbp + 0x1035c]
cmp eax, dword [rbp + 0x10358]
jl 0x1400021ca
lea rax, str._n_Choice:
mov rcx, rax
call sym.printf
lea rax, [rbp + 0x2dc]
mov rdx, rax
lea rax, [0x14000e15f]
mov rcx, rax
call sym.scanf
mov eax, dword [rbp + 0x2dc]
sub eax, 1
mov dword [rbp + 0x2dc], eax
lea rax, [0x14000e233]
mov rcx, rax
call sym.system
mov ecx, 4
call sym.printTitle
mov dword [rbp + 0x1035c], 0
jmp 0x14000264b
mov eax, dword [rbp + 0x2dc]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
lea rcx, [rax + 0x40]
mov eax, dword [rbp + 0x1035c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
add rax, 0x40
mov rdx, rcx
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x14000242b
mov eax, dword [rbp + 0x1035c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
add rax, 0x60
lea rdx, [0x14000e2e2]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x14000242b
mov eax, dword [rbp + 0x2dc]
cmp dword [rbp + 0x1035c], eax
je 0x14000242b
lea rax, str._n_Please_disable_all_other_NONGs_with_the_same_song_ID_first.
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x140002e3d
cmp dword [rbp + 0x1035c], 0
jle 0x140002455
lea rax, [rbp + 0x2e0]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0x2e0]
add rax, rdx
mov word [rax], 0xa
mov eax, dword [rbp + 0x1035c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
mov rdx, rax
lea rax, [rbp + 0x2e0]
mov rcx, rax
call sym.strcat
lea rax, [rbp + 0x2e0]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0x2e0]
add rax, rdx
mov word [rax], 0x3b
mov eax, dword [rbp + 0x1035c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
lea rdx, [rax + 0x40]
lea rax, [rbp + 0x2e0]
mov rcx, rax
call sym.strcat
lea rax, [rbp + 0x2e0]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0x2e0]
add rax, rdx
mov word [rax], 0x3b
mov eax, dword [rbp + 0x1035c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
lea rdx, [rax + 0x50]
lea rax, [rbp + 0x2e0]
mov rcx, rax
call sym.strcat
lea rax, [rbp + 0x2e0]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0x2e0]
add rax, rdx
mov word [rax], 0x3b
mov eax, dword [rbp + 0x2dc]
cmp dword [rbp + 0x1035c], eax
jne 0x140002607
mov eax, dword [rbp + 0x1035c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
add rax, 0x60
lea rdx, [0x14000e2c3]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x1400025e4
lea rax, [rbp + 0x2e0]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0x2e0]
add rax, rdx
mov word [rax], 0x31
jmp 0x140002644
lea rax, [rbp + 0x2e0]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0x2e0]
add rax, rdx
mov word [rax], 0x30
jmp 0x140002644
mov eax, dword [rbp + 0x1035c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
lea rdx, [rax + 0x60]
lea rax, [rbp + 0x2e0]
mov rcx, rax
call sym.strcat
add dword [rbp + 0x1035c], 1
mov eax, dword [rbp + 0x1035c]
cmp eax, dword [rbp + 0x10358]
jl 0x140002358
lea rax, str.LOCALAPPDATA
mov rcx, rax
call sym.getenv
mov qword [rbp + 0x10350], rax
cmp qword [rbp + 0x10350], 0
jne 0x140002696
lea rax, str._n_Environment_variable__localappdata__not_found.
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x140002e3d
mov qword [rbp + 0x1d0], 0
mov qword [rbp + 0x1d8], 0
mov qword [rbp + 0x1e0], 0
mov qword [rbp + 0x1e8], 0
mov qword [rbp + 0x1f0], 0
mov qword [rbp + 0x1f8], 0
mov qword [rbp + 0x200], 0
mov qword [rbp + 0x208], 0
mov qword [rbp + 0x210], 0
mov qword [rbp + 0x218], 0
mov qword [rbp + 0x220], 0
mov qword [rbp + 0x228], 0
mov qword [rbp + 0x230], 0
mov qword [rbp + 0x238], 0
mov qword [rbp + 0x240], 0
mov qword [rbp + 0x248], 0
mov qword [rbp + 0x250], 0
mov qword [rbp + 0x258], 0
mov qword [rbp + 0x260], 0
mov qword [rbp + 0x268], 0
mov qword [rbp + 0x270], 0
mov qword [rbp + 0x278], 0
mov qword [rbp + 0x280], 0
mov qword [rbp + 0x288], 0
mov qword [rbp + 0x290], 0
mov qword [rbp + 0x298], 0
mov qword [rbp + 0x2a0], 0
mov qword [rbp + 0x2a8], 0
mov qword [rbp + 0x2b0], 0
mov qword [rbp + 0x2b8], 0
mov qword [rbp + 0x2c0], 0
mov qword [rbp + 0x2c8], 0
mov rdx, qword [rbp + 0x10350]
lea rax, [rbp + 0x1d0]
mov rcx, rax
call sym.strcat
lea rax, [rbp + 0x1d0]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0x1d0]
add rax, rdx
movabs rbx, 0x7274656d6f65475c
mov qword [rax], rbx
movabs rsi, 0x5c687361447972
mov qword [rax + 7], rsi
mov eax, dword [rbp + 0x2dc]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
lea rdx, [rax + 0x40]
lea rax, [rbp + 0x1d0]
mov rcx, rax
call sym.strcat
lea rax, [rbp + 0x1d0]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0x1d0]
add rax, rdx
mov dword [rax], 0x33706d2e
mov byte [rax + 4], 0
mov qword [rbp + 0xd0], 0
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0xf0], 0
mov qword [rbp + 0xf8], 0
mov qword [rbp + 0x100], 0
mov qword [rbp + 0x108], 0
mov qword [rbp + 0x110], 0
mov qword [rbp + 0x118], 0
mov qword [rbp + 0x120], 0
mov qword [rbp + 0x128], 0
mov qword [rbp + 0x130], 0
mov qword [rbp + 0x138], 0
mov qword [rbp + 0x140], 0
mov qword [rbp + 0x148], 0
mov qword [rbp + 0x150], 0
mov qword [rbp + 0x158], 0
mov qword [rbp + 0x160], 0
mov qword [rbp + 0x168], 0
mov qword [rbp + 0x170], 0
mov qword [rbp + 0x178], 0
mov qword [rbp + 0x180], 0
mov qword [rbp + 0x188], 0
mov qword [rbp + 0x190], 0
mov qword [rbp + 0x198], 0
mov qword [rbp + 0x1a0], 0
mov qword [rbp + 0x1a8], 0
mov qword [rbp + 0x1b0], 0
mov qword [rbp + 0x1b8], 0
mov qword [rbp + 0x1c0], 0
mov qword [rbp + 0x1c8], 0
mov rdx, qword [rbp + 0x10350]
lea rax, [rbp + 0xd0]
mov rcx, rax
call sym.strcat
lea rax, [rbp + 0xd0]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0xd0]
add rax, rdx
mov qword [rax], rbx
mov qword [rax + 7], rsi
mov eax, dword [rbp + 0x2dc]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
lea rdx, [rax + 0x40]
lea rax, [rbp + 0xd0]
mov rcx, rax
call sym.strcat
lea rax, [rbp + 0xd0]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0xd0]
add rax, rdx
mov dword [rax], 0x6d2e302e
mov dword [rax + 3], 0x33706d
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0
mov qword [rbp], 0
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x98], 0
mov qword [rbp + 0xa0], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xb8], 0
mov qword [rbp + 0xc0], 0
mov qword [rbp + 0xc8], 0
mov rdx, qword [rbp + 0x10350]
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.strcat
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x30]
add rax, rdx
mov qword [rax], rbx
mov qword [rax + 7], rsi
mov eax, dword [rbp + 0x2dc]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
lea rdx, [rax + 0x50]
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.strcat
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x30]
add rax, rdx
mov dword [rax], 0x33706d2e
mov byte [rax + 4], 0
lea rax, [rbp + 0x1d0]
mov rcx, rax
call sym.strlen
add rax, 1
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x10348], rax
lea rax, [rbp + 0xd0]
mov rcx, rax
call sym.strlen
add rax, 1
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x10340], rax
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.strlen
add rax, 1
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x10338], rax
cmp qword [rbp + 0x10348], 0
je 0x140002cc4
cmp qword [rbp + 0x10338], 0
jne 0x140002cdd
lea rax, str._n_Memory_allocation_failed.
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x140002e3d
lea rdx, [rbp + 0x1d0]
mov rax, qword [rbp + 0x10348]
mov rcx, rax
call sym.strcpy
lea rdx, [rbp + 0xd0]
mov rax, qword [rbp + 0x10340]
mov rcx, rax
call sym.strcpy
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x10338]
mov rcx, rax
call sym.strcpy
mov eax, dword [rbp + 0x2dc]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x10380]
add rax, rdx
add rax, 0x60
lea rdx, [0x14000e2c3]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140002d8b
mov rdx, qword [rbp + 0x10340]
mov rax, qword [rbp + 0x10348]
mov rcx, rax
call sym.rename
mov rdx, qword [rbp + 0x10348]
mov rax, qword [rbp + 0x10338]
mov rcx, rax
call sym.rename
jmp 0x140002db7
mov rdx, qword [rbp + 0x10338]
mov rax, qword [rbp + 0x10348]
mov rcx, rax
call sym.rename
mov rdx, qword [rbp + 0x10348]
mov rax, qword [rbp + 0x10340]
mov rcx, rax
call sym.rename
mov rax, qword [rbp + 0x10348]
mov rcx, rax
call sym.free
mov rax, qword [rbp + 0x10340]
mov rcx, rax
call sym.free
mov rax, qword [rbp + 0x10338]
mov rcx, rax
call sym.free
lea rax, [0x14000e024]
mov rdx, rax
lea rax, str.data.dat
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x10330], rax
lea rdx, [rbp + 0x2e0]
mov rax, qword [rbp + 0x10330]
mov rcx, rax
call sym.fprintf
mov rax, qword [rbp + 0x10330]
mov rcx, rax
call sym.fclose
lea rax, str._n_NONG_toggled._n
mov rcx, rax
call sym.printf
mov eax, 0
add rsp, 0x103e0
pop rbx
pop rsi
pop rbp
ret