Function at 0x140001210
Capabilities:
Execute command
Lock the desktop

Disassembly:
sub rsp, 0x268
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x250], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x140001242
mov edx, 6
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea r8, [0x140003314]
mov qword [rsp + 0x280], rsi
lea rdx, str.settings.txt
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov r8, qword [rsp + 0x20]
test r8, r8
jne 0x140001284
lea rcx, str.Error_opening_file
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov eax, 1
jmp 0x140001479
mov qword [rsp + 0x270], rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x288], rdi
mov edx, 0x100
xor edi, edi
mov qword [rsp + 0x260], r14
mov ebx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
lea esi, [rdi + 1]
test rax, rax
je 0x1400012c8
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov r14d, eax
jmp 0x1400012cf
mov r14d, dword [rsp + 0x20]
mov ebx, esi
mov r8, qword [rsp + 0x20]
lea rcx, [rsp + 0x50]
mov edx, 0x100
mov qword [rsp + 0x278], rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x140001300
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ebp, eax
jmp 0x140001306
mov ebp, dword [rsp + 0x20]
inc ebx
mov r8, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov edx, 0x20
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x140001346
mov rax, rdi
cmp byte [rsp + rax + 0x30], 0xa
je 0x140001335
inc rax
cmp rax, 0x20
jne 0x140001323
jmp 0x140001348
cmp rax, 0x20
jae 0x140001499
mov byte [rsp + rax + 0x30], dil
jmp 0x140001348
inc ebx
mov r8, qword [rsp + 0x20]
lea rcx, [rsp + 0x150]
mov edx, 0x100
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x14000139b
mov rax, rdi
nop dword [rax + rax]
cmp byte [rsp + rax + 0x150], 0xa
je 0x140001385
inc rax
cmp rax, 0x20
jne 0x140001370
jmp 0x14000139d
cmp rax, 0x100
jae 0x140001499
mov byte [rsp + rax + 0x150], dil
jmp 0x14000139d
inc ebx
test ebx, ebx
je 0x1400013b4
lea rcx, str.Errors_with_settings.txt___Quitting_program._n
call fcn.140001010
mov eax, esi
jmp 0x140001459
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rsp + 0x30]
call fcn.140001070
test al, al
jne 0x1400013f6
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x150]
lea rdx, str.cd___s___start______s_
lea rcx, [rsp + 0x50]
call fcn.1400014a0
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [rsp + 0x20]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x30]
call fcn.140001070
test al, al
mov dword [rsp + 0x28], 8
lea rcx, [rsp + 0x28]
cmove edi, esi
call qword [sym.imp.USER32.dll_GetLastInputInfo]
test eax, eax
je 0x14000143d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [rsp + 0x2c]
jmp 0x140001449
lea rcx, str.Failed_to_retrieve_the_last_input_info._n
call fcn.140001010
cmp ebx, ebp
jbe 0x140001453
call qword [sym.imp.USER32.dll_LockWorkStation]
test edi, edi
je 0x140001400
xor eax, eax
mov rbp, qword [rsp + 0x278]
mov rdi, qword [rsp + 0x288]
mov rbx, qword [rsp + 0x270]
mov r14, qword [rsp + 0x260]
mov rsi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001510
add rsp, 0x268
ret
call fcn.140001638
int3