Function at 0x1400098f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [0x140097040]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov r13, rcx
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x160]
call sub.VCRUNTIME140.dll_memset
mov rbx, qword [r13 + 0x150]
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xor r12d, r12d
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r12
lea r8d, [r12 + 8]
lea rdx, str.rom_path
lea rcx, [rbp - 0x60]
call fcn.140004e00
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.140011e50
nop
lea rdx, [rbp + 0x30]
mov rcx, rax
call fcn.140011f90
mov r8, rax
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.1400147b0
nop
cmp qword [rax + 0x18], 0xf
jbe 0x1400099a4
mov rax, qword [rax]
mov r8d, 0x20
mov rdx, rax
lea rcx, [rbp + 0x160]
call fcn.14000bea0
mov rax, qword [rbp + 0x160]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x160], rax
mov rax, qword [rbp + 0x160]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x15c], edx
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140009a29
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009a24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009a24
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b5a0
movdqa xmm0, xmmword [0x140088f40]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x140009a78
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009a73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009a73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b5a0
movdqa xmm0, xmmword [0x140088f40]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
mov rax, qword [rbp + 0x160]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x160]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
je 0x140009b15
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.SetupInternals
mov qword [rsp + 0x20], rax
mov r9d, 0x99
lea r8, str.C:Users15874_source_reposCasioEmuXCasioEmuMsvcChipsetChipset.cpp
lea rdx, str._s:_i:_in__s:
call fcn.140006bd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
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.std::ifstream_failed:__s_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 qword [rbp - 0x80], r12
mov word [rbp - 0x78], 1
mov rax, qword [rbp + 0x160]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0x1a8]
mov qword [rsp + 0x60], rax
test rax, rax
sete byte [rsp + 0x68]
mov byte [rsp + 0x69], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r12
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x58], rcx
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm1
movzx esi, byte [rsp + 0x69]
mov rbx, qword [rsp + 0x60]
movzx r15d, byte [rbp - 0x78]
mov rdi, qword [rbp - 0x80]
test rax, rax
jne 0x140009b90
movzx r14d, byte [rsp + 0x68]
jmp 0x140009bb0
test rbx, rbx
je 0x140009ba8
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140009ba8
movzx esi, al
jmp 0x140009bab
mov rbx, r12
mov r14b, 1
nop
test r15b, r15b
jne 0x140009bce
test rdi, rdi
je 0x140009bc8
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
jne 0x140009bcb
mov rdi, r12
mov r15b, 1
test rbx, rbx
jne 0x140009c2f
test rdi, rdi
jne 0x140009c34
lea rcx, [r13 + 0x168]
lea rdx, [rsp + 0x38]
call fcn.14000bb30
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140009cad
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009ca8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009ca8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rdi, rdi
jne 0x140009bd8
test r14b, r14b
jne 0x140009c54
test rbx, rbx
je 0x140009c51
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140009c51
movzx esi, al
jmp 0x140009c54
mov rbx, r12
mov byte [rsp + 0x30], sil
mov rax, qword [rsp + 0x40]
cmp rax, qword [rsp + 0x48]
je 0x140009c6f
mov byte [rax], sil
inc qword [rsp + 0x40]
jmp 0x140009c83
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.14000c2a0
test rbx, rbx
je 0x140009ba8
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void____ptr64]
cmp eax, 0xffffffff
je 0x140009ba8
mov byte [rsp + 0x68], 0
jmp 0x140009b90
call fcn.14007b5a0
mov rbx, qword [r13 + 0x150]
cmp dword [rbx + 0x114], 0x159
jne 0x14000a05e
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov r8d, 0xa
lea rdx, str.flash_path
lea rcx, [rsp + 0x38]
call fcn.140004e00
lea r8, [rsp + 0x38]
lea rdx, [rbp + 8]
mov rcx, rbx
call fcn.140011e50
nop
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140011f90
mov r8, rax
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.1400147b0
nop
cmp qword [rax + 0x18], 0xf
jbe 0x140009d37
mov rax, qword [rax]
mov r8d, 0x20
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.14000bea0
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x50], rax
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x4c], edx
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140009dad
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009da8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009da8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b5a0
movdqa xmm0, xmmword [0x140088f40]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140009dfc
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009df7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009df7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b5a0
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
je 0x140009e82
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.SetupInternals
mov qword [rsp + 0x20], rax
mov r9d, 0xa0
lea r8, str.C:Users15874_source_reposCasioEmuXCasioEmuMsvcChipsetChipset.cpp
lea rdx, str._s:_i:_in__s:
call fcn.140006bd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
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.std::ifstream_failed:__s_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 qword [rbp - 0x80], r12
mov word [rbp - 0x78], 1
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0x98]
mov qword [rsp + 0x60], rax
test rax, rax
sete byte [rsp + 0x68]
mov byte [rsp + 0x69], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r12
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x58], rcx
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm1
movzx esi, byte [rsp + 0x69]
mov rbx, qword [rsp + 0x60]
movzx r15d, byte [rbp - 0x78]
mov rdi, qword [rbp - 0x80]
test rax, rax
jne 0x140009efa
movzx r14d, byte [rsp + 0x68]
jmp 0x140009f18
test rbx, rbx
je 0x140009f12
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140009f12
movzx esi, al
jmp 0x140009f15
mov rbx, r12
mov r14b, 1
test r15b, r15b
jne 0x140009f36
test rdi, rdi
je 0x140009f30
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
jne 0x140009f33
mov rdi, r12
mov r15b, 1
test rbx, rbx
jne 0x140009f97
test rdi, rdi
jne 0x140009f9c
lea rcx, [r13 + 0x180]
lea rdx, [rsp + 0x38]
call fcn.14000bb30
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000a016
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a010
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a010
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rdi, rdi
jne 0x140009f40
test r14b, r14b
jne 0x140009fbc
test rbx, rbx
je 0x140009fb9
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140009fb9
movzx esi, al
jmp 0x140009fbc
mov rbx, r12
mov byte [rsp + 0x30], sil
mov rax, qword [rsp + 0x40]
cmp rax, qword [rsp + 0x48]
je 0x140009fd7
mov byte [rax], sil
inc qword [rsp + 0x40]
jmp 0x140009feb
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.14000c2a0
test rbx, rbx
je 0x140009f12
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void____ptr64]
cmp eax, 0xffffffff
je 0x140009f12
mov byte [rsp + 0x68], 0
jmp 0x140009efa
call fcn.14007b5a0
nop
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x50], rdi
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x4c], edx
lea rcx, [rbp + 0x60]
call fcn.14000ba00
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x100]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x14000a065
lea rdi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov rbx, qword [r13 + 8]
test rbx, rbx
je 0x14000a084
nop
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax]
mov rax, qword [rbx]
mov rbx, rax
test rax, rax
jne 0x14000a070
mov rcx, r13
call fcn.140008f60
mov rcx, qword [r13 + 0x158]
call fcn.14000c990
mov rcx, qword [r13 + 0x160]
call fcn.140010f30
nop
mov rax, qword [rbp + 0x160]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x160], rdi
mov rax, qword [rbp + 0x160]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x15c], edx
lea rcx, [rbp + 0x170]
call fcn.14000ba00
lea rcx, [rbp + 0x178]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x210]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.14007af90
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret