Function at 0x140001900
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r13, rdx
cmp ecx, 3
jge 0x140001988
lea rdx, str.Usage:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004380
mov rdx, qword [r13]
mov rcx, rax
call fcn.140004380
mov rcx, rax
lea rdx, str.__model.lua_path___config.bin_path_
call fcn.140004380
lea rdx, [0x140004550]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x1400029ad
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
xor ebx, ebx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
lea ecx, [rbx + 0x60]
call fcn.140005530
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 0x18], rax
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
xorps xmm1, xmm1
movups xmmword [rbp + 8], xmm1
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x20], 0xf
mov byte [rbp + 8], bl
movups xmmword [rbp + 0x28], xmm0
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x40], 0xf
mov byte [rbp + 0x28], bl
movups xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], rbx
mov qword [rbp + 0x60], 0xf
mov byte [rbp + 0x48], bl
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x80], 0xf
mov byte [rbp + 0x68], bl
mov dword [rbp + 0x88], ebx
mov word [rbp + 0x8c], bx
call qword [sym.imp.lua.dll_luaL_newstate]
mov qword [0x14000b940], rax
mov rcx, rax
call qword [sym.imp.lua.dll_luaL_openlibs]
xor edx, edx
lea r8d, [rbx + 1]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_newuserdatauv]
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_createtable]
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_createtable]
mov qword [0x14000b948], 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x1400029e0]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_pushcclosure]
lea r8, str.model
lea edx, [rbx - 2]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_setfield]
lea r8, str.__index
lea edx, [rbx - 2]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_setfield]
xor r8d, r8d
lea rdx, [fcn.140002b10]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_pushcclosure]
lea r8, str.__newindex
lea edx, [rbx - 2]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_setfield]
lea edx, [rbx - 2]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_setmetatable]
lea rdx, [0x140007734]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_setglobal]
xor r8d, r8d
mov rdx, qword [r13 + 8]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_luaL_loadfilex]
test eax, eax
je 0x140001b96
lea ecx, [rbx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rax, str.main
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 0x3d]
lea r8, str.C:Users15874_source_reposCasioEmuXlua_config_convertlua_config_convert.cpp
lea rdx, str._s:_i:_in__s:
call fcn.140001020
xor r8d, r8d
lea edx, [rbx - 1]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tolstring]
mov rbx, rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.LoadModelDefition_failed:__s_n
mov rcx, rax
call fcn.140001020
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_pcallk]
test eax, eax
je 0x140001c2c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rax, str.main
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, str.C:Users15874_source_reposCasioEmuXlua_config_convertlua_config_convert.cpp
lea rdx, str._s:_i:_in__s:
call fcn.140001020
xor r8d, r8d
lea edx, [r8 - 1]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tolstring]
mov rbx, rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.LoadModelDefition_failed:__s_n
mov rcx, rax
call fcn.140001020
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8, qword [0x14000b948]
cmp r8, 0xffffffffffffffff
jne 0x140001c91
lea ecx, [r8 + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rax, str.main
mov qword [rsp + 0x20], rax
mov r9d, 0x43
lea r8, str.C:Users15874_source_reposCasioEmuXlua_config_convertlua_config_convert.cpp
lea rdx, str._s:_i:_in__s:
call fcn.140001020
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.LoadModelDefition_failed:_model_failed_to_call_emu.model_n
call fcn.140001020
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, 0xfff0b9d8
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_geti]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_pushnil]
mov edx, 0xfffffffe
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_next]
test eax, eax
je 0x14000291a
nop word [rax + rax]
xor r8d, r8d
lea edx, [r8 - 2]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tolstring]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140003d40
nop
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x48]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004e90
mov rcx, rax
lea rdx, [0x1400075c8]
call fcn.140004380
mov edx, 0xffffffff
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_type]
mov edx, 0xffffffff
mov rcx, qword [0x14000b940]
cmp eax, 4
jne 0x140001f3e
xor r8d, r8d
call qword [sym.imp.lua.dll_lua_tolstring]
mov rdi, rax
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
seta r14b
mov rsi, qword [rbp - 0x58]
cmova rcx, rsi
mov rbx, qword [rbp - 0x48]
cmp rbx, 0xa
jne 0x140001dcf
mov r8, rbx
lea rdx, str.model_name
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001dcf
mov rsi, 0xffffffffffffffff
nop word [rax + rax]
inc rsi
cmp byte [rdi + rsi], 0
jne 0x140001d90
mov rax, qword [rbp + 0x40]
cmp rsi, rax
ja 0x140001db8
lea rbx, [rbp + 0x28]
cmp rax, 0xf
cmova rbx, qword [rbp + 0x28]
mov qword [rbp + 0x38], rsi
jmp 0x140001f0d
lea rcx, [rbp + 0x28]
mov r9, rdi
mov rdx, rsi
call fcn.140004a90
mov rdx, rdi
jmp 0x140002741
lea rcx, [rbp - 0x58]
test r14b, r14b
cmovne rcx, rsi
cmp rbx, 0x14
jne 0x140001e54
mov r8, rbx
lea rdx, str.interface_image_path
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001e54
mov rsi, 0xffffffffffffffff
nop word [rax + rax]
inc rsi
cmp byte [rdi + rsi], 0
jne 0x140001e00
mov rax, qword [rbp + 0x20]
cmp rsi, rax
ja 0x140001e3d
lea rbx, [rbp + 8]
cmp rax, 0xf
cmova rbx, qword [rbp + 8]
mov qword [rbp + 0x18], rsi
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
mov rdx, rdi
jmp 0x140002741
lea rcx, [rbp + 8]
mov r9, rdi
mov rdx, rsi
call fcn.140004a90
mov rdx, rdi
jmp 0x140002741
lea rcx, [rbp - 0x58]
test r14b, r14b
cmovne rcx, rsi
cmp rbx, 8
jne 0x140001ebc
mov r8, rbx
lea rdx, str.rom_path
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001ebc
mov rsi, 0xffffffffffffffff
nop
inc rsi
cmp byte [rdi + rsi], 0
jne 0x140001e80
mov rax, qword [rbp + 0x60]
cmp rsi, rax
ja 0x140001ea5
lea rbx, [rbp + 0x48]
cmp rax, 0xf
cmova rbx, qword [rbp + 0x48]
mov qword [rbp + 0x58], rsi
jmp 0x140001f0d
lea rcx, [rbp + 0x48]
mov r9, rdi
mov rdx, rsi
call fcn.140004a90
mov rdx, rdi
jmp 0x140002741
lea rcx, [rbp - 0x58]
test r14b, r14b
cmovne rcx, rsi
cmp rbx, 0xa
jne 0x140001f36
mov r8, rbx
lea rdx, str.flash_path
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001f36
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rdi + rsi], 0
jne 0x140001ee7
mov rax, qword [rbp + 0x80]
cmp rsi, rax
ja 0x140001f27
lea rbx, [rbp + 0x68]
cmp rax, 0xf
cmova rbx, qword [rbp + 0x68]
mov qword [rbp + 0x78], rsi
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
mov rdx, rdi
jmp 0x140002741
lea rcx, [rbp + 0x68]
mov r9, rdi
mov rdx, rsi
call fcn.140004a90
mov rdx, rdi
jmp 0x140002741
call qword [sym.imp.lua.dll_lua_type]
mov edx, 0xffffffff
mov rcx, qword [0x14000b940]
cmp eax, 3
jne 0x14000205f
xor r8d, r8d
call qword [sym.imp.lua.dll_lua_tointegerx]
mov rdi, rax
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
seta r14b
mov rsi, qword [rbp - 0x58]
cmova rcx, rsi
mov rbx, qword [rbp - 0x48]
cmp rbx, 0xb
jne 0x140001fa7
mov r8, rbx
lea rdx, str.hardware_id
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001fa7
movzx eax, dil
mov word [rbp + 0x8a], ax
jmp 0x14000203a
lea rcx, [rbp - 0x58]
test r14b, r14b
cmovne rcx, rsi
cmp rbx, 0xd
jne 0x140001fd7
mov r8, rbx
lea rdx, str.real_hardware
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001fd7
test rdi, rdi
setne byte [rbp + 0x8c]
jmp 0x14000203a
lea rcx, [rbp - 0x58]
test r14b, r14b
cmovne rcx, rsi
cmp rbx, 8
jne 0x140002004
mov r8, rbx
lea rdx, str.csr_mask
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140002004
mov word [rbp + 0x88], di
jmp 0x14000203a
lea rcx, [rbp - 0x58]
test r14b, r14b
cmovne rcx, rsi
cmp rbx, 8
jne 0x14000203a
mov r8, rbx
lea rdx, str.pd_value
call sub.VCRUNTIME140.dll_memcmp
movzx edx, byte [rbp + 0x8d]
movzx ecx, dil
test eax, eax
cmove edx, ecx
mov byte [rbp + 0x8d], dl
lea rdx, [0x140001310]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_long___int64_____ptr64]
jmp 0x14000274d
call qword [sym.imp.lua.dll_lua_type]
cmp eax, 5
jne 0x14000273a
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova rcx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x48]
cmp r8, 0xa
jne 0x14000238b
lea rdx, str.button_map
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000238b
lea rdx, [0x140007834]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004380
mov rcx, rax
lea rdx, [0x1400077e4]
call fcn.140004380
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_pushnil]
mov edx, 0xfffffffe
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_next]
test eax, eax
je 0x14000275c
nop word [rax + rax]
mov eax, ebx
lea edi, [rax + 1]
movsxd r8, edi
not eax
mov edx, eax
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_geti]
test eax, eax
je 0x1400027d2
mov eax, edi
cmp edi, 6
jne 0x1400020f2
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rbp - 0x80], ebx
xorps xmm1, xmm1
movups xmmword [rbp - 0x78], xmm1
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
xor r8d, r8d
lea edx, [rdi - 0xc]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov dword [rsp + 0x70], eax
xor r8d, r8d
lea edx, [rdi - 0xb]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov dword [rsp + 0x74], eax
xor r8d, r8d
lea edx, [rdi - 0xa]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov dword [rsp + 0x78], eax
xor r8d, r8d
lea edx, [rdi - 9]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov dword [rsp + 0x7c], eax
xor r8d, r8d
lea edx, [rdi - 8]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov dword [rbp - 0x80], eax
xor r8d, r8d
lea edx, [rdi - 7]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tolstring]
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400021c6
mov rcx, qword [rbp - 0x60]
cmp rdi, rcx
ja 0x1400021ff
lea rbx, [rbp - 0x78]
cmp rcx, 0xf
cmova rbx, qword [rbp - 0x78]
mov qword [rbp - 0x68], rdi
mov r8, rdi
mov rdx, rax
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
xor ebx, ebx
jmp 0x14000220e
mov r9, rax
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.140004a90
mov rdx, qword [rbp - 0x28]
cmp rdx, qword [rbp - 0x20]
je 0x14000223a
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rdx], xmm0
mov eax, dword [rbp - 0x80]
mov dword [rdx + 0x10], eax
lea rcx, [rdx + 0x18]
lea rdx, [rbp - 0x78]
call fcn.140003e60
add qword [rbp - 0x28], 0x38
jmp 0x140002248
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.140005110
lea rdx, [0x140007868]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004380
mov edx, dword [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140007864]
call fcn.140004380
mov edx, dword [rsp + 0x74]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140007864]
call fcn.140004380
mov edx, dword [rsp + 0x78]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140007864]
call fcn.140004380
mov edx, dword [rsp + 0x7c]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140007864]
call fcn.140004380
mov edx, dword [rbp - 0x80]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140007860]
call fcn.140004380
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rdx, qword [rbp - 0x78]
mov r8, qword [rbp - 0x68]
mov rcx, rax
call fcn.140004e90
lea rdx, [0x14000785c]
mov rcx, rax
call fcn.140004380
mov rcx, rax
lea rdx, [0x140007858]
call fcn.140004380
mov edx, 0xfffffff8
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_settop]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x14000236c
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002367
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400027cb
call fcn.140005574
mov edx, 0xfffffffe
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_next]
test eax, eax
jne 0x1400020f0
jmp 0x14000275c
mov edx, 0xffffffff
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_rawlen]
cmp rax, 3
jne 0x140002542
mov eax, ebx
nop dword [rax]
lea edi, [rax + 1]
movsxd r8, edi
not eax
mov edx, eax
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_geti]
cmp eax, 3
jne 0x14000283d
mov eax, edi
cmp edi, 3
jne 0x1400023b0
xor r8d, r8d
lea edx, [rdi - 6]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov rdi, rax
xor r8d, r8d
lea edx, [r8 - 2]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov rsi, rax
xor r8d, r8d
lea edx, [r8 - 1]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov r14, rax
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova rcx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x48]
cmp r8, 0xa
jne 0x14000244d
lea rdx, str.ink_colour
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000244d
mov dword [rbp - 8], edi
mov dword [rbp - 4], esi
mov dword [rbp], r14d
mov edx, 0xfffffffc
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_settop]
lea rdx, [0x14000789c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004380
lea rdx, [0x1400012f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rbx, rax
mov edx, 2
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov r8, qword [rax]
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call r8
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
mov byte [rdx + rbx + 0x58], 0x30
mov edx, edi
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rbx, rax
mov edx, 2
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov r8, qword [rax]
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call r8
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
mov byte [rdx + rbx + 0x58], 0x30
mov edx, esi
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rbx, rax
mov edx, 2
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov r8, qword [rax]
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call r8
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
mov byte [rdx + rbx + 0x58], 0x30
mov edx, r14d
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
jmp 0x14000274d
cmp rax, 6
jne 0x14000273a
mov eax, ebx
nop
lea edi, [rax + 1]
movsxd r8, edi
not eax
mov edx, eax
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_geti]
cmp eax, 3
jne 0x1400028a8
mov eax, edi
cmp edi, 6
jne 0x140002550
xor r8d, r8d
lea edx, [rdi - 0xc]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov rbx, rax
mov dword [rsp + 0x70], ebx
xor r8d, r8d
lea edx, [rdi - 0xb]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov rdi, rax
mov dword [rsp + 0x74], edi
xor r8d, r8d
lea edx, [r8 - 4]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov r15, rax
mov dword [rsp + 0x78], r15d
xor r8d, r8d
lea edx, [r8 - 3]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov r12, rax
mov dword [rsp + 0x7c], r12d
xor r8d, r8d
lea edx, [r8 - 2]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov rsi, rax
mov dword [rbp - 0x80], esi
xor r8d, r8d
lea edx, [r8 - 1]
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_tointegerx]
mov r14, rax
mov dword [rbp - 0x7c], r14d
mov dword [rbp - 0x78], r15d
mov dword [rbp - 0x74], r12d
lea r8, [rbp - 0x58]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x18]
call fcn.1400046a0
mov rcx, qword [rax]
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rcx + 0x50], xmm1
mov edx, 0xfffffff9
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_settop]
lea rdx, [0x140007868]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004380
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140007864]
call fcn.140004380
mov edx, edi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140007864]
call fcn.140004380
mov edx, r15d
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140007864]
call fcn.140004380
mov edx, r12d
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140007864]
call fcn.140004380
mov edx, esi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140007864]
call fcn.140004380
mov edx, r14d
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140007864]
call fcn.140004380
mov edx, r15d
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140007864]
call fcn.140004380
mov edx, r12d
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x140007858]
jmp 0x140002754
lea rdx, str._shiranai
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004380
lea rdx, [0x1400077e4]
mov rcx, rax
call fcn.140004380
mov edx, 0xfffffffe
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_settop]
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x1400027aa
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400027a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002913
call fcn.140005574
mov edx, 0xfffffffe
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_next]
test eax, eax
je 0x14000291a
xor ebx, ebx
jmp 0x140001cd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rax, str.main
mov qword [rsp + 0x20], rax
mov r9d, 0x71
lea r8, str.C:Users15874_source_reposCasioEmuXlua_config_convertlua_config_convert.cpp
lea rdx, str._s:_i:_in__s:
call fcn.140001020
lea rcx, [rbp - 0x58]
call fcn.140003cd0
mov rbx, rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, edi
mov r8, rbx
lea rdx, str.key__s__i__is_not_present_n
mov rcx, rax
call fcn.140001020
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 rcx, rax
lea rax, str.main
mov qword [rsp + 0x20], rax
mov r9d, 0x8b
lea r8, str.C:Users15874_source_reposCasioEmuXlua_config_convertlua_config_convert.cpp
lea rdx, str._s:_i:_in__s:
call fcn.140001020
lea rcx, [rbp - 0x58]
call fcn.140003cd0
mov rbx, rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, edi
mov r8, rbx
lea rdx, str.key__s__i__is_not_a_number_n
mov rcx, rax
call fcn.140001020
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 rcx, rax
lea rax, str.main
mov qword [rsp + 0x20], rax
mov r9d, 0x9e
lea r8, str.C:Users15874_source_reposCasioEmuXlua_config_convertlua_config_convert.cpp
lea rdx, str._s:_i:_in__s:
call fcn.140001020
lea rcx, [rbp - 0x58]
call fcn.140003cd0
mov rbx, rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, edi
mov r8, rbx
lea rdx, str.key__s__i__is_not_a_number_n
mov rcx, rax
call fcn.140001020
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov edx, 0xfffffffe
mov rcx, qword [0x14000b940]
call qword [sym.imp.lua.dll_lua_settop]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [r13 + 0x10]
lea rcx, [rbp + 0x90]
call fcn.140003a40
nop
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x30]
call fcn.140001350
lea rcx, [rbp + 0x98]
call fcn.140004180
test rax, rax
jne 0x140002995
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x90]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp + 0x90]
call fcn.140002d20
nop
lea rcx, [rbp - 0x30]
call fcn.140002b20
xor eax, eax
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140005510
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret