Function at 0x14000a6ad
Capabilities:
Get geographical location
Get keyboard layout
Identify system language via api

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 r13d, edx
lea rsi, [rsp + 0x68]
mov r12, rcx
mov qword [rsp + 0x48], rax
mov rcx, rax
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
mov rcx, qword [rsp + 0x48]
mov r8, rsi
lea rdx, [0x140080dfd]
call sub.msvcrt.dll_sscanf
test eax, eax
jne 0x14000a70a
lea rcx, str.Could_not_scan_keyboard_layout_name___falling_back_to_US_as_default_n
call fcn.140036717
mov dword [rsp + 0x68], 0x409
mov edx, dword [rsp + 0x68]
lea rcx, str.Windows_KBID_0x_08x_n
call fcn.140036717
xor edx, edx
mov eax, dword [rsp + 0x68]
cmp eax, 0x46e
ja 0x14000aaba
cmp eax, 0x401
ja 0x14000a743
lea ecx, [rax - 1]
cmp ecx, 0x43
jbe 0x14000a882
jmp case.0x14000ad30.132099
lea ecx, [rax - 0x402]
cmp ecx, 0x6c
ja case.0x14000ad30.132099
lea r8, [0x1400811e8]
movsxd rcx, dword [r8 + rcx*4]
add rcx, r8
jmp rcx
lea r14, [0x140080c65]
jmp 0x14000b0a4
lea r14, [0x140080cda]
jmp 0x14000b0a4
lea r14, [0x140080cd7]
jmp 0x14000b0a4
lea r14, [0x140080cd1]
jmp 0x14000b0a4
lea r14, [0x140080cc8]
jmp 0x14000b0a4
lea r14, [0x140080cc5]
jmp 0x14000b0a4
lea r14, [0x140080cb9]
jmp 0x14000b0a4
lea r14, [0x140080cb0]
jmp 0x14000b0a4
lea r14, [0x140080caa]
jmp 0x14000b0a4
lea r14, [0x140080ca7]
jmp 0x14000b0a4
lea r14, [0x140080ca4]
jmp 0x14000b0a4
lea r14, [0x140080c9e]
jmp 0x14000b0a4
lea r14, [0x140080c9b]
jmp 0x14000b0a4
lea r14, [0x140080c98]
jmp 0x14000b0a4
lea r14, [0x140080c95]
jmp 0x14000b0a4
lea r14, [0x140080c8f]
jmp 0x14000b0a4
lea r14, [0x140080c89]
jmp 0x14000b0a4
lea r14, [0x140080c74]
jmp 0x14000b0a4
lea r14, [0x140080c5f]
jmp 0x14000b0a4
lea r14, [0x140080c59]
jmp 0x14000b0a4
lea r14, [0x140080c56]
jmp 0x14000b0a4
lea r14, [0x140080c53]
jmp 0x14000b0a4
lea r14, [0x140080c50]
jmp 0x14000b0a4
lea r14, [0x140080ce0]
jmp 0x14000b0a4
lea r8, [0x14008139c]
movsxd rcx, dword [r8 + rcx*4]
add rcx, r8
jmp rcx
lea r14, [0x140080cef]
jmp 0x14000b0a4
lea r14, [0x140080cec]
jmp 0x14000b0a4
lea r14, [0x140080ce6]
jmp 0x14000b0a4
lea r14, [0x140080ce3]
jmp 0x14000b0a4
lea r14, [0x140080ce0]
jmp 0x14000b0a4
lea r14, [0x140080cdd]
jmp 0x14000b0a4
lea r14, [0x140080cd7]
jmp 0x14000b0a4
lea r14, [0x140080cd4]
jmp 0x14000b0a4
lea r14, [0x140080cd1]
jmp 0x14000b0a4
lea r14, [0x140080cce]
jmp 0x14000b0a4
lea r14, [0x140080ccb]
jmp 0x14000b0a4
lea r14, [0x140080cc8]
jmp 0x14000b0a4
lea r14, [0x140080cc5]
jmp 0x14000b0a4
lea r14, [0x140080cc2]
jmp 0x14000b0a4
lea r14, [0x140080cbf]
jmp 0x14000b0a4
lea r14, [0x140080cbc]
jmp 0x14000b0a4
lea r14, [0x140080cb9]
jmp 0x14000b0a4
lea r14, [0x140080cb6]
jmp 0x14000b0a4
lea r14, [0x140080cb3]
jmp 0x14000b0a4
lea r14, [0x140080cb0]
jmp 0x14000b0a4
lea r14, [0x140080caa]
jmp 0x14000b0a4
lea r14, [0x140080ca7]
jmp 0x14000b0a4
lea r14, [0x140080ca4]
jmp 0x14000b0a4
lea r14, [0x140080c9e]
jmp 0x14000b0a4
lea r14, [0x140080c9b]
jmp 0x14000b0a4
lea r14, [0x140080c98]
jmp 0x14000b0a4
lea r14, [0x140080c95]
jmp 0x14000b0a4
lea r14, [0x140080c92]
jmp 0x14000b0a4
lea r14, [0x140080c8f]
jmp 0x14000b0a4
lea r14, [0x140080c8c]
jmp 0x14000b0a4
lea r14, [0x140080c89]
jmp 0x14000b0a4
lea r14, [0x140080c86]
jmp 0x14000b0a4
lea r14, [0x140080c7d]
jmp 0x14000b0a4
lea r14, [0x140080c7a]
jmp 0x14000b0a4
lea r14, [0x140080c74]
jmp 0x14000b0a4
lea r14, [0x140080c5f]
jmp 0x14000b0a4
lea r14, [0x140080c59]
jmp 0x14000b0a4
lea r14, [0x140080c56]
jmp 0x14000b0a4
lea r14, [0x140080c53]
jmp 0x14000b0a4
lea r14, [0x140080c50]
jmp 0x14000b0a4
lea r14, [0x140080c4d]
jmp 0x14000b0a4
lea r14, [0x140080cda]
jmp 0x14000b0a4
lea r14, [0x140080cd4]
jmp 0x14000b0a4
lea r14, [0x140080cbc]
jmp 0x14000b0a4
lea r14, [0x140080cb6]
jmp 0x14000b0a4
lea r14, [0x140080c7a]
jmp 0x14000b0a4
cmp eax, 0x1043b
ja 0x14000acf0
cmp eax, 0x10400
jbe 0x14000abeb
lea ecx, [rax - 0x10401]
cmp ecx, 0x3a
ja case.0x14000ad30.132099
lea r8, [0x1400814ac]
movsxd rcx, dword [r8 + rcx*4]
add rcx, r8
jmp rcx
lea r14, [0x140080ce0]
jmp 0x14000b0a4
lea r14, [0x140080cda]
jmp 0x14000b0a4
lea r14, [0x140080c6b]
jmp 0x14000b0a4
lea r14, [0x140080c5f]
jmp 0x14000b0a4
lea r14, [0x140080c53]
jmp 0x14000b0a4
lea r14, [0x140080c4d]
jmp 0x14000b0a4
lea r14, [0x140080cd7]
jmp 0x14000b0a4
lea r14, [0x140080cd1]
jmp 0x14000b0a4
lea r14, [0x140080cc5]
jmp 0x14000b0a4
lea r14, [0x140080cb9]
jmp 0x14000b0a4
lea r14, [0x140080cb0]
jmp 0x14000b0a4
lea r14, [0x140080ca7]
jmp 0x14000b0a4
lea r14, [0x140080c9e]
jmp 0x14000b0a4
lea r14, [0x140080c9b]
jmp 0x14000b0a4
lea r14, [0x140080c98]
jmp 0x14000b0a4
lea r14, [0x140080c8f]
jmp 0x14000b0a4
lea r14, [0x140080c89]
jmp 0x14000b0a4
lea r14, [0x140080c74]
jmp 0x14000b0a4
lea r14, [0x140080c59]
jmp 0x14000b0a4
lea r14, [0x140080cc8]
jmp 0x14000b0a4
lea r14, [0x140080ca4]
jmp 0x14000b0a4
cmp eax, 0x82c
je 0x14000af8f
ja 0x14000ac53
lea ecx, [rax - 0x804]
cmp ecx, 0x16
ja case.0x14000ad30.132099
lea r8, [0x140081598]
movsxd rcx, dword [r8 + rcx*4]
add rcx, r8
jmp rcx
lea r14, [0x140080c77]
jmp 0x14000b0a4
lea r14, [0x140080c65]
jmp 0x14000b0a4
lea r14, [0x140080c50]
jmp 0x14000b0a4
lea r14, [0x140080caa]
jmp 0x14000b0a4
lea r14, [0x140080c95]
jmp 0x14000b0a4
cmp eax, 0x1009
je 0x14000af9b
ja 0x14000acae
cmp eax, 0xc0c
je 0x14000afa7
ja 0x14000ac93
cmp eax, 0x843
je 0x14000afb3
cmp eax, 0xc04
je 0x14000afbf
cmp eax, 0x83b
je 0x14000afcb
jmp case.0x14000ad30.132099
cmp eax, 0xc1a
je 0x14000afd7
cmp eax, 0x1004
je 0x14000afe3
jmp case.0x14000ad30.132099
cmp eax, 0x100c
je 0x14000afef
cmp eax, 0x100b
jbe case.0x14000ad30.132099
cmp eax, 0x201a
je 0x14000affb
ja case.0x14000ad30.132099
cmp eax, 0x1404
je 0x14000b007
cmp eax, 0x1809
je 0x14000b013
jmp case.0x14000ad30.132099
cmp eax, 0x20427
je 0x14000b01f
ja 0x14000ada9
cmp eax, 0x20409
ja 0x14000ad8e
cmp eax, 0x20400
jbe 0x14000ad56
lea ecx, [rax - 0x20401]
cmp ecx, 8
ja case.0x14000ad30.132099
lea r8, [0x1400815f4]
movsxd rcx, dword [r8 + rcx*4]
add rcx, r8
jmp rcx
lea r14, [0x140080c5f]
jmp 0x14000b0a4
lea r14, [0x140080c4d]
jmp 0x14000b0a4
lea r14, [0x140080c53]
jmp 0x14000b0a4
cmp eax, 0x1083b
je 0x14000b028
ja 0x14000ad73
cmp eax, 0x1080c
je 0x14000b031
jmp case.0x14000ad30.132099
cmp eax, 0x11009
je 0x14000b03a
cmp eax, 0x11809
je 0x14000b043
jmp case.0x14000ad30.132099
cmp eax, 0x20418
je 0x14000b04c
cmp eax, 0x20422
je 0x14000b055
jmp case.0x14000ad30.132099
cmp eax, 0x40402
je 0x14000b05e
ja 0x14000aded
cmp eax, 0x30409
je 0x14000b067
ja case.0x14000ad30.132099
cmp eax, 0x30402
je 0x14000b070
cmp eax, 0x30408
je 0x14000b079
cmp eax, 0x20437
je 0x14000b082
jmp case.0x14000ad30.132099
cmp eax, 0x40409
je 0x14000b08b
ja 0x14000ae0a
cmp eax, 0x40408
je 0x14000b094
jmp case.0x14000ad30.132099
cmp eax, 0x50409
je case.0x14000ad30.132105
lea ecx, [rax - 0x50408]
and ecx, 0xfffeffff
jne case.0x14000ad30.132099
jmp 0x14000b09d
lea r14, [0x140080c7d]
jmp 0x14000b0a4
lea r14, [0x140080c80]
jmp 0x14000b0a4
lea r14, [0x140080c86]
jmp 0x14000b0a4
lea r14, [0x140080c8c]
jmp 0x14000b0a4
lea r14, [0x140080c92]
jmp 0x14000b0a4
lea r14, [0x140080ca1]
jmp 0x14000b0a4
lea r14, [0x140080cb3]
jmp 0x14000b0a4
lea r14, [0x140080cbf]
jmp 0x14000b0a4
lea r14, [0x140080cc2]
jmp 0x14000b0a4
lea r14, [0x140080ccb]
jmp 0x14000b0a4
lea r14, [0x140080cce]
jmp 0x14000b0a4
lea r14, [0x140080cdd]
jmp 0x14000b0a4
lea r14, [0x140080ce3]
jmp 0x14000b0a4
lea r14, [0x140080ce6]
jmp 0x14000b0a4
lea r14, [0x140080ce9]
jmp 0x14000b0a4
lea r14, [0x140080cec]
jmp 0x14000b0a4
lea r14, [0x140080cef]
jmp 0x14000b0a4
test edx, edx
jne 0x14000af0f
and eax, 0x3ff
mov edx, 1
mov dword [rsp + 0x68], eax
jmp 0x14000a71c
dec edx
jne 0x14000af3b
call qword [sym.imp.KERNEL32.DLL_GetSystemDefaultLangID]
lea rcx, str.Unable_to_match_KBID__trying_LangID_0x_04x_n
mov edx, eax
and edx, 0x3ff
mov dword [rsp + 0x68], edx
call fcn.140036717
mov edx, 2
jmp 0x14000a71c
lea rcx, str.Unable_to_match_KBID_and_LangID___defaulting_to_US_n
call fcn.140036717
lea r14, [0x140080c62]
jmp 0x14000b0a4
lea r14, [0x140080c4a]
jmp 0x14000b0a4
lea r14, [0x140080c4a]
jmp 0x14000b0a4
lea r14, [0x140080c5c]
jmp 0x14000b0a4
lea r14, [0x140080c4d]
jmp 0x14000b0a4
lea r14, [0x140080c4a]
jmp 0x14000b0a4
lea r14, [0x140080cd4]
jmp 0x14000b0a4
lea r14, [0x140080c68]
jmp 0x14000b0a4
lea r14, [0x140080c68]
jmp 0x14000b0a4
lea r14, [0x140080ce9]
jmp 0x14000b0a4
lea r14, [0x140080c50]
jmp 0x14000b0a4
lea r14, [0x140080cb6]
jmp 0x14000b0a4
lea r14, [0x140080cad]
jmp 0x14000b0a4
lea r14, [0x140080c50]
jmp 0x14000b0a4
lea r14, [0x140080c83]
jmp 0x14000b0a4
lea r14, [0x140080cad]
jmp 0x14000b0a4
lea r14, [0x140080c50]
jmp 0x14000b0a4
lea r14, [0x140080c65]
jmp 0x14000b0a4
lea r14, [0x140080cc8]
jmp 0x14000b0a4
lea r14, [0x140080c7a]
jmp 0x14000b0a4
lea r14, [0x140080c80]
jmp 0x14000b0a4
lea r14, [0x140080c68]
jmp 0x14000b0a4
lea r14, [0x140080c65]
jmp 0x14000b0a4
lea r14, [0x140080ca4]
jmp 0x14000b0a4
lea r14, [0x140080cbc]
jmp 0x14000b0a4
lea r14, [0x140080c4d]
jmp 0x14000b0a4
lea r14, [0x140080c6e]
jmp 0x14000b0a4
lea r14, [0x140080c4d]
jmp 0x14000b0a4
lea r14, [0x140080c5f]
jmp 0x14000b0a4
lea r14, [0x140080cda]
jmp 0x14000b0a4
lea r14, [0x140080c71]
jmp 0x14000b0a4
lea r14, [0x140080c5f]
jmp 0x14000b0a4
lea r14, [0x140080c5f]
mov rcx, r14
test r13d, r13d
je 0x14000b0b3
call fcn.14000a500
jmp 0x14000b0b8
call fcn.14000a570
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jns 0x14000b116
lea rcx, str.Keyboard_id__s_is_not_supported___falling_back_to_us_n
mov rdx, r14
call fcn.140036717
test r13d, r13d
lea rcx, [0x140080c62]
je 0x14000b0e5
call fcn.14000a500
jmp 0x14000b0ea
call fcn.14000a570
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
lea r14, [0x140080c62]
jns 0x14000b116
mov r8d, 0x3d9
lea rdx, str.dos_locale.c
lea rcx, str.kbdrv___0
call qword [sym.imp.msvcrt.dll__wassert]
mov rcx, r14
call fcn.14000a629
mov rdx, r14
lea rcx, str.Will_use_DOS_keyboard__s___s__n
mov r8, rax
call fcn.140036717
call qword [sym.imp.KERNEL32.DLL_GetOEMCP]
mov ebx, eax
cmp eax, 0xfde9
jne 0x14000b168
call qword [sym.imp.KERNEL32.DLL_GetUserDefaultUILanguage]
mov r9d, 4
mov r8, rsi
mov edx, 0x2000000b
movzx ecx, ax
call qword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
test eax, eax
je case.0x14000b381.30035
mov ebx, dword [rsp + 0x68]
test r13d, r13d
je 0x14000b415
cmp ebx, 0xbcd
je case.0x14000b381.30022
ja 0x14000b2b0
cmp ebx, 0x383
ja 0x14000b264
cmp ebx, 0x34f
ja 0x14000b1de
cmp ebx, 0x316
ja 0x14000b252
cmp ebx, 0x301
ja 0x14000b215
cmp ebx, 0x29c
ja 0x14000b240
cmp ebx, 0x29a
ja case.0x14000b232.790
cmp ebx, 0x71
je case.0x14000b1fb.851
lea rbp, str.ega.cpx
cmp ebx, 0x1b5
jmp 0x14000b401
lea eax, [rbx - 0x350]
cmp eax, 0x33
ja case.0x14000b381.30035
lea rdx, [0x140081618]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
lea rbp, str.ega9.cpx
jmp 0x14000b535
lea rbp, str.ega.cpx
jmp 0x14000b535
lea eax, [rbx - 0x302]
cmp eax, 0x14
ja case.0x14000b381.30035
lea rdx, [0x1400816e8]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
lea rbp, str.ega8.cpx
jmp 0x14000b535
lea rbp, str.ega5.cpx
cmp ebx, 0x2e1
jmp 0x14000b401
lea rbp, str.ega3.cpx
cmp ebx, 0x328
jmp 0x14000b401
cmp ebx, 0x465
je case.0x14000b1fb.848
ja 0x14000b292
cmp ebx, 0x3df
je case.0x14000b232.790
lea eax, [rbx - 0x45c]
cmp eax, 3
jbe case.0x14000b1fb.859
jmp case.0x14000b381.30035
lea rbp, str.ega4.cpx
cmp ebx, 0x46b
je 0x14000b535
cmp ebx, 0xbc4
jmp 0x14000b401
cmp ebx, 0x7543
ja 0x14000b35c
cmp ebx, 0x7539
jbe 0x14000b300
lea ecx, [rbx - 0x753a]
mov eax, 1
lea rbp, str.ega7.cpx
shl rax, cl
test eax, 0x39a
jne 0x14000b535
test al, 0x64
lea r11, str.ega4.cpx
lea rax, str.ega14.cpx
cmove rax, r11
mov rbp, rax
jmp 0x14000b535
cmp ebx, 0x752f
jbe 0x14000b33b
lea eax, [rbx - 0x7532]
cmp eax, 6
ja case.0x14000b321.30004
lea rdx, [0x14008173c]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
lea rbp, str.ega11.cpx
jmp 0x14000b535
lea rbp, str.ega12
jmp 0x14000b535
lea eax, [rbx - 0xf06]
and eax, 0xfffffffd
je case.0x14000b1fb.856
lea rbp, str.ega10.cpx
cmp ebx, 0xf05
jmp 0x14000b401
cmp ebx, 0x7558
ja 0x14000b38f
lea eax, [rbx - 0x7544]
cmp eax, 0x14
ja case.0x14000b381.30035
lea rdx, [0x140081758]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
lea rbp, str.ega15.cpx
jmp 0x14000b535
cmp ebx, 0xe762
je case.0x14000b321.30002
ja 0x14000b3cb
cmp ebx, 0xe362
je case.0x14000b321.30008
lea rbp, str.ega12
cmp ebx, 0xe3df
je 0x14000b535
lea rbp, str.ega13.cpx
cmp ebx, 0xe328
jmp 0x14000b401
cmp ebx, 0xedb5
je case.0x14000b321.30008
ja 0x14000b3f4
lea rbp, str.ega6.cpx
cmp ebx, 0xe9b5
je 0x14000b535
cmp ebx, 0xeb62
jmp 0x14000b401
lea rbp, str.ega13.cpx
cmp ebx, 0xf362
je 0x14000b535
jmp case.0x14000b381.30035
lea rbp, str.ega17.cpx
jmp 0x14000b535
cmp ebx, 0x365
ja case.0x14000b381.30035
cmp ebx, 0x351
ja 0x14000b44a
cmp ebx, 0x2e1
je 0x14000b525
cmp ebx, 0x307
je 0x14000b52e
cmp ebx, 0x1b5
jne case.0x14000b381.30035
jmp 0x14000b51c
lea ecx, [rbx - 0x352]
mov eax, 1
shl rax, cl
test eax, 0xa405
jne 0x14000b51c
test eax, 0x80880
jne 0x14000b525
test eax, 0x10020
jne 0x14000b52e
mov ecx, ebx
call fcn.14000a5e0
mov edx, ebx
lea rcx, str.Unable_to_find_an_EGA_file_with_codepage__d___s__n
mov r8, rax
call fcn.140036717
movsxd rax, dword [rsp + 0x58]
lea rdx, str.keyboard.sys
lea r11, str.ega.cpi
shl rax, 4
test r13d, r13d
mov ebx, dword [rdx + rax + 8]
lea rax, str.ega.cpx
cmove rax, r11
mov rbp, rax
jmp 0x14000b548
lea rbp, str.ega3.cpx
jmp 0x14000b535
lea rbp, str.ega16.cpx
jmp 0x14000b535
lea rbp, str.ega5.cpx
jmp 0x14000b535
lea rbp, str.ega14.cpx
jmp 0x14000b535
lea rbp, str.ega2.cpx
jmp 0x14000b535
lea rbp, str.ega4.cpx
jmp 0x14000b535
lea rbp, str.ega10.cpx
jmp 0x14000b535
lea rbp, str.ega18.cpx
jmp 0x14000b535
lea rbp, str.ega13.cpx
jmp 0x14000b535
lea rbp, str.ega6.cpx
jmp 0x14000b535
lea rbp, str.ega.cpi
jmp 0x14000b535
lea rbp, str.ega2.cpi
jmp 0x14000b535
lea rbp, str.ega3.cpi
test r13d, r13d
je 0x14000b548
cmp ebx, 0x352
mov eax, 0x35a
cmove ebx, eax
mov ecx, ebx
call fcn.14000a5e0
mov edx, ebx
lea rcx, str.Will_use_codepage__d___s__n
mov r8, rax
call fcn.140036717
cmp ebx, 0x1b5
jne 0x14000b679
lea r15, [0x140080c62]
mov rcx, r14
mov rdx, r15
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14000b679
mov ecx, 1
test r12, r12
je 0x14000b5a8
mov rcx, r12
call sub.msvcrt.dll_strlen
lea rcx, [rax + 1]
mov eax, 0x104
cmp rcx, rax
cmova rcx, rax
mov rdi, qword [rsp + 0x48]
mov ecx, ecx
mov rsi, r12
mov ebx, 0x103
rep movsb byte [rdi], byte [rsi]
mov rcx, r12
call sub.msvcrt.dll_strlen
mov rcx, qword [rsp + 0x48]
lea rdx, [rax + 1]
cmp rdx, 0x104
cmovae rax, rbx
mov byte [rsp + rax + 0x6c], 0
call sub.msvcrt.dll_strlen
mov r8d, 0xe
mov rcx, qword [rsp + 0x48]
lea rdx, str.AUTOEXEC.BAT
sub rbx, rax
cmp rbx, r8
cmovbe r8, rbx
call sub.msvcrt.dll_strncat
mov rcx, qword [rsp + 0x48]
lea rdx, [0x140080f86]
call sub.msvcrt.dll_fopen
mov rbx, rax
test rax, rax
je 0x14000b8bd
mov rdx, rax
lea rcx, str._echo_off_n
call sub.msvcrt.dll_fputs
mov rdx, rbx
lea rcx, str.set_PATH.__LOCALE_n
call sub.msvcrt.dll_fputs
mov ecx, 0x1b5
call fcn.14000a5e0
mov rcx, r15
mov qword [rsp + 0x48], rax
call fcn.14000a629
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 sub.msvcrt.dll_fprintf
mov rcx, rbx
jmp 0x14000b980
mov ecx, 1
test r12, r12
je 0x14000b69b
mov rcx, r12
call sub.msvcrt.dll_strlen
lea rcx, [rax + 1]
mov eax, 0x104
cmp rcx, rax
cmova rcx, rax
mov rdi, qword [rsp + 0x48]
mov ecx, ecx
mov rsi, r12
mov r15d, 0x103
rep movsb byte [rdi], byte [rsi]
mov rcx, r12
call sub.msvcrt.dll_strlen
mov rcx, qword [rsp + 0x48]
lea rdx, [rax + 1]
cmp rdx, 0x104
cmovae rax, r15
mov byte [rsp + rax + 0x6c], 0
call sub.msvcrt.dll_strlen
mov r8d, 0xc
mov rcx, qword [rsp + 0x48]
lea rdx, str.CONFIG.SYS
sub r15, rax
cmp r15, r8
cmovbe r8, r15
call sub.msvcrt.dll_strncat
mov rcx, qword [rsp + 0x48]
lea rdx, [0x140080f86]
call sub.msvcrt.dll_fopen
mov r15, rax
test rax, rax
jne 0x14000b728
call fcn.140036bd7
lea rcx, str.Unable_to_create_CONFIG.SYS:__s._n
mov rdx, rax
call fcn.140036717
xor eax, eax
jmp 0x14000b996
mov rdx, rax
lea rcx, str._MENU__n
test r13d, r13d
je 0x14000b74d
lea rcx, str._MENUCOLOR7_0_nMENU_nMENU___FreeDOS_Language_Selection_Menu_n
call sub.msvcrt.dll_fputs
mov rdx, r15
lea rcx, str.MENU
call sub.msvcrt.dll_fputs
mov rdx, r15
lea rcx, str.MENUDEFAULT1_5_n
call sub.msvcrt.dll_fputs
mov ecx, ebx
call fcn.14000a5e0
mov rcx, r14
mov rsi, rax
call fcn.14000a629
cmp r13d, 1
mov dword [rsp + 0x30], ebx
mov rcx, r15
sbb r9d, r9d
mov qword [rsp + 0x28], rsi
lea rdx, [0x140080db2]
lea r8, str.MENUITEM
and r9d, 3
mov qword [rsp + 0x20], rax
add r9d, 0x29
test r13d, r13d
cmovne r8, rdx
lea rdx, str._s1_c_Use__s_keyboard_with__s_codepage___d__n
mov dword [rsp + 0x5c], r9d
mov qword [rsp + 0x50], r8
call sub.msvcrt.dll_fprintf
mov ecx, 0x1b5
call fcn.14000a5e0
lea rcx, [0x140080c62]
mov rsi, rax
call fcn.14000a629
mov qword [rsp + 0x28], rsi
mov rcx, r15
mov rsi, r12
mov r9d, dword [rsp + 0x5c]
mov r8, qword [rsp + 0x50]
mov dword [rsp + 0x30], 0x1b5
lea rdx, str._s2_c_Use__s_keyboard_with__s_codepage___d__n
mov qword [rsp + 0x20], rax
call sub.msvcrt.dll_fprintf
test r13d, r13d
lea rax, str.MENU_n12__n
mov rdx, r15
lea rcx, str._1__ndevicelocaledisplay.sys_con_ega__1__n_2__n
cmovne rcx, rax
call sub.msvcrt.dll_fputs
mov rcx, r15
call sub.msvcrt.dll_fclose
lea rcx, str.Successfully_wrote_CONFIG.SYS_n
call fcn.140036717
mov rcx, r12
call sub.msvcrt.dll_strlen
mov rdi, qword [rsp + 0x48]
lea rcx, [rax + 1]
mov eax, 0x104
cmp rcx, rax
cmova rcx, rax
mov ecx, ecx
rep movsb byte [rdi], byte [rsi]
mov rcx, r12
mov r12d, 0x103
call sub.msvcrt.dll_strlen
mov rcx, qword [rsp + 0x48]
lea rdx, [rax + 1]
cmp rdx, 0x104
cmovae rax, r12
mov byte [rsp + rax + 0x6c], 0
call sub.msvcrt.dll_strlen
mov r8d, 0xe
mov rcx, qword [rsp + 0x48]
lea rdx, str.AUTOEXEC.BAT
sub r12, rax
cmp r12, r8
cmovbe r8, r12
call sub.msvcrt.dll_strncat
mov rcx, qword [rsp + 0x48]
lea rdx, [0x140080f86]
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
jne 0x14000b8d1
call fcn.140036bd7
lea rcx, str.Unable_to_create_AUTOEXEC.BAT:__s._n
mov rdx, rax
jmp 0x14000b71c
mov rdx, rax
lea rcx, str._echo_off_n
call sub.msvcrt.dll_fputs
mov rdx, r12
lea rcx, str.set_PATH.__LOCALE_n
call sub.msvcrt.dll_fputs
test r13d, r13d
je 0x14000b903
mov rdx, r12
lea rcx, str.display_con_ega__1__n
call sub.msvcrt.dll_fputs
lea rdx, str.GOTO___CONFIG___n
mov rcx, r12
call sub.msvcrt.dll_fprintf
mov rdx, r12
lea rcx, [0x140081175]
call sub.msvcrt.dll_fputs
mov r9, rbp
mov r8d, ebx
mov rcx, r12
lea rdx, str.mode_con_codepage_prepare___d__locale_s____NUL_n
call sub.msvcrt.dll_fprintf
mov r8d, ebx
lea rdx, str.mode_con_codepage_select_d___NUL_n
mov rcx, r12
call sub.msvcrt.dll_fprintf
movsxd rbp, dword [rsp + 0x58]
mov r8, r14
mov rcx, r12
lea rax, str.keyboard.sys
lea rdx, str.keyb__s__locale_s_n
shl rbp, 4
mov r9, qword [rax + rbp]
call sub.msvcrt.dll_fprintf
lea rcx, [0x1400811e4]
mov rdx, r12
call sub.msvcrt.dll_fputs
mov rcx, r12
call sub.msvcrt.dll_fclose
lea rcx, str.Successfully_wrote_AUTOEXEC.BAT_n
call fcn.140036717
mov eax, 1
add rsp, 0x178
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret