Function at 0x140004f80
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push r15
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
test rax, rax
jne 0x140004faf
or eax, 0xffffffff
add rsp, 0x48
pop r15
pop rbx
ret
cmp dword [rsp + 0x20], 2
jl 0x140005594
mov rdx, qword [rax + 8]
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rdi
or rbx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
mov rcx, rbx
mov qword [rsp + 0x40], r12
repne scasw ax, word [rdi]
mov qword [rsp + 0x38], r13
not rcx
dec rcx
movsxd rdi, ecx
cmp word [rdx + rdi*2 - 2], 0x32
jne 0x140005188
call fcn.140004350
test eax, eax
je 0x140005188
mov rax, qword [r15 + 8]
lea rdi, str._Read2
mov ecx, 7
mov rsi, rax
xor ebp, ebp
mov r12d, ebx
repe cmpsw word [rsi], word [rdi]
jne 0x140005040
mov rax, qword [0x1400371f8]
test rax, rax
je 0x140005035
call rax
mov ebx, eax
mov r12d, 2
jmp 0x1400050ee
lea rdi, str._Enable2
mov rsi, rax
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
jne 0x140005071
mov rax, qword [0x140037200]
test rax, rax
je 0x140005069
xor ecx, ecx
call rax
test eax, eax
cmovne ebx, ebp
mov r12d, 1
jmp 0x1400050ee
lea rdi, str._Disable2
mov rsi, rax
mov ecx, 0xa
repe cmpsw word [rsi], word [rdi]
jne 0x1400050a7
mov rax, qword [0x140037200]
test rax, rax
je 0x1400050a2
mov r13d, 1
mov ecx, r13d
call rax
test eax, eax
cmovne ebx, r13d
mov r12d, ebp
jmp 0x1400050ee
lea rdi, str._Switch2
mov rsi, rax
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
jne 0x1400050ee
mov rax, qword [0x140037208]
test rax, rax
je 0x1400050e8
call rax
test eax, eax
je 0x1400050e8
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [0x1400371f8]
test rdx, rdx
je 0x1400050e8
call rdx
mov ebx, eax
mov r12d, 3
cmp dword [rsp + 0x20], 3
jl 0x14000510a
mov rsi, qword [r15 + 0x10]
lea rdi, str._NoOSD
mov ecx, 7
repe cmpsw word [rsi], word [rdi]
je 0x14000512b
test ebx, ebx
jne 0x14000511a
lea ecx, [rbx + 0x6a]
xor edx, edx
call fcn.1400055b0
jmp 0x140005130
cmp ebx, 1
jne 0x14000512b
lea ecx, [rbx + 0x6a]
xor edx, edx
call fcn.1400055b0
jmp 0x140005130
cmp ebx, 0xffffffff
je 0x140005166
lea rdx, str.HControl
lea rcx, str.HCONTROL
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140005166
mov edx, dword [0x140037228]
lea ecx, [r12 + 0x200]
movsxd r9, ebx
movsxd r8, ecx
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [0x1400371f0]
test rcx, rcx
je 0x14000557b
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1400371f0], rbp
jmp 0x14000557b
mov rax, qword [r15 + 8]
cmp word [rax + rdi*2 - 2], 0x33
jne 0x1400053fd
call fcn.140004510
test eax, eax
je 0x1400053fd
mov rax, qword [r15 + 8]
mov ecx, 7
lea rdi, str._Read3
mov rsi, rax
lea r12d, [rcx - 5]
lea r13d, [rcx - 6]
repe cmpsw word [rsi], word [rdi]
mov qword [rsp + 0x30], r14
mov ebp, ebx
mov r14d, ebx
jne 0x1400051ed
mov ecx, r12d
call fcn.140004600
mov ecx, 0x102
mov ebx, eax
call fcn.140004600
mov r14d, r12d
mov ebp, eax
jmp 0x1400052be
lea rdi, str._Enable3
mov rsi, rax
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
jne 0x14000521f
mov ecx, r13d
call fcn.140004600
mov ecx, 0x102
mov ebx, eax
call fcn.140004600
mov r14d, r13d
mov ebp, eax
jmp 0x1400052be
lea rdi, str._Disable3
mov rsi, rax
mov ecx, 0xa
repe cmpsw word [rsi], word [rdi]
jne 0x14000524d
xor ecx, ecx
call fcn.140004600
mov ecx, 0x102
mov ebx, eax
call fcn.140004600
xor r14d, r14d
mov ebp, eax
jmp 0x1400052be
lea rdi, str._Switch3
mov rsi, rax
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
jne 0x1400052be
mov ecx, r12d
call fcn.140004600
mov ecx, 0x102
mov ebx, eax
call fcn.140004600
mov ebp, eax
cmp ebx, r13d
jne 0x140005287
xor ecx, ecx
call fcn.140004600
mov ebx, eax
jmp 0x1400052b8
test ebx, ebx
jne 0x1400052b8
mov ecx, r13d
call fcn.140004600
mov ebx, eax
cmp ebp, r13d
jne 0x1400052a8
mov ecx, 0x100
call fcn.140004600
mov ebp, eax
jmp 0x1400052b8
test ebp, ebp
jne 0x1400052b8
mov ecx, 0x101
call fcn.140004600
mov ebp, eax
mov r14d, 3
cmp dword [rsp + 0x20], 3
jl 0x1400052da
mov rsi, qword [r15 + 0x10]
lea rdi, str._NoOSD
mov ecx, 7
repe cmpsw word [rsi], word [rdi]
je 0x140005340
cmp ebx, r13d
jne 0x14000530d
cmp ebp, r13d
jne 0x1400052f0
xor edx, edx
lea ecx, [rdx + 0x69]
call fcn.1400055b0
jmp 0x140005349
test ebp, ebp
jne 0x140005301
lea ecx, [rbp + 0x69]
mov edx, r12d
call fcn.1400055b0
jmp 0x140005349
xor edx, edx
lea ecx, [rdx + 0x6a]
call fcn.1400055b0
jmp 0x140005349
test ebx, ebx
jne 0x140005340
cmp ebp, r13d
jne 0x140005323
lea ecx, [rbx + 0x69]
mov edx, r13d
call fcn.1400055b0
jmp 0x140005349
test ebp, ebp
jne 0x140005334
lea edx, [rbp + 3]
lea ecx, [rbp + 0x69]
call fcn.1400055b0
jmp 0x140005349
xor edx, edx
lea ecx, [rdx + 0x6b]
call fcn.1400055b0
jmp 0x140005349
cmp ebx, 0xffffffff
je 0x1400053d2
lea rdx, str.HControl
lea rcx, str.HCONTROL
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
test rax, rax
je 0x1400053d2
cmp ebp, r13d
jne 0x14000538e
mov edx, dword [0x140037228]
lea ecx, [rbx + 0x200]
movsxd r9, ecx
lea ecx, [r14 + 0x300]
movsxd r8, ecx
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1400053d2
test ebp, ebp
jne 0x1400053b6
mov edx, dword [0x140037228]
lea eax, [rbx + 0x100]
mov rcx, rdi
movsxd r9, eax
lea eax, [r14 + 0x300]
movsxd r8, eax
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1400053d2
mov edx, dword [0x140037228]
lea eax, [r14 + 0x300]
movsxd r9, ebx
movsxd r8, eax
mov rcx, rdi
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [0x140037210]
mov r14, qword [rsp + 0x30]
test rcx, rcx
je 0x14000557b
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140037210], 0
jmp 0x14000557b
mov rax, qword [r15 + 8]
cmp word [rax + rdi*2 - 2], 0x34
jne 0x14000557b
call fcn.140004000
test eax, eax
je 0x14000557b
mov rax, qword [r15 + 8]
lea rdi, str._Read4
mov ecx, 7
mov rsi, rax
mov r12d, ebx
repe cmpsw word [rsi], word [rdi]
jne 0x140005447
call fcn.1400042c0
mov r12d, 2
mov ebx, eax
jmp 0x1400054d1
lea rdi, str._Enable4
mov rsi, rax
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
jne 0x140005470
mov r13d, 1
mov ecx, r13d
call fcn.140004310
mov r12d, r13d
mov ebx, eax
jmp 0x1400054d1
lea rdi, str._Disable4
mov rsi, rax
mov ecx, 0xa
repe cmpsw word [rsi], word [rdi]
jne 0x140005492
xor ecx, ecx
call fcn.140004310
xor r12d, r12d
mov ebx, eax
jmp 0x1400054d1
lea rdi, str._Switch4
mov rsi, rax
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
jne 0x1400054d1
call fcn.1400042c0
mov ebx, eax
cmp eax, 1
jne 0x1400054bd
xor ecx, ecx
call fcn.140004310
mov ebx, eax
jmp 0x1400054cb
test eax, eax
jne 0x1400054cb
lea ecx, [rax + 1]
call fcn.140004310
mov ebx, eax
mov r12d, 3
cmp dword [rsp + 0x20], 3
jl 0x1400054ed
mov rsi, qword [r15 + 0x10]
lea rdi, str._NoOSD
mov ecx, 7
repe cmpsw word [rsi], word [rdi]
je 0x14000550e
cmp ebx, 1
jne 0x1400054fe
lea ecx, [rbx + 0x69]
xor edx, edx
call fcn.1400055b0
jmp 0x140005513
test ebx, ebx
jne 0x14000550e
lea ecx, [rbx + 0x6b]
xor edx, edx
call fcn.1400055b0
jmp 0x140005513
cmp ebx, 0xffffffff
je 0x140005549
lea rdx, str.HControl
lea rcx, str.HCONTROL
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140005549
mov edx, dword [0x140037228]
lea ecx, [r12 + 0x400]
movsxd r9, ebx
movsxd r8, ecx
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [0x1400371c8]
test rcx, rcx
je 0x14000557b
mov rax, qword [0x1400371e8]
test rax, rax
je 0x14000556a
call rax
mov rcx, qword [0x1400371c8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1400371c8], 0
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x38]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
add rsp, 0x48
pop r15
pop rbx
ret