Function at 0x14006e830
Capabilities:
Terminate process

Disassembly:
push rbp
push rbx
push rdi
push r15
lea rbp, [rsp - 0x48]
sub rsp, 0x148
mov rax, qword [0x140097040]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, qword [rcx + 8]
lea rdx, str.real_hardware
xor r15d, r15d
mov rdi, rcx
xorps xmm0, xmm0
mov qword [rsp + 0x50], r15
movups xmmword [rsp + 0x40], xmm0
mov rax, qword [rbx]
mov qword [rcx + 0x308], rax
lea r8d, [r15 + 0xd]
mov byte [rcx + 0x10], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x58], r15
call fcn.140004e00
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x50]
call fcn.140011e50
mov rcx, rax
call fcn.1400120d0
mov rdx, qword [rbp - 0x30]
test eax, eax
setne al
mov byte [rdi + 0x186], al
cmp rdx, 0xf
jbe 0x14006e8f1
mov rcx, qword [rbp - 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006e8ec
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006e8ec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b5a0
mov rbx, qword [rdi + 8]
lea rdx, str.Keyboard_KI
xorps xmm0, xmm0
mov qword [rsp + 0x180], r12
mov r8d, 0xb
mov qword [rsp + 0x188], r13
lea rcx, [rsp + 0x40]
mov byte [rdi + 0x300], r15b
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
call fcn.140004e00
mov qword [rsp + 0x38], rbx
lea rax, [rdi + 0x17c]
lea r12, [fcn.14000c450]
mov edx, 0xf040
mov qword [rsp + 0x30], r12
lea r13, [0x14006e6e0]
mov qword [rsp + 0x28], r13
lea rcx, [rdi + 0xc8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, 1
call fcn.140011b30
mov rbx, qword [rdi + 8]
lea rcx, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
movups xmmword [rsp + 0x40], xmm0
cmp dword [rbx + 0x114], 0x159
jne 0x14006e9db
mov r8d, 0xb
lea rdx, str.Keyboard_KO
call fcn.140004e00
lea rax, [0x14006f670]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
mov edx, 0xf044
lea rax, [0x14006f660]
mov r8d, 1
jmp 0x14006eae3
mov r8d, 0x14
lea rdx, str.Keyboard_InputFilter
call fcn.140004e00
mov qword [rsp + 0x38], rbx
lea rdx, [0x14006e700]
mov qword [rsp + 0x30], rdx
lea rax, [rdi + 0x17d]
mov qword [rsp + 0x28], r13
lea rcx, [rdi + 0x120]
mov edx, 0xf042
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8d, 1
call fcn.140011b30
mov rbx, qword [rdi + 8]
lea rdx, str.Keyboard_KOMask
xorps xmm0, xmm0
mov qword [rsp + 0x50], r15
mov r8d, 0xf
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
call fcn.140004e00
mov qword [rsp + 0x38], rbx
lea rax, [0x14006f6b0]
mov qword [rsp + 0x30], rax
lea rcx, [rdi + 0x18]
lea rax, [0x14006f690]
mov edx, 0xf044
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
mov r8d, 2
mov qword [rsp + 0x20], rdi
call fcn.140011b30
mov rbx, qword [rdi + 8]
lea rdx, str.Keyboard_KO
xorps xmm0, xmm0
mov qword [rsp + 0x50], r15
mov r8d, 0xb
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
call fcn.140004e00
lea rax, [0x14006f720]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
mov edx, 0xf046
lea rax, [0x14006f700]
mov r8d, 2
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rcx, [rdi + 0x70]
mov qword [rsp + 0x20], rdi
call fcn.140011b30
lea rax, vtable.std::_Func_impl_no_alloc_class__public_virtual:_void___cdecl_casioemu::Keyboard::Initialise_void____ptr64::_2::_lambda_7___void__int__int_.0
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rax
lea rdx, [rbp - 0x10]
lea rax, [rsp + 0x70]
mov qword [rbp + 0x28], r15
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x58], rax
call fcn.140071590
mov rcx, qword [rbp - 0x58]
mov r8, rax
mov qword [rbp + 0x28], rax
test rcx, rcx
je 0x14006eb53
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov r8, qword [rbp + 0x28]
mov rcx, r15
mov qword [rbp - 0x58], rcx
mov r9, qword [0x14009ceb8]
lea rbx, [0x14009ce80]
test r9, r9
je 0x14006ebb6
mov rcx, r9
cmp r9, rbx
jne 0x14006ebab
mov rax, qword [r9]
lea rdx, [rsp + 0x70]
call qword [rax + 8]
mov r8, qword [0x14009ceb8]
mov rcx, rax
mov qword [rbp - 0x58], rax
test r8, r8
je 0x14006eba5
mov rax, qword [r8]
cmp r8, rbx
mov rcx, r8
setne dl
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x58]
mov r8, qword [rbp + 0x28]
jmp 0x14006ebaf
mov r8, qword [rbp + 0x28]
jmp 0x14006ebb6
mov qword [rbp - 0x58], rcx
mov qword [0x14009ceb8], r15
test r8, r8
je 0x14006ebfd
lea rax, [rbp - 0x10]
cmp r8, rax
jne 0x14006ebf6
mov rax, qword [r8]
mov rdx, rbx
mov rcx, r8
call qword [rax + 8]
mov rcx, qword [rbp + 0x28]
mov qword [0x14009ceb8], rax
test rcx, rcx
je 0x14006ebf0
mov rax, qword [rcx]
lea rdx, [rbp - 0x10]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x58]
jmp 0x14006ebfd
mov qword [0x14009ceb8], r8
test rcx, rcx
je 0x14006ec13
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x178], rsi
mov qword [rsp + 0x140], r14
cmp byte [rdi + 0x186], r15b
jne 0x14006ee7f
mov rbx, qword [rdi + 8]
lea rdx, str.pd_value
xorps xmm0, xmm0
mov qword [rsp + 0x50], r15
mov r8d, 8
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
call fcn.140004e00
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x50]
call fcn.140011e50
mov rcx, rax
lea r14, [rdi + 0x2eb]
call fcn.1400120d0
mov rdx, qword [rbp - 0x30]
mov byte [r14], al
cmp rdx, 0xf
jbe 0x14006ecbe
mov rcx, qword [rbp - 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006ecb9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006ecb9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b5a0
mov rbx, qword [rdi + 8]
mov byte [rdi + 0x2e8], 1
mov qword [rdi + 0x2ec], r15
mov eax, dword [rbx + 0x114]
cmp eax, 3
jne 0x14006ece0
mov esi, r15d
jmp 0x14006ecf0
cmp eax, 4
mov esi, 0x80000
mov ecx, 0x40000
cmove esi, ecx
xorps xmm0, xmm0
mov qword [rsp + 0x50], r15
mov r8d, 0x1c
mov qword [rsp + 0x58], r15
lea rdx, str.Keyboard_ReadyStatusEmulator
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
call fcn.140004e00
mov qword [rsp + 0x38], rbx
lea rax, [0x14006fa40]
mov qword [rsp + 0x30], rax
lea edx, [rsi + 0x8e00]
lea rax, [0x14006fa30]
mov r8d, 1
mov qword [rsp + 0x28], rax
lea rcx, [rdi + 0x188]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
call fcn.140011b30
mov rbx, qword [rdi + 8]
lea rdx, str.Keyboard_KIEmulator
xorps xmm0, xmm0
mov qword [rsp + 0x50], r15
mov r8d, 0x13
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
call fcn.140004e00
mov qword [rsp + 0x38], rbx
lea rax, [0x14006fab0]
mov qword [rsp + 0x30], r12
lea edx, [rsi + 0x8e01]
mov qword [rsp + 0x28], rax
lea rcx, [rdi + 0x238]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, 1
call fcn.140011b30
mov rbx, qword [rdi + 8]
lea rdx, str.Keyboard_KOEmulator
xorps xmm0, xmm0
mov qword [rsp + 0x50], r15
mov r8d, 0x13
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
call fcn.140004e00
mov qword [rsp + 0x38], rbx
lea rax, [0x14006fae0]
mov qword [rsp + 0x30], r12
lea edx, [rsi + 0x8e02]
mov qword [rsp + 0x28], rax
lea rcx, [rdi + 0x1e0]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, 1
call fcn.140011b30
mov rbx, qword [rdi + 8]
lea rdx, str.Keyboard_PdValue
xorps xmm0, xmm0
mov qword [rsp + 0x50], r15
mov r8d, 0x10
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
call fcn.140004e00
mov qword [rsp + 0x38], rbx
lea rcx, [rdi + 0x290]
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], r13
mov edx, 0xf050
mov r8d, 1
mov qword [rsp + 0x20], r14
call fcn.140011b30
mov rcx, qword [rdi + 8]
mov edx, 8
mov word [rdi + 0x974], r15w
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_newuserdata]
xor r8d, r8d
xor edx, edx
mov qword [rax], rdi
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_createtable]
mov rcx, qword [rdi + 8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_createtable]
mov rcx, qword [rdi + 8]
lea rdx, [0x14006fb10]
xor r8d, r8d
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_pushcclosure]
mov rcx, qword [rdi + 8]
lea r8, str.PressKey
mov edx, 0xfffffffe
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_setfield]
mov rcx, qword [rdi + 8]
lea rdx, [0x14006fbe0]
xor r8d, r8d
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_pushcclosure]
mov rcx, qword [rdi + 8]
lea r8, str.ReleaseAll
mov edx, 0xfffffffe
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_setfield]
mov rcx, qword [rdi + 8]
lea rdx, [0x14006fc80]
xor r8d, r8d
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_pushcclosure]
mov rcx, qword [rdi + 8]
lea r8, str.KeyInject
mov edx, 0xfffffffe
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_setfield]
mov rcx, qword [rdi + 8]
lea rdx, [0x14006fe00]
xor r8d, r8d
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_pushcclosure]
mov rcx, qword [rdi + 8]
lea r8, str.StartKeyLog
mov edx, 0xfffffffe
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_setfield]
mov rcx, qword [rdi + 8]
lea rdx, [0x14006fe90]
xor r8d, r8d
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_pushcclosure]
mov rcx, qword [rdi + 8]
lea r8, str.StopKeyLog
mov edx, 0xfffffffe
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_setfield]
mov rcx, qword [rdi + 8]
lea r8, str.__index
mov edx, 0xfffffffe
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_setfield]
mov rcx, qword [rdi + 8]
lea rdx, [fcn.1400111d0]
xor r8d, r8d
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_pushcclosure]
mov rcx, qword [rdi + 8]
lea r8, str.__newindex
mov edx, 0xfffffffe
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_setfield]
mov rcx, qword [rdi + 8]
mov edx, 0xfffffffe
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_setmetatable]
mov rcx, qword [rdi + 8]
lea rdx, str.Keyboard
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_setglobal]
lea rax, [rdi + 0x310]
lea rcx, [rax + 0x600]
cmp rax, rcx
je 0x14006f08c
nop word [rax + rax]
mov dword [rax], r15d
add rax, 0x18
cmp rax, rcx
jne 0x14006f080
mov rcx, qword [rdi + 8]
mov edx, 0xfff0b9d8
movsxd r8, dword [rcx + 0x108]
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_geti]
mov rcx, qword [rdi + 8]
lea r8, str.button_map
mov edx, 0xffffffff
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_getfield]
cmp eax, 5
je 0x14006f12b
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0xe9
lea r8, str.C:Users15874_source_reposCasioEmuXCasioEmuMsvcPeripheralKeyboard.cpp
mov rcx, rax
lea rdx, str._s:_i:_in__s:
lea rax, str.Initialise
mov qword [rsp + 0x20], rax
call fcn.140006bd0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, str.button_map
lea rdx, str.key__s_is_not_a_table_n
call fcn.140006bd0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rdi + 8]
mov edx, 0xffffffff
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_len]
mov rcx, qword [rdi + 8]
xor r8d, r8d
mov rcx, qword [rcx + 0x100]
lea edx, [r8 - 1]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov rcx, qword [rdi + 8]
mov edx, 0xfffffffe
mov r12, rax
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_settop]
mov r13, r15
test r12, r12
je 0x14006f604
nop
mov rcx, qword [rdi + 8]
inc r13
mov r8, r13
mov edx, 0xffffffff
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_geti]
cmp eax, 5
jne 0x14006f5a1
mov rcx, qword [rdi + 8]
lea edx, [rax - 6]
lea r8d, [rax + 1]
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_geti]
cmp eax, 4
jne 0x14006f53e
mov rcx, qword [rdi + 8]
lea r8, [rbp - 0x28]
lea edx, [rax - 5]
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_tolstring]
mov rsi, rax
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x14006f1f0
mov rax, qword [rbp - 0x28]
cmp rcx, rax
jne 0x14006f4de
test rax, rax
jne 0x14006f214
mov r14d, r15d
mov dword [rbp - 0x20], r15d
jmp 0x14006f22b
mov rcx, rsi
call qword [sym.imp.SDL2.dll_SDL_GetKeyFromName]
mov dword [rbp - 0x20], eax
mov r14d, eax
test eax, eax
je 0x14006f482
mov rcx, qword [rdi + 8]
mov edx, 0xfffffffe
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_settop]
mov edx, r15d
mov rcx, qword [rdi + 8]
lea ebx, [rdx + 1]
movsxd r8, ebx
not edx
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_geti]
cmp eax, 3
jne 0x14006f41b
mov edx, ebx
cmp ebx, 5
jne 0x14006f244
mov rcx, qword [rdi + 8]
lea edx, [rax - 4]
xor r8d, r8d
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov r15, rax
cmp al, 0xff
jne 0x14006f290
lea ecx, [rbx + 0x3a]
jmp 0x14006f2a2
movzx eax, r15b
mov ecx, eax
and eax, 7
shr rcx, 1
and ecx, 0x38
or rcx, rax
mov qword [rsp + 0x60], rcx
test r14d, r14d
je 0x14006f2d5
lea rcx, [rdi + 0x910]
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x20]
lea rdx, [rsp + 0x40]
call fcn.140071240
cmp byte [rax + 8], 0
je 0x14006f3bf
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rcx*2]
lea rbx, [rdi + rax*8]
xor eax, eax
cmp r15b, 0xff
sete al
xor r8d, r8d
inc eax
mov dword [rbx + 0x310], eax
mov rcx, qword [rdi + 8]
lea edx, [r8 - 5]
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov dword [rbx + 0x314], eax
xor r8d, r8d
mov rcx, qword [rdi + 8]
lea edx, [r8 - 4]
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov dword [rbx + 0x318], eax
xor r8d, r8d
mov rcx, qword [rdi + 8]
lea edx, [r8 - 3]
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov dword [rbx + 0x31c], eax
xor r8d, r8d
mov rcx, qword [rdi + 8]
lea edx, [r8 - 2]
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov dword [rbx + 0x320], eax
mov eax, 1
movzx edx, r15b
mov ecx, edx
and edx, 0xf
shr ecx, 4
shl al, cl
movzx ecx, dl
mov byte [rbx + 0x324], al
mov edx, 0xfffffff9
mov eax, 1
shl al, cl
mov byte [rbx + 0x325], al
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_settop]
mov word [rbx + 0x326], 0
cmp r13, r12
je 0x14006f604
xor r15d, r15d
jmp 0x14006f180
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x117
lea r8, str.C:Users15874_source_reposCasioEmuXCasioEmuMsvcPeripheralKeyboard.cpp
mov rcx, rax
lea rdx, str._s:_i:_in__s:
lea rax, str.Initialise
mov qword [rsp + 0x20], rax
call fcn.140006bd0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rsi
lea rdx, str.Key__s_is_used_twice_n
mov rcx, rax
call fcn.140006bd0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x107
lea r8, str.C:Users15874_source_reposCasioEmuXCasioEmuMsvcPeripheralKeyboard.cpp
mov rcx, rax
lea rdx, str._s:_i:_in__s:
lea rax, str.Initialise
mov qword [rsp + 0x20], rax
call fcn.140006bd0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, r13
mov dword [rsp + 0x20], ebx
mov rcx, rax
lea r8, str.button_map
lea rdx, str.key__s__zu___i__is_not_a_number_n
call fcn.140006bd0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x101
lea r8, str.C:Users15874_source_reposCasioEmuXCasioEmuMsvcPeripheralKeyboard.cpp
mov rcx, rax
lea rdx, str._s:_i:_in__s:
lea rax, str.Initialise
mov qword [rsp + 0x20], rax
call fcn.140006bd0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rsi
lea rdx, str.Key_name__s_is_invalid_n
mov rcx, rax
call fcn.140006bd0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0xf8
lea r8, str.C:Users15874_source_reposCasioEmuXCasioEmuMsvcPeripheralKeyboard.cpp
mov rcx, rax
lea rdx, str._s:_i:_in__s:
lea rax, str.Initialise
mov qword [rsp + 0x20], rax
call fcn.140006bd0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [rbp - 0x28]
lea rdx, str.Key_name__.s_contains_null_byte_n
mov rcx, rax
mov r9, rsi
call fcn.140006bd0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0xf3
lea r8, str.C:Users15874_source_reposCasioEmuXCasioEmuMsvcPeripheralKeyboard.cpp
mov rcx, rax
lea rdx, str._s:_i:_in__s:
lea rax, str.Initialise
mov qword [rsp + 0x20], rax
call fcn.140006bd0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, r13
lea r8, str.button_map
mov rcx, rax
lea rdx, str.key__s__zu__6__is_not_a_string_n
call fcn.140006bd0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0xf0
lea r8, str.C:Users15874_source_reposCasioEmuXCasioEmuMsvcPeripheralKeyboard.cpp
mov rcx, rax
lea rdx, str._s:_i:_in__s:
lea rax, str.Initialise
mov qword [rsp + 0x20], rax
call fcn.140006bd0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, r13
lea r8, str.button_map
mov rcx, rax
lea rdx, str.key__s__zu__is_not_a_table_n
call fcn.140006bd0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rdi + 8]
mov edx, 0xfffffffd
mov rcx, qword [rcx + 0x100]
call qword [sym.imp.lua.dll_lua_settop]
mov rsi, qword [rsp + 0x178]
mov r14, qword [rsp + 0x140]
mov r12, qword [rsp + 0x180]
mov r13, qword [rsp + 0x188]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14007af90
add rsp, 0x148
pop r15
pop rdi
pop rbx
pop rbp
ret