Function at 0x140005714
Capabilities:
Check os version
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x178
lea rax, [rsp + 0x6c]
mov edi, edx
lea r13, [rsp + 0x68]
mov r12, rcx
mov qword [rsp + 0x48], rax
mov rcx, rax
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov rcx, qword [rsp + 0x48]
mov r8, r13
lea rdx, [0x1400877bd]
call fcn.1400797b8
test eax, eax
jg 0x140005770
lea rcx, str.Could_not_scan_keyboard_layout_name___defaulting_to_US
call fcn.140038472
mov dword [rsp + 0x68], 0x409
mov edx, dword [rsp + 0x68]
lea rcx, str.Windows_KBID_0x_08x_n
call fcn.140038472
xor edx, edx
mov eax, dword [rsp + 0x68]
cmp eax, 0x46e
ja 0x140005b20
cmp eax, 0x401
ja 0x1400057a9
lea ecx, [rax - 1]
cmp ecx, 0x43
jbe 0x1400058e8
jmp case.0x140005d96.132099
lea ecx, [rax - 0x402]
cmp ecx, 0x6c
ja case.0x140005d96.132099
lea r8, [0x140087b90]
movsxd rcx, dword [r8 + rcx*4]
add rcx, r8
jmp rcx
lea rbp, [0x140087625]
jmp 0x14000610a
lea rbp, [0x14008769a]
jmp 0x14000610a
lea rbp, [0x140087697]
jmp 0x14000610a
lea rbp, [0x140087691]
jmp 0x14000610a
lea rbp, [0x140087688]
jmp 0x14000610a
lea rbp, [0x140087685]
jmp 0x14000610a
lea rbp, [0x140087679]
jmp 0x14000610a
lea rbp, [0x140087670]
jmp 0x14000610a
lea rbp, [0x14008766a]
jmp 0x14000610a
lea rbp, [0x140087667]
jmp 0x14000610a
lea rbp, [0x140087664]
jmp 0x14000610a
lea rbp, [0x14008765e]
jmp 0x14000610a
lea rbp, [0x14008765b]
jmp 0x14000610a
lea rbp, [0x140087658]
jmp 0x14000610a
lea rbp, [0x140087655]
jmp 0x14000610a
lea rbp, [0x14008764f]
jmp 0x14000610a
lea rbp, [0x140087649]
jmp 0x14000610a
lea rbp, [0x140087634]
jmp 0x14000610a
lea rbp, [0x14008761f]
jmp 0x14000610a
lea rbp, [0x140087619]
jmp 0x14000610a
lea rbp, [0x140087616]
jmp 0x14000610a
lea rbp, [0x140087613]
jmp 0x14000610a
lea rbp, [0x140087610]
jmp 0x14000610a
lea rbp, [0x1400876a0]
jmp 0x14000610a
lea r8, [0x140087d44]
movsxd rcx, dword [r8 + rcx*4]
add rcx, r8
jmp rcx
lea rbp, [0x1400876af]
jmp 0x14000610a
lea rbp, [0x1400876ac]
jmp 0x14000610a
lea rbp, [0x1400876a6]
jmp 0x14000610a
lea rbp, [0x1400876a3]
jmp 0x14000610a
lea rbp, [0x1400876a0]
jmp 0x14000610a
lea rbp, [0x14008769d]
jmp 0x14000610a
lea rbp, [0x140087697]
jmp 0x14000610a
lea rbp, [0x140087694]
jmp 0x14000610a
lea rbp, [0x140087691]
jmp 0x14000610a
lea rbp, [0x14008768e]
jmp 0x14000610a
lea rbp, [0x14008768b]
jmp 0x14000610a
lea rbp, [0x140087688]
jmp 0x14000610a
lea rbp, [0x140087685]
jmp 0x14000610a
lea rbp, [0x140087682]
jmp 0x14000610a
lea rbp, [0x14008767f]
jmp 0x14000610a
lea rbp, [0x14008767c]
jmp 0x14000610a
lea rbp, [0x140087679]
jmp 0x14000610a
lea rbp, [0x140087676]
jmp 0x14000610a
lea rbp, [0x140087673]
jmp 0x14000610a
lea rbp, [0x140087670]
jmp 0x14000610a
lea rbp, [0x14008766a]
jmp 0x14000610a
lea rbp, [0x140087667]
jmp 0x14000610a
lea rbp, [0x140087664]
jmp 0x14000610a
lea rbp, [0x14008765e]
jmp 0x14000610a
lea rbp, [0x14008765b]
jmp 0x14000610a
lea rbp, [0x140087658]
jmp 0x14000610a
lea rbp, [0x140087655]
jmp 0x14000610a
lea rbp, [0x140087652]
jmp 0x14000610a
lea rbp, [0x14008764f]
jmp 0x14000610a
lea rbp, [0x14008764c]
jmp 0x14000610a
lea rbp, [0x140087649]
jmp 0x14000610a
lea rbp, [0x140087646]
jmp 0x14000610a
lea rbp, [0x14008763d]
jmp 0x14000610a
lea rbp, [0x14008763a]
jmp 0x14000610a
lea rbp, [0x140087634]
jmp 0x14000610a
lea rbp, [0x14008761f]
jmp 0x14000610a
lea rbp, [0x140087619]
jmp 0x14000610a
lea rbp, [0x140087616]
jmp 0x14000610a
lea rbp, [0x140087613]
jmp 0x14000610a
lea rbp, [0x140087610]
jmp 0x14000610a
lea rbp, [0x14008760d]
jmp 0x14000610a
lea rbp, [0x14008769a]
jmp 0x14000610a
lea rbp, [0x140087694]
jmp 0x14000610a
lea rbp, [0x14008767c]
jmp 0x14000610a
lea rbp, [0x140087676]
jmp 0x14000610a
lea rbp, [0x14008763a]
jmp 0x14000610a
cmp eax, 0x1043b
ja 0x140005d56
cmp eax, 0x10400
jbe 0x140005c51
lea ecx, [rax - 0x10401]
cmp ecx, 0x3a
ja case.0x140005d96.132099
lea r8, [0x140087e54]
movsxd rcx, dword [r8 + rcx*4]
add rcx, r8
jmp rcx
lea rbp, [0x1400876a0]
jmp 0x14000610a
lea rbp, [0x14008769a]
jmp 0x14000610a
lea rbp, [0x14008762b]
jmp 0x14000610a
lea rbp, [0x14008761f]
jmp 0x14000610a
lea rbp, [0x140087613]
jmp 0x14000610a
lea rbp, [0x14008760d]
jmp 0x14000610a
lea rbp, [0x140087697]
jmp 0x14000610a
lea rbp, [0x140087691]
jmp 0x14000610a
lea rbp, [0x140087685]
jmp 0x14000610a
lea rbp, [0x140087679]
jmp 0x14000610a
lea rbp, [0x140087670]
jmp 0x14000610a
lea rbp, [0x140087667]
jmp 0x14000610a
lea rbp, [0x14008765e]
jmp 0x14000610a
lea rbp, [0x14008765b]
jmp 0x14000610a
lea rbp, [0x140087658]
jmp 0x14000610a
lea rbp, [0x14008764f]
jmp 0x14000610a
lea rbp, [0x140087649]
jmp 0x14000610a
lea rbp, [0x140087634]
jmp 0x14000610a
lea rbp, [0x140087619]
jmp 0x14000610a
lea rbp, [0x140087688]
jmp 0x14000610a
lea rbp, [0x140087664]
jmp 0x14000610a
cmp eax, 0x82c
je 0x140005ff5
ja 0x140005cb9
lea ecx, [rax - 0x804]
cmp ecx, 0x16
ja case.0x140005d96.132099
lea r8, [0x140087f40]
movsxd rcx, dword [r8 + rcx*4]
add rcx, r8
jmp rcx
lea rbp, [0x140087637]
jmp 0x14000610a
lea rbp, [0x140087625]
jmp 0x14000610a
lea rbp, [0x140087610]
jmp 0x14000610a
lea rbp, [0x14008766a]
jmp 0x14000610a
lea rbp, [0x140087655]
jmp 0x14000610a
cmp eax, 0x1009
je 0x140006001
ja 0x140005d14
cmp eax, 0xc0c
je 0x14000600d
ja 0x140005cf9
cmp eax, 0x843
je 0x140006019
cmp eax, 0xc04
je 0x140006025
cmp eax, 0x83b
je 0x140006031
jmp case.0x140005d96.132099
cmp eax, 0xc1a
je 0x14000603d
cmp eax, 0x1004
je 0x140006049
jmp case.0x140005d96.132099
cmp eax, 0x100c
je 0x140006055
cmp eax, 0x100b
jbe case.0x140005d96.132099
cmp eax, 0x201a
je 0x140006061
ja case.0x140005d96.132099
cmp eax, 0x1404
je 0x14000606d
cmp eax, 0x1809
je 0x140006079
jmp case.0x140005d96.132099
cmp eax, 0x20427
je 0x140006085
ja 0x140005e0f
cmp eax, 0x20409
ja 0x140005df4
cmp eax, 0x20400
jbe 0x140005dbc
lea ecx, [rax - 0x20401]
cmp ecx, 8
ja case.0x140005d96.132099
lea r8, [0x140087f9c]
movsxd rcx, dword [r8 + rcx*4]
add rcx, r8
jmp rcx
lea rbp, [0x14008761f]
jmp 0x14000610a
lea rbp, [0x14008760d]
jmp 0x14000610a
lea rbp, [0x140087613]
jmp 0x14000610a
cmp eax, 0x1083b
je 0x14000608e
ja 0x140005dd9
cmp eax, 0x1080c
je 0x140006097
jmp case.0x140005d96.132099
cmp eax, 0x11009
je 0x1400060a0
cmp eax, 0x11809
je 0x1400060a9
jmp case.0x140005d96.132099
cmp eax, 0x20418
je 0x1400060b2
cmp eax, 0x20422
je 0x1400060bb
jmp case.0x140005d96.132099
cmp eax, 0x40402
je 0x1400060c4
ja 0x140005e53
cmp eax, 0x30409
je 0x1400060cd
ja case.0x140005d96.132099
cmp eax, 0x30402
je 0x1400060d6
cmp eax, 0x30408
je 0x1400060df
cmp eax, 0x20437
je 0x1400060e8
jmp case.0x140005d96.132099
cmp eax, 0x40409
je 0x1400060f1
ja 0x140005e70
cmp eax, 0x40408
je 0x1400060fa
jmp case.0x140005d96.132099
cmp eax, 0x50409
je case.0x140005d96.132105
lea ecx, [rax - 0x50408]
and ecx, 0xfffeffff
jne case.0x140005d96.132099
jmp 0x140006103
lea rbp, [0x14008763d]
jmp 0x14000610a
lea rbp, [0x140087640]
jmp 0x14000610a
lea rbp, [0x140087646]
jmp 0x14000610a
lea rbp, [0x14008764c]
jmp 0x14000610a
lea rbp, [0x140087652]
jmp 0x14000610a
lea rbp, [0x140087661]
jmp 0x14000610a
lea rbp, [0x140087673]
jmp 0x14000610a
lea rbp, [0x14008767f]
jmp 0x14000610a
lea rbp, [0x140087682]
jmp 0x14000610a
lea rbp, [0x14008768b]
jmp 0x14000610a
lea rbp, [0x14008768e]
jmp 0x14000610a
lea rbp, [0x14008769d]
jmp 0x14000610a
lea rbp, [0x1400876a3]
jmp 0x14000610a
lea rbp, [0x1400876a6]
jmp 0x14000610a
lea rbp, [0x1400876a9]
jmp 0x14000610a
lea rbp, [0x1400876ac]
jmp 0x14000610a
lea rbp, [0x1400876af]
jmp 0x14000610a
test edx, edx
jne 0x140005f75
and eax, 0x3ff
mov edx, 1
mov dword [rsp + 0x68], eax
jmp 0x140005782
dec edx
jne 0x140005fa1
call qword [sym.imp.KERNEL32.DLL_VerifyVersionInfoA]
lea rcx, str.Unable_to_match_KBID__trying_LangID_0x_04x
mov edx, eax
and edx, 0x3ff
mov dword [rsp + 0x68], edx
call fcn.140038472
mov edx, 2
jmp 0x140005782
lea rcx, str.Unable_to_match_KBID_and_LangID___defaulting_to_US
call fcn.140038472
lea rbp, [0x140087622]
jmp 0x14000610a
lea rbp, [0x14008760a]
jmp 0x14000610a
lea rbp, [0x14008760a]
jmp 0x14000610a
lea rbp, [0x14008761c]
jmp 0x14000610a
lea rbp, [0x14008760d]
jmp 0x14000610a
lea rbp, [0x14008760a]
jmp 0x14000610a
lea rbp, [0x140087694]
jmp 0x14000610a
lea rbp, [0x140087628]
jmp 0x14000610a
lea rbp, [0x140087628]
jmp 0x14000610a
lea rbp, [0x1400876a9]
jmp 0x14000610a
lea rbp, [0x140087610]
jmp 0x14000610a
lea rbp, [0x140087676]
jmp 0x14000610a
lea rbp, [0x14008766d]
jmp 0x14000610a
lea rbp, [0x140087610]
jmp 0x14000610a
lea rbp, [0x140087643]
jmp 0x14000610a
lea rbp, [0x14008766d]
jmp 0x14000610a
lea rbp, [0x140087610]
jmp 0x14000610a
lea rbp, [0x140087625]
jmp 0x14000610a
lea rbp, [0x140087688]
jmp 0x14000610a
lea rbp, [0x14008763a]
jmp 0x14000610a
lea rbp, [0x140087640]
jmp 0x14000610a
lea rbp, [0x140087628]
jmp 0x14000610a
lea rbp, [0x140087625]
jmp 0x14000610a
lea rbp, [0x140087664]
jmp 0x14000610a
lea rbp, [0x14008767c]
jmp 0x14000610a
lea rbp, [0x14008760d]
jmp 0x14000610a
lea rbp, [0x14008762e]
jmp 0x14000610a
lea rbp, [0x14008760d]
jmp 0x14000610a
lea rbp, [0x14008761f]
jmp 0x14000610a
lea rbp, [0x14008769a]
jmp 0x14000610a
lea rbp, [0x140087631]
jmp 0x14000610a
lea rbp, [0x14008761f]
jmp 0x14000610a
lea rbp, [0x14008761f]
mov rcx, rbp
test edi, edi
je 0x140006118
call fcn.140005560
jmp 0x14000611d
call fcn.1400055c9
movsxd rsi, eax
cmp esi, 0xffffffff
jne 0x140006174
lea rcx, str.Keyboard_id__s_is_not_supported___falling_back_to_us
mov rdx, rbp
call fcn.140038472
test edi, edi
lea rcx, [0x140087622]
je 0x140006146
call fcn.140005560
jmp 0x14000614b
call fcn.1400055c9
movsxd rsi, eax
lea rbp, [0x140087622]
cmp esi, 0xffffffff
jne 0x140006174
mov r8d, 0x3d9
lea rdx, str.dos_locale.c
lea rcx, str.kbdrv___0
call qword [sym.imp.msvcrt.dll_memmove]
mov rcx, rbp
call fcn.14000567b
mov rdx, rbp
lea rcx, str.Will_use_DOS_keyboard__s___s_
mov r8, rax
call fcn.140038472
call qword [sym.imp.KERNEL32.DLL_SetThreadAffSetThreadUILanguage]
mov ebx, eax
cmp eax, 0xfde9
jne 0x1400061c6
call qword [0x14011c5d0]
mov r9d, 4
mov r8, r13
mov edx, 0x2000000b
movzx ecx, ax
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je case.0x1400063d6.30035
mov ebx, dword [rsp + 0x68]
test edi, edi
je 0x14000646a
cmp ebx, 0xbcd
je case.0x1400063d6.30022
ja 0x14000630d
cmp ebx, 0x383
ja 0x1400062c1
cmp ebx, 0x34f
ja 0x14000623b
cmp ebx, 0x316
ja 0x1400062af
cmp ebx, 0x301
ja 0x140006272
cmp ebx, 0x29c
ja 0x14000629d
cmp ebx, 0x29a
ja case.0x14000628f.790
cmp ebx, 0x71
je case.0x140006258.851
lea r13, str.ega.cpx
cmp ebx, 0x1b5
jmp 0x140006456
lea eax, [rbx - 0x350]
cmp eax, 0x33
ja case.0x1400063d6.30035
lea rdx, [0x140087fc0]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
lea r13, str.ega9.cpx
jmp 0x140006586
lea r13, str.ega.cpx
jmp 0x140006586
lea eax, [rbx - 0x302]
cmp eax, 0x14
ja case.0x1400063d6.30035
lea rdx, [0x140088090]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
lea r13, str.ega8.cpx
jmp 0x140006586
lea r13, str.ega5.cpx
cmp ebx, 0x2e1
jmp 0x140006456
lea r13, str.ega3.cpx
cmp ebx, 0x328
jmp 0x140006456
cmp ebx, 0x465
je case.0x140006258.848
ja 0x1400062ef
cmp ebx, 0x3df
je case.0x14000628f.790
lea eax, [rbx - 0x45c]
cmp eax, 3
jbe case.0x140006258.859
jmp case.0x1400063d6.30035
lea r13, str.ega4.cpx
cmp ebx, 0x46b
je 0x140006586
cmp ebx, 0xbc4
jmp 0x140006456
cmp ebx, 0x7543
ja 0x1400063b1
cmp ebx, 0x7539
jbe 0x140006355
lea ecx, [rbx - 0x753a]
mov eax, 1
lea r13, str.ega7.cpx
shl rax, cl
test eax, 0x39a
jne 0x140006586
lea r13, str.ega4.cpx
test al, 0x64
je 0x140006586
jmp case.0x1400063d6.30020
cmp ebx, 0x752f
jbe 0x140006390
lea eax, [rbx - 0x7532]
cmp eax, 6
ja case.0x140006376.30004
lea rdx, [0x1400880e4]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
lea r13, str.ega11.cpx
jmp 0x140006586
lea r13, str.ega12
jmp 0x140006586
lea eax, [rbx - 0xf06]
and eax, 0xfffffffd
je case.0x140006258.856
lea r13, str.ega10.cpx
cmp ebx, 0xf05
jmp 0x140006456
cmp ebx, 0x7558
ja 0x1400063e4
lea eax, [rbx - 0x7544]
cmp eax, 0x14
ja case.0x1400063d6.30035
lea rdx, [0x140088100]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
lea r13, str.ega15.cpx
jmp 0x140006586
cmp ebx, 0xe762
je case.0x140006376.30002
ja 0x140006420
cmp ebx, 0xe362
je case.0x140006376.30008
lea r13, str.ega12
cmp ebx, 0xe3df
je 0x140006586
lea r13, str.ega13.cpx
cmp ebx, 0xe328
jmp 0x140006456
cmp ebx, 0xedb5
je case.0x140006376.30008
ja 0x140006449
lea r13, str.ega6.cpx
cmp ebx, 0xe9b5
je 0x140006586
cmp ebx, 0xeb62
jmp 0x140006456
lea r13, str.ega13.cpx
cmp ebx, 0xf362
je 0x140006586
jmp case.0x1400063d6.30035
lea r13, str.ega17.cpx
jmp 0x140006586
cmp ebx, 0x365
ja case.0x1400063d6.30035
cmp ebx, 0x351
ja 0x14000649f
cmp ebx, 0x2e1
je 0x140006576
cmp ebx, 0x307
je 0x14000657f
cmp ebx, 0x1b5
jne case.0x1400063d6.30035
jmp 0x14000656d
lea ecx, [rbx - 0x352]
mov eax, 1
shl rax, cl
test eax, 0xa405
jne 0x14000656d
test eax, 0x80880
jne 0x140006576
test eax, 0x10020
jne 0x14000657f
mov ecx, ebx
lea r13, str.ega.cpi
call fcn.140005632
mov edx, ebx
lea rcx, str.Unable_to_find_an_EGA_file_with_codepage__d___s_
mov r8, rax
call fcn.140038472
movsxd rax, esi
lea rdx, str.keyboard.sys
shl rax, 4
mov ebx, dword [rdx + rax + 8]
test edi, edi
je 0x140006597
lea r13, str.ega.cpx
jmp 0x140006597
lea r13, str.ega3.cpx
jmp 0x140006586
lea r13, str.ega16.cpx
jmp 0x140006586
lea r13, str.ega5.cpx
jmp 0x140006586
lea r13, str.ega14.cpx
jmp 0x140006586
lea r13, str.ega2.cpx
jmp 0x140006586
lea r13, str.ega4.cpx
jmp 0x140006586
lea r13, str.ega10.cpx
jmp 0x140006586
lea r13, str.ega18.cpx
jmp 0x140006586
lea r13, str.ega13.cpx
jmp 0x140006586
lea r13, str.ega6.cpx
jmp 0x140006586
lea r13, str.ega.cpi
jmp 0x140006586
lea r13, str.ega2.cpi
jmp 0x140006586
lea r13, str.ega3.cpi
test edi, edi
je 0x140006597
cmp ebx, 0x352
jne 0x140006597
mov ebx, 0x35a
mov ecx, ebx
lea r14, [0x140087933]
call fcn.140005632
mov edx, ebx
lea rcx, str.Will_use_codepage__d___s_
mov r8, rax
call fcn.140038472
cmp ebx, 0x1b5
jne 0x140006690
lea r15, [0x140087622]
mov rcx, rbp
mov rdx, r15
call fcn.1400797d0
test eax, eax
jne 0x140006690
mov r8d, 1
test r12, r12
je 0x1400065f3
mov rcx, r12
call fcn.1400797e8
lea r8, [rax + 1]
mov rcx, qword [rsp + 0x48]
mov rdx, r12
call fcn.1400056ed
mov rcx, qword [rsp + 0x48]
or r9, 0xffffffffffffffff
lea r8, str.AUTOEXEC.BAT
mov edx, 0x104
call qword [0x14011cbb0]
mov rcx, qword [rsp + 0x48]
mov rdx, r14
call fcn.140079698
mov rbx, rax
test rax, rax
je 0x140006858
mov rdx, rax
lea rcx, str._echo_off_n
call fcn.1400796b0
mov rdx, rbx
lea rcx, str.set_PATH.__LOCALE_n
call fcn.1400796b0
mov ecx, 0x1b5
call fcn.140005632
mov rcx, r15
mov qword [rsp + 0x48], rax
call fcn.14000567b
mov dword [rsp + 0x20], 0x1b5
mov rcx, rbx
mov r9, qword [rsp + 0x48]
mov r8, rax
lea rdx, str.echo_Using__s_keyboard_with__s_codepage___d__n
call fcn.1400796a0
mov rcx, rbx
jmp 0x140006915
mov r8d, 1
test r12, r12
je 0x1400066a7
mov rcx, r12
call fcn.1400797e8
lea r8, [rax + 1]
mov rcx, qword [rsp + 0x48]
mov rdx, r12
call fcn.1400056ed
mov rcx, qword [rsp + 0x48]
or r9, 0xffffffffffffffff
lea r8, str.CONFIG.SYS
mov edx, 0x104
call qword [0x14011cbb0]
mov rcx, qword [rsp + 0x48]
mov rdx, r14
call fcn.140079698
mov r14, rax
test rax, rax
jne 0x1400066ff
call fcn.14003893c
lea rcx, str.Unable_to_create_CONFIG.SYS:__s.
mov rdx, rax
call fcn.140038472
xor eax, eax
jmp 0x14000692b
mov rdx, rax
lea rcx, str._MENU__n
test edi, edi
je 0x140006723
lea rcx, str._MENUCOLOR7_0_nMENU_nMENU___FreeDOS_Language_Selection_Menu_n
call fcn.1400796b0
mov rdx, r14
lea rcx, str.MENU
call fcn.1400796b0
mov rdx, r14
lea rcx, str.MENUDEFAULT1_5_n
call fcn.1400796b0
mov ecx, ebx
call fcn.140005632
mov rcx, rbp
mov r15, rax
call fcn.14000567b
mov r9d, 0x2c
lea r8, str.MENUITEM
test edi, edi
je 0x140006767
mov r9d, 0x29
lea r8, [0x140087772]
mov qword [rsp + 0x28], r15
lea rdx, str._s1_c_Use__s_keyboard_with__s_codepage___d__n
mov rcx, r14
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x5c], r9d
mov qword [rsp + 0x50], r8
call fcn.1400796a0
mov ecx, 0x1b5
call fcn.140005632
lea rcx, [0x140087622]
mov r15, rax
call fcn.14000567b
mov dword [rsp + 0x30], 0x1b5
mov r9d, dword [rsp + 0x5c]
mov rcx, r14
mov qword [rsp + 0x28], r15
mov r8, qword [rsp + 0x50]
lea rdx, str._s2_c_Use__s_keyboard_with__s_codepage___d__n
mov qword [rsp + 0x20], rax
call fcn.1400796a0
lea rcx, str._1__ndevicelocaledisplay.sys_con_ega__1__n_2__n
test edi, edi
je 0x1400067e4
lea rcx, str.MENU_n12__n
mov rdx, r14
call fcn.1400796b0
mov rcx, r14
call sub.msvcrt.dll_wcsstr
lea rcx, str.Successfully_wrote_CONFIG.SYS
call fcn.140038472
mov r8d, 1
test r12, r12
je 0x140006817
mov rcx, r12
call fcn.1400797e8
lea r8, [rax + 1]
mov rcx, qword [rsp + 0x48]
mov rdx, r12
call fcn.1400056ed
mov rcx, qword [rsp + 0x48]
or r9, 0xffffffffffffffff
lea r8, str.AUTOEXEC.BAT
mov edx, 0x104
call qword [0x14011cbb0]
mov rcx, qword [rsp + 0x48]
lea rdx, [0x140087933]
call fcn.140079698
mov r12, rax
test rax, rax
jne 0x14000686c
call fcn.14003893c
lea rcx, str.Unable_to_create_AUTOEXEC.BAT:__s
mov rdx, rax
jmp 0x1400066f3
mov rdx, rax
lea rcx, str._echo_off_n
call fcn.1400796b0
mov rdx, r12
lea rcx, str.set_PATH.__LOCALE_n
call fcn.1400796b0
test edi, edi
je 0x14000689d
mov rdx, r12
lea rcx, str.display_con_ega__1__n
call fcn.1400796b0
lea rdx, str.GOTO___CONFIG___n
mov rcx, r12
shl rsi, 4
call fcn.1400796a0
mov rdx, r12
lea rcx, [0x140087b1d]
call fcn.1400796b0
mov r9, r13
mov r8d, ebx
mov rcx, r12
lea rdx, str.mode_con_codepage_prepare___d__locale_s____NUL_n
call fcn.1400796a0
mov r8d, ebx
lea rdx, str.mode_con_codepage_select_d___NUL_n
mov rcx, r12
call fcn.1400796a0
lea rax, str.keyboard.sys
mov r8, rbp
mov rcx, r12
mov r9, qword [rax + rsi]
lea rdx, str.keyb__s__locale_s_n
call fcn.1400796a0
lea rcx, [0x140087b8c]
mov rdx, r12
call fcn.1400796b0
mov rcx, r12
call sub.msvcrt.dll_wcsstr
lea rcx, str.Successfully_wrote_AUTOEXEC.BAT
call fcn.140038472
mov eax, 1
add rsp, 0x178
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret