Function at 0x140006cc0
Capabilities:
Create thread
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 - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x140097040]
xor rax, rsp
mov qword [rbp + 0x1c8], rax
mov r12, rdx
mov qword [rbp + 0x180], rdx
mov ebx, ecx
mov dword [rsp + 0x34], ecx
xor esi, esi
mov qword [rbp + 0x168], rsi
lea ecx, [rsi + 0x60]
call fcn.14007b24c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp + 0x160], rax
mov r15d, 1
mov dword [rsp + 0x30], r15d
cmp ebx, r15d
je 0x1400071cb
mov r14d, r15d
mov qword [rbp + 0x150], r15
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x108], xmm0
mov qword [rbp + 0x118], rsi
mov qword [rbp + 0x120], 0xf
mov byte [rbp + 0x108], 0
movups xmmword [rbp + 0x128], xmm0
mov qword [rbp + 0x138], rsi
mov qword [rbp + 0x140], 0xf
mov byte [rbp + 0x128], 0
mov edx, 0x3d
mov rcx, qword [r12 + r14*8]
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rdi, rax
test rax, rax
je 0x140006e9f
mov r8, rax
mov rdx, qword [r12 + r14*8]
lea rcx, [rsp + 0x70]
call fcn.140007c90
mov rbx, rax
lea rax, [rbp + 0x108]
cmp rax, rbx
je 0x140006e4c
mov rdx, qword [rbp + 0x120]
cmp rdx, 0xf
jbe 0x140006e0f
inc rdx
mov rcx, qword [rbp + 0x108]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006e0a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400071bd
call fcn.14007b5a0
mov qword [rbp + 0x118], rsi
mov qword [rbp + 0x120], 0xf
mov byte [rbp + 0x108], 0
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x108], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x118], xmm1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140006e88
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006e83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400071bd
call fcn.14007b5a0
lea r9, [rdi + 1]
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [r9 + rdi], 0
jne 0x140006e93
jmp 0x140006f1a
mov rax, qword [rbp + 0x120]
cmp rax, 5
jb 0x140006ee5
lea rbx, [rbp + 0x108]
cmp rax, 0xf
cmova rbx, qword [rbp + 0x108]
mov qword [rbp + 0x118], 5
mov r8d, 5
lea rdx, str.model
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 5], 0
jmp 0x140006efd
lea r9, str.model
mov edx, 5
lea rcx, [rbp + 0x108]
call fcn.140006350
mov r9, qword [r12 + r14*8]
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [r9 + rdi], 0
jne 0x140006f10
mov rax, qword [rbp + 0x140]
cmp rdi, rax
ja 0x140006f54
lea rbx, [rbp + 0x128]
cmp rax, 0xf
cmova rbx, qword [rbp + 0x128]
mov qword [rbp + 0x138], rdi
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x140006f63
mov rdx, rdi
lea rcx, [rbp + 0x128]
call fcn.140006350
mov r13, qword [rbp + 0x160]
mov rbx, qword [r13 + 8]
mov r14, r13
mov rdi, qword [rbp + 0x120]
mov rsi, qword [rbp + 0x118]
mov r12, qword [rbp + 0x108]
cmp byte [rbx + 0x19], 0
jne 0x140007008
cmp rdi, 0xf
seta r15b
mov qword [rbp + 0x1c0], rsi
nop dword [rax + rax]
lea rcx, [rbx + 0x20]
lea rdx, [rbp + 0x108]
test r15b, r15b
cmovne rdx, r12
mov rdi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x140006fc0
mov rcx, qword [rcx]
mov r8, rdi
cmp rsi, rdi
cmovb r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140006fd9
jns 0x140006fe4
mov al, 1
jmp 0x140006fe6
cmp rdi, rsi
jae 0x140006fe2
mov al, 1
jmp 0x140006fe6
jbe 0x140006ff0
xor al, al
test al, al
je 0x140006ff0
mov rbx, qword [rbx + 0x10]
jmp 0x140006ff6
mov r14, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x140006fa0
mov rdi, qword [rbp + 0x120]
mov r15d, dword [rsp + 0x30]
cmp byte [r14 + 0x19], 0
jne 0x14000705a
lea rdx, [r14 + 0x20]
mov rbx, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140007021
mov rdx, qword [rdx]
lea rcx, [rbp + 0x108]
cmp rdi, 0xf
cmova rcx, r12
mov r8, rsi
cmp rbx, rsi
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140007049
jns 0x140007054
mov al, 1
jmp 0x140007056
cmp rsi, rbx
jae 0x140007052
mov al, 1
jmp 0x140007056
jbe 0x14000705d
xor al, al
test al, al
je 0x14000705d
mov r14, r13
lea r8, [rbp + 0x108]
cmp r14, r13
jne 0x1400070e1
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x160]
call fcn.140007fd0
mov rcx, qword [rax]
add rcx, 0x40
lea rax, [rbp + 0x128]
cmp rcx, rax
je 0x1400070f8
mov rbx, qword [rbp + 0x138]
lea r9, [rbp + 0x128]
cmp qword [rbp + 0x140], 0xf
cmova r9, qword [rbp + 0x128]
mov rax, qword [rcx + 0x18]
cmp rbx, rax
ja 0x1400070d7
mov rdi, rcx
cmp rax, 0xf
jbe 0x1400070bf
mov rdi, qword [rcx]
mov qword [rcx + 0x10], rbx
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x1400070f8
mov rdx, rbx
call fcn.140006350
jmp 0x1400070f8
cmp rdi, 0xf
cmova r8, r12
mov edx, r15d
lea rcx, str._argv___i:_key__s_already_set_n
call fcn.14006b510
mov rdx, qword [rbp + 0x140]
cmp rdx, 0xf
jbe 0x140007139
inc rdx
mov rcx, qword [rbp + 0x128]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007134
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400071c4
call fcn.14007b5a0
xor esi, esi
mov qword [rbp + 0x138], rsi
mov qword [rbp + 0x140], 0xf
mov byte [rbp + 0x128], sil
mov rdx, qword [rbp + 0x120]
cmp rdx, 0xf
jbe 0x140007191
inc rdx
mov rcx, qword [rbp + 0x108]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000718c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400071c4
call fcn.14007b5a0
inc r15d
mov dword [rsp + 0x30], r15d
mov r14, qword [rbp + 0x150]
inc r14
mov qword [rbp + 0x150], r14
cmp r15d, dword [rsp + 0x34]
je 0x1400071cb
mov r12, qword [rbp + 0x180]
jmp 0x140006d50
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
mov r8d, 5
lea rdx, str.model
lea rcx, [rsp + 0x50]
call fcn.140004e00
mov r13, qword [rbp + 0x160]
mov rbx, qword [r13 + 8]
mov r14, r13
mov r15, qword [rsp + 0x50]
cmp byte [rbx + 0x19], 0
jne 0x14000728c
cmp qword [rsp + 0x68], 0xf
seta r12b
mov rsi, qword [rsp + 0x60]
mov qword [rbp + 0x180], rsi
nop dword [rax]
nop word [rax + rax]
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x50]
test r12b, r12b
cmovne rdx, r15
mov rdi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x14000724e
mov rcx, qword [rcx]
mov r8, rdi
cmp rsi, rdi
cmovb r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140007267
jns 0x140007272
mov al, 1
jmp 0x140007274
cmp rdi, rsi
jae 0x140007270
mov al, 1
jmp 0x140007274
jbe 0x14000727e
xor al, al
test al, al
je 0x14000727e
mov rbx, qword [rbx + 0x10]
jmp 0x140007284
mov r14, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x140007230
xor esi, esi
cmp byte [r14 + 0x19], 0
jne 0x1400072a5
lea r8, [r14 + 0x20]
lea rdx, [rsp + 0x50]
call fcn.1400086a0
test al, al
je 0x1400072a8
mov r14, r13
cmp r14, r13
sete bl
mov rax, qword [rsp + 0x68]
cmp rax, 0xf
jbe 0x1400072ed
lea rdx, [rax + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x1400072e5
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400072e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.14007b5a0
test bl, bl
je 0x140007309
lea rcx, str.No_model_path_supplied_n
call fcn.140006c20
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 0x21
call qword [sym.imp.SDL2.dll_SDL_Init]
mov ecx, 2
test eax, eax
je 0x14000737d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rax, str.SDL_main
mov qword [rsp + 0x20], rax
mov r9d, 0x3c
lea r8, str.C:Users15874_source_reposCasioEmuXCasioEmuMsvccasioemu.cpp
lea rdx, str._s:_i:_in__s:
call fcn.140006bd0
call qword [sym.imp.SDL2.dll_SDL_GetError]
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.SDL_Init_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
call qword [sym.imp.SDL2_image.dll_IMG_Init]
cmp eax, 2
je 0x1400073ed
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.SDL_main
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, str.C:Users15874_source_reposCasioEmuXCasioEmuMsvccasioemu.cpp
lea rdx, str._s:_i:_in__s:
call fcn.140006bd0
call qword [sym.imp.SDL2.dll_SDL_GetError]
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.IMG_Init_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
xor edx, edx
mov r8d, 0x148
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
xor r8d, r8d
lea rdx, [rbp + 0x160]
lea rcx, [rbp - 0x50]
call fcn.1400126d0
lea rax, [rbp - 0x50]
mov qword [0x14009a988], rax
mov ecx, 8
call fcn.14007b24c
lea rcx, [rbp - 0x50]
mov qword [rax], rcx
lea rcx, [rbp + 0x178]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140008720]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x170], rax
test rax, rax
je 0x14000784f
mov byte [rbp + 0x100], 0
lea rax, [rbp + 0x100]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
mov ecx, 0x10
call fcn.14007b24c
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax], xmm0
lea rcx, [rbp + 0x158]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140008750]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x150], rax
test rax, rax
je 0x14000783d
cmp dword [rbp + 0x158], 0
je 0x140007831
movaps xmm0, xmmword [rbp + 0x150]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140007831
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movdqa xmmword [rbp + 0x150], xmm0
cmp byte [rbp - 0x38], al
je 0x140007729
nop dword [rax + rax]
lea rcx, [rbp + 0x188]
call qword [sym.imp.SDL2.dll_SDL_PollEvent]
test eax, eax
je 0x14000771f
mov eax, dword [rbp + 0x188]
cmp eax, 0x400
ja 0x14000766e
je 0x140007554
sub eax, 0x200
je 0x14000758e
sub eax, 0x100
je 0x140007554
sub eax, 1
je 0x140007554
cmp eax, 2
jne 0x14000771f
call qword [sym.imp.SDL2.dll_SDL_GetKeyboardFocus]
cmp rax, qword [rbp + 0x28]
jne 0x140007570
call qword [sym.imp.SDL2.dll_SDL_GetMouseFocus]
cmp rax, qword [rbp + 0x28]
je 0x14000770f
cmp byte [rbp + 0x100], 0
je 0x14000770f
lea rcx, [rbp + 0x188]
call fcn.140043000
jmp 0x14000771f
mov eax, dword [rbp + 0x194]
cmp al, 3
je 0x14000765f
cmp al, 5
je 0x1400075ba
cmp al, 0xe
jne 0x14000771f
lea rcx, [rbp - 0x50]
call fcn.140014e30
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.SDL2.dll_SDL_GetWindowID]
cmp dword [rbp + 0x190], eax
jne 0x14000771f
mov edi, dword [rbp + 0x19c]
mov ebx, dword [rbp + 0x198]
lea rcx, [rbp + 0x30]
call fcn.1400150e0
mov dword [rbp + 0x20], ebx
mov dword [rbp + 0x24], edi
lea rcx, [rbp - 0x50]
call fcn.140014a60
nop
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14000776a
cmp dword [rbp + 0x7c], 0x7fffffff
je 0x140007757
sub dword [rbp + 0x84], 1
jne 0x14000764f
mov dword [rbp + 0x80], esi
cmp qword [rbp + 0xa8], 0
je 0x14000764f
mov rcx, qword [rbp + 0x98]
dec rcx
and rcx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0x90]
mov rcx, qword [rax + rcx*8]
call qword [sym.imp.MSVCP140.dll__Cnd_signal]
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
nop
jmp 0x14000771f
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.SDL2.dll_SDL_RenderPresent]
jmp 0x14000771f
sub eax, 0x401
je 0x140007554
sub eax, 1
je 0x140007554
sub eax, 1
je 0x140007554
cmp eax, 0x7bfd
jne 0x14000771f
mov ecx, dword [rbp + 0x194]
test ecx, ecx
je 0x140007704
cmp ecx, 1
jne 0x14000771f
cmp byte [rbp - 0x38], 0
je 0x140007729
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.SDL_main
mov qword [rsp + 0x20], rax
mov r9d, 0x8f
lea r8, str.C:Users15874_source_reposCasioEmuXCasioEmuMsvccasioemu.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
lea rdx, str.CE_EMU_STOPPED_event_received_while_emulator_is_still_running_n
call fcn.140006bd0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, [rbp - 0x50]
call fcn.140014a60
jmp 0x14000771f
lea rdx, [rbp + 0x188]
lea rcx, [rbp - 0x50]
call fcn.140013db0
cmp byte [rbp - 0x38], 0
jne 0x140007510
xchg byte [0x140097094], sil
cmp dword [rbp + 0x178], 0
je 0x140007831
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp + 0x178], eax
jne 0x140007776
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp + 0x7c], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
movaps xmm0, xmmword [rbp + 0x170]
movdqa xmmword [rsp + 0x40], xmm0
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x1400077a0
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x170], xmm0
cmp dword [rbp + 0x158], 0
je 0x1400077bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
lea rcx, [rbp - 0x50]
call fcn.140013be0
lea rdx, str._nGoodbye
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140007dc0
lea rdx, [0x140007f90]
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]
call qword [sym.imp.SDL2_image.dll_IMG_Quit]
call qword [sym.imp.SDL2.dll_SDL_Quit]
lea rcx, [rbp + 0x160]
call fcn.140007c00
xor eax, eax
mov rcx, qword [rbp + 0x1c8]
xor rcx, rsp
call fcn.14007af90
lea r11, [rsp + 0x2d0]
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
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov dword [rbp + 0x158], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov dword [rbp + 0x178], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3