Function at 0x140071e40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x140097040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov r13, r9
mov rsi, r8
mov qword [rsp + 0x50], r8
mov r12, rdx
mov qword [rsp + 0x58], rcx
mov rbp, qword [rsp + 0x118]
mov qword [rsp + 0x48], rbp
mov rbx, qword [rsp + 0x120]
mov qword [rsp + 0x80], rbx
mov rax, qword [rbp + 0x140]
mov r14, qword [rax + 0x168]
mov qword [rsp + 0x40], r14
mov rcx, qword [rax + 0x170]
sub rcx, r14
lea rax, [r8 + r9]
cmp rax, rcx
jbe 0x140071f1e
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.SetupROMRegion
mov qword [rsp + 0x20], rax
mov r9d, 0x10
lea r8, str.C:Users15874_source_reposCasioEmuXCasioEmuMsvcPeripheralROMWindow.cpp
lea rdx, str._s:_i:_in__s:
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
mov r9, rsi
mov r8, r13
lea rdx, str.Invalid_ROM_region:_base__zx__size__zx_n
call fcn.140006bd0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r15, r13
sub r15, r12
cmp qword [rbx + 0x10], 0
jne 0x140072118
lea r9, [rsp + 0x9d]
mov r8, r12
shr r8, 0x10
movabs r10, 0xcccccccccccccccd
nop dword [rax + rax]
dec r9
mov rax, r10
mul r8
shr rdx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8, rdx
test rdx, rdx
jne 0x140071f50
lea r8, [rsp + 0x9d]
mov rdx, r9
lea rcx, [rsp + 0x60]
call fcn.140007c90
nop
mov r8, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
sub rax, r8
mov r14d, 0xb
lea rsi, str.ROM_Segment
cmp rax, r14
jb 0x140072036
lea rax, [r8 + 0xb]
mov qword [rsp + 0x70], rax
lea rdi, [rsp + 0x60]
cmp rcx, 0xf
cmova rdi, qword [rsp + 0x60]
lea rax, [0x1400883cb]
cmp rax, rdi
jbe 0x140071ff4
lea rax, [rdi + r8]
cmp rsi, rax
ja 0x140071ff4
cmp rdi, rsi
ja 0x140071fec
xor ebp, ebp
jmp 0x140071ff7
mov rbp, rdi
sub rbp, rsi
jmp 0x140071ff7
mov rbp, r14
inc r8
lea rcx, [rdi + 0xb]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
sub r14, rbp
lea rdx, [rsi + 0xb]
add rdx, rbp
lea rcx, [rdi + rbp]
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x60]
mov rbp, qword [rsp + 0x48]
jmp 0x14007204d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.140072d80
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x88], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x98], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rsp + 0x88]
mov rcx, rbx
call fcn.1400056e0
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0xf
jbe 0x1400720ce
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400720c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400720c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b5a0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14007210e
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072109
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140072109
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b5a0
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
lea rdi, [fcn.14000c450]
lea rax, [0x140072210]
cmp byte [rsp + 0x110], 0
cmovne rdi, rax
mov rdx, rbx
lea rcx, [rsp + 0x88]
call fcn.140005770
mov qword [rsp + 0x38], rbp
mov r9, rax
mov r8, rsi
mov qword [rsp + 0x30], rdi
test r15, r15
js 0x140072164
lea rcx, [r15 + r14]
lea rdx, [0x140072250]
jmp 0x14007216f
lea rcx, [r14 + r13]
lea rdx, [0x14006bbe0]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
mov rdx, r12
mov rcx, qword [rsp + 0x58]
call fcn.140011b30
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400721bd
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400721b8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400721fb
mov rcx, r8
call fcn.14007b5a0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14007af90
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3