Function at 0x140003f80
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 0x140003faf
or eax, 0xffffffff
add rsp, 0x48
pop r15
pop rbx
ret
cmp dword [rsp + 0x20], 2
jl 0x140004594
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 0x140004188
call fcn.140003350
test eax, eax
je 0x140004188
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 0x140004040
mov rax, qword [0x1400361f8]
test rax, rax
je 0x140004035
call rax
mov ebx, eax
mov r12d, 2
jmp 0x1400040ee
lea rdi, str._Enable2
mov rsi, rax
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
jne 0x140004071
mov rax, qword [0x140036200]
test rax, rax
je 0x140004069
xor ecx, ecx
call rax
test eax, eax
cmovne ebx, ebp
mov r12d, 1
jmp 0x1400040ee
lea rdi, str._Disable2
mov rsi, rax
mov ecx, 0xa
repe cmpsw word [rsi], word [rdi]
jne 0x1400040a7
mov rax, qword [0x140036200]
test rax, rax
je 0x1400040a2
mov r13d, 1
mov ecx, r13d
call rax
test eax, eax
cmovne ebx, r13d
mov r12d, ebp
jmp 0x1400040ee
lea rdi, str._Switch2
mov rsi, rax
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
jne 0x1400040ee
mov rax, qword [0x140036208]
test rax, rax
je 0x1400040e8
call rax
test eax, eax
je 0x1400040e8
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [0x1400361f8]
test rdx, rdx
je 0x1400040e8
call rdx
mov ebx, eax
mov r12d, 3
cmp dword [rsp + 0x20], 3
jl 0x14000410a
mov rsi, qword [r15 + 0x10]
lea rdi, str._NoOSD
mov ecx, 7
repe cmpsw word [rsi], word [rdi]
je 0x14000412b
test ebx, ebx
jne 0x14000411a
lea ecx, [rbx + 0x6a]
xor edx, edx
call fcn.1400045b0
jmp 0x140004130
cmp ebx, 1
jne 0x14000412b
lea ecx, [rbx + 0x6a]
xor edx, edx
call fcn.1400045b0
jmp 0x140004130
cmp ebx, 0xffffffff
je 0x140004166
lea rdx, str.HControl
lea rcx, str.HCONTROL
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140004166
mov edx, dword [0x140036228]
lea ecx, [r12 + 0x200]
movsxd r9, ebx
movsxd r8, ecx
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [0x1400361f0]
test rcx, rcx
je 0x14000457b
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1400361f0], rbp
jmp 0x14000457b
mov rax, qword [r15 + 8]
cmp word [rax + rdi*2 - 2], 0x33
jne 0x1400043fd
call fcn.140003510
test eax, eax
je 0x1400043fd
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 0x1400041ed
mov ecx, r12d
call fcn.140003600
mov ecx, 0x102
mov ebx, eax
call fcn.140003600
mov r14d, r12d
mov ebp, eax
jmp 0x1400042be
lea rdi, str._Enable3
mov rsi, rax
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
jne 0x14000421f
mov ecx, r13d
call fcn.140003600
mov ecx, 0x102
mov ebx, eax
call fcn.140003600
mov r14d, r13d
mov ebp, eax
jmp 0x1400042be
lea rdi, str._Disable3
mov rsi, rax
mov ecx, 0xa
repe cmpsw word [rsi], word [rdi]
jne 0x14000424d
xor ecx, ecx
call fcn.140003600
mov ecx, 0x102
mov ebx, eax
call fcn.140003600
xor r14d, r14d
mov ebp, eax
jmp 0x1400042be
lea rdi, str._Switch3
mov rsi, rax
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
jne 0x1400042be
mov ecx, r12d
call fcn.140003600
mov ecx, 0x102
mov ebx, eax
call fcn.140003600
mov ebp, eax
cmp ebx, r13d
jne 0x140004287
xor ecx, ecx
call fcn.140003600
mov ebx, eax
jmp 0x1400042b8
test ebx, ebx
jne 0x1400042b8
mov ecx, r13d
call fcn.140003600
mov ebx, eax
cmp ebp, r13d
jne 0x1400042a8
mov ecx, 0x100
call fcn.140003600
mov ebp, eax
jmp 0x1400042b8
test ebp, ebp
jne 0x1400042b8
mov ecx, 0x101
call fcn.140003600
mov ebp, eax
mov r14d, 3
cmp dword [rsp + 0x20], 3
jl 0x1400042da
mov rsi, qword [r15 + 0x10]
lea rdi, str._NoOSD
mov ecx, 7
repe cmpsw word [rsi], word [rdi]
je 0x140004340
cmp ebx, r13d
jne 0x14000430d
cmp ebp, r13d
jne 0x1400042f0
xor edx, edx
lea ecx, [rdx + 0x69]
call fcn.1400045b0
jmp 0x140004349
test ebp, ebp
jne 0x140004301
lea ecx, [rbp + 0x69]
mov edx, r12d
call fcn.1400045b0
jmp 0x140004349
xor edx, edx
lea ecx, [rdx + 0x6a]
call fcn.1400045b0
jmp 0x140004349
test ebx, ebx
jne 0x140004340
cmp ebp, r13d
jne 0x140004323
lea ecx, [rbx + 0x69]
mov edx, r13d
call fcn.1400045b0
jmp 0x140004349
test ebp, ebp
jne 0x140004334
lea edx, [rbp + 3]
lea ecx, [rbp + 0x69]
call fcn.1400045b0
jmp 0x140004349
xor edx, edx
lea ecx, [rdx + 0x6b]
call fcn.1400045b0
jmp 0x140004349
cmp ebx, 0xffffffff
je 0x1400043d2
lea rdx, str.HControl
lea rcx, str.HCONTROL
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
test rax, rax
je 0x1400043d2
cmp ebp, r13d
jne 0x14000438e
mov edx, dword [0x140036228]
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 0x1400043d2
test ebp, ebp
jne 0x1400043b6
mov edx, dword [0x140036228]
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 0x1400043d2
mov edx, dword [0x140036228]
lea eax, [r14 + 0x300]
movsxd r9, ebx
movsxd r8, eax
mov rcx, rdi
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [0x140036210]
mov r14, qword [rsp + 0x30]
test rcx, rcx
je 0x14000457b
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140036210], 0
jmp 0x14000457b
mov rax, qword [r15 + 8]
cmp word [rax + rdi*2 - 2], 0x34
jne 0x14000457b
call fcn.140003000
test eax, eax
je 0x14000457b
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 0x140004447
call fcn.1400032c0
mov r12d, 2
mov ebx, eax
jmp 0x1400044d1
lea rdi, str._Enable4
mov rsi, rax
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
jne 0x140004470
mov r13d, 1
mov ecx, r13d
call fcn.140003310
mov r12d, r13d
mov ebx, eax
jmp 0x1400044d1
lea rdi, str._Disable4
mov rsi, rax
mov ecx, 0xa
repe cmpsw word [rsi], word [rdi]
jne 0x140004492
xor ecx, ecx
call fcn.140003310
xor r12d, r12d
mov ebx, eax
jmp 0x1400044d1
lea rdi, str._Switch4
mov rsi, rax
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
jne 0x1400044d1
call fcn.1400032c0
mov ebx, eax
cmp eax, 1
jne 0x1400044bd
xor ecx, ecx
call fcn.140003310
mov ebx, eax
jmp 0x1400044cb
test eax, eax
jne 0x1400044cb
lea ecx, [rax + 1]
call fcn.140003310
mov ebx, eax
mov r12d, 3
cmp dword [rsp + 0x20], 3
jl 0x1400044ed
mov rsi, qword [r15 + 0x10]
lea rdi, str._NoOSD
mov ecx, 7
repe cmpsw word [rsi], word [rdi]
je 0x14000450e
cmp ebx, 1
jne 0x1400044fe
lea ecx, [rbx + 0x69]
xor edx, edx
call fcn.1400045b0
jmp 0x140004513
test ebx, ebx
jne 0x14000450e
lea ecx, [rbx + 0x6b]
xor edx, edx
call fcn.1400045b0
jmp 0x140004513
cmp ebx, 0xffffffff
je 0x140004549
lea rdx, str.HControl
lea rcx, str.HCONTROL
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140004549
mov edx, dword [0x140036228]
lea ecx, [r12 + 0x400]
movsxd r9, ebx
movsxd r8, ecx
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [0x1400361c8]
test rcx, rcx
je 0x14000457b
mov rax, qword [0x1400361e8]
test rax, rax
je 0x14000456a
call rax
mov rcx, qword [0x1400361c8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1400361c8], 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