Function at 0x140067490
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
mov rax, qword [0x140097040]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r13, rcx
xor r14d, r14d
mov dword [rsp + 0x28], 0x2020
mov dword [rsp + 0x20], 0x2d0
mov edx, 0x2fff0000
mov r9d, 0x500
mov r8d, edx
lea rcx, str.CasioEmuX
call qword [sym.imp.SDL2.dll_SDL_CreateWindow]
mov qword [0x14009cf20], rax
lea edx, [r14 - 1]
lea r8d, [r14 + 6]
mov rcx, rax
call qword [sym.imp.SDL2.dll_SDL_CreateRenderer]
mov qword [0x14009a9b8], rax
test rax, rax
jne 0x140067540
lea rcx, str.Error_creating_SDL_Renderer_
call qword [sym.imp.SDL2.dll_SDL_Log]
jmp 0x140067df6
mov rbx, qword [0x14009a998]
test rbx, rbx
je 0x140067552
inc dword [rbx + 0xf0]
mov ecx, 0x5e78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140067582
xor edx, edx
mov rcx, rax
call fcn.140017c10
jmp 0x140067585
mov rax, r14
mov qword [0x14009a998], rax
call fcn.14001cdc0
test rbx, rbx
je 0x14006759f
mov qword [0x14009a998], rbx
jmp 0x1400675a6
mov rbx, qword [0x14009a998]
mov rcx, qword [rbx + 0x38]
call fcn.14003e3d0
xorps xmm6, xmm6
xor eax, eax
movups xmmword [rbp - 0x70], xmm6
movups xmmword [rbp - 0x60], xmm6
movups xmmword [rbp - 0x30], xmm6
movups xmmword [rbp - 0x20], xmm6
mov qword [rbp + 0x10], rax
mov byte [rbp - 0x64], 1
mov dword [rbp - 0x58], 2
mov dword [rbp - 0x54], 1
mov dword [rbp - 0x2c], 0x7f7fffff
mov dword [rbp - 0x20], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x1c], ax
mov byte [rbp - 0x28], 1
lea rsi, str.CWIICN.ttf
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 0xa
call fcn.14007aab8
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140065fd0
nop
lea rcx, [rsp + 0x70]
call fcn.140066aa0
movzx edi, al
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x14006767d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140067678
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140067678
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b5a0
test dil, dil
je 0x1400678db
mov r12, qword [rbx + 0x38]
lea rdx, [0x1400813c0]
mov rcx, rsi
call fcn.1400195e0
mov rdi, rax
test rax, rax
je 0x1400678c5
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400678bc
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400678bc
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd r15, eax
cmp r15d, 0xffffffff
je 0x1400678bc
xor r8d, r8d
mov edx, esi
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400678bc
cmp r15, 0xffffffffffffffff
je 0x1400678bc
mov rax, qword [0x14009a998]
test rax, rax
je 0x140067718
inc dword [rax + 0xf0]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x1400678bc
mov r9, rdi
mov r8, r15
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, r15
je 0x14006776f
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14009a998]
test rax, rax
je 0x140067761
dec dword [rax + 0xf0]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400678c5
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movaps xmm2, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x60], xmm2
movaps xmm3, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x70], xmm3
movaps xmmword [rbp + 0x80], xmm6
xorps xmm4, xmm4
movaps xmmword [rbp + 0x90], xmm4
movaps xmm5, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0xa0], xmm5
movaps xmm1, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0xb0], xmm1
xorps xmm7, xmm7
movaps xmmword [rbp + 0xc0], xmm7
xorps xmm8, xmm8
movaps xmmword [rbp + 0xd0], xmm8
movsd xmm9, qword [rbp + 0x10]
movsd qword [rbp + 0xe0], xmm9
movdqa xmm0, xmm1
psrldq xmm0, 6
movd eax, xmm0
test al, al
jne 0x14006786d
lea r9, [0x140087a7a]
lea rdx, str.CWIICN.ttf
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x14006780b
cmp al, 0x5c
je 0x14006780b
mov r9, rcx
cmp rcx, rdx
ja 0x1400677f4
movsd xmm0, qword [0x140088e40]
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, 0x28
lea rcx, [rbp + 0xb6]
call fcn.140019390
movsd xmm9, qword [rbp + 0xe0]
movaps xmm8, xmmword [rbp + 0xd0]
movaps xmm7, xmmword [rbp + 0xc0]
movaps xmm1, xmmword [rbp + 0xb0]
movaps xmm5, xmmword [rbp + 0xa0]
movaps xmm4, xmmword [rbp + 0x90]
movaps xmm6, xmmword [rbp + 0x80]
movaps xmm3, xmmword [rbp + 0x70]
movaps xmm2, xmmword [rbp + 0x60]
movaps xmmword [rbp - 0x70], xmm2
movaps xmmword [rbp - 0x60], xmm3
movaps xmmword [rbp - 0x50], xmm6
movaps xmmword [rbp - 0x40], xmm4
movaps xmmword [rbp - 0x30], xmm5
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x10], xmm7
movaps xmmword [rbp], xmm8
movsd qword [rbp + 0x10], xmm9
mov qword [rbp - 0x70], r14
mov dword [rbp - 0x68], r15d
mov dword [rbp - 0x5c], 0x41400000
lea rax, [0x140087950]
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x70]
mov rcx, r12
call fcn.14003e100
jmp 0x1400678c5
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, 1
call fcn.14007b24c
mov qword [0x14009a9d8], rax
xor r14d, r14d
jmp 0x1400678ee
lea rdx, str.please_put_CWIICN.ttf_in_current_directory_to_support_keylog._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140007dc0
mov rdi, qword [rbx + 0x38]
cmp dword [rdi + 0x78], 0
jne 0x140067900
mov rcx, rdi
call fcn.14003e3d0
mov rax, qword [rdi + 0x488]
test rax, rax
jne 0x140067921
lea rax, [0x14003e9c0]
mov qword [0x1400acf68], rax
lea rax, [0x1400acf68]
mov rax, qword [rax]
mov rcx, rdi
call rax
mov byte [rbx + 0xd3], 1
or dword [rbx + 8], 3
xor ecx, ecx
call fcn.140039ca0
mov rdx, qword [0x14009a9b8]
mov rcx, qword [0x14009cf20]
call fcn.1400435d0
mov rdi, qword [0x14009a9b8]
mov rbx, qword [0x14009a998]
test rbx, rbx
je 0x140067967
inc dword [rbx + 0xf0]
mov ecx, 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140067984
xorps xmm0, xmm0
movups xmmword [rax], xmm0
jmp 0x140067987
mov rax, r14
mov qword [rbx + 0x98], rax
lea rcx, str.imgui_impl_sdlrenderer2
mov qword [rbx + 0x88], rcx
or dword [rbx + 0xc], 8
mov qword [rax], rdi
mov byte [r13], 1
cmp qword [0x14009a988], 0
jne 0x140067a07
movabs rbx, 0x7ffffffffffffc17
movabs rdi, 0x7fffffffffffffff
lea rcx, [rsp + 0x68]
call fcn.1400125f0
mov rax, qword [rsp + 0x68]
cmp rax, rbx
je 0x1400679ee
setl cl
test cl, cl
je 0x1400679ee
add rax, 0x3e8
mov qword [rsp + 0x60], rax
jmp 0x1400679f3
mov qword [rsp + 0x60], rdi
lea rcx, [rsp + 0x60]
call fcn.140015510
cmp qword [0x14009a988], 0
je 0x1400679c6
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
mov r8d, 0xa
lea rdx, str._disas.txt
lea rcx, [rsp + 0x70]
call fcn.140004e00
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x40]
mov rcx, qword [0x14009a988]
call fcn.1400147b0
nop
lea rax, [rbp + 0x40]
cmp qword [rbp + 0x58], 0xf
cmova rax, qword [rbp + 0x40]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x48], rax
call fcn.14007aab8
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rbp + 0x20]
call fcn.140065fd0
nop
lea rcx, [rbp + 0x20]
call fcn.140066aa0
movzx ebx, al
mov rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x140067ad0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140067acb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140067acb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b5a0
test bl, bl
je 0x140067b2a
mov ecx, 0x78
call fcn.14007b24c
mov rbx, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
movups xmmword [rbx + 0x60], xmm0
mov qword [rbx + 0x70], rax
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.140005770
mov rdx, rax
mov rcx, rbx
call fcn.140015ae0
nop
mov qword [0x14009a9f8], rax
mov ecx, 8
call fcn.14007b24c
mov rbx, rax
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rbx], rax
mov ecx, 0x400
call fcn.14007b5dc
mov qword [rbx], rax
xor edx, edx
mov r8d, 0x400
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
nop
mov qword [0x14009a9c8], rbx
mov ecx, 0x20
call fcn.14007b24c
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax], r14
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
mov dword [rax + 0x18], 0xffffffff
mov qword [0x14009aa00], rax
mov ecx, 0x138
call fcn.14007b24c
mov qword [rsp + 0x40], rax
mov byte [rax + 0x128], 0
mov word [rax + 0x50], 1
mov dword [rax + 0x54], 0x10
mov dword [rax + 0x58], 0x1000001
mov word [rax + 0x5c], 0x101
mov qword [rax + 0x60], 8
mov dword [rax + 0x68], r14d
mov dword [rax + 0x6c], 0x32ffffff
mov qword [rax + 0x70], r14
mov qword [rax + 0x78], r14
mov qword [rax + 0x80], r14
mov byte [rax + 0x88], 0
mov qword [rax + 0x98], 0xffffffffffffffff
mov qword [rax + 0x90], 0xffffffffffffffff
mov byte [rax + 0xa0], 0
xorps xmm0, xmm0
movups xmmword [rax + 0xa1], xmm0
movups xmmword [rax + 0xb1], xmm0
xorps xmm1, xmm1
movups xmmword [rax + 0xc1], xmm1
movups xmmword [rax + 0xd1], xmm1
mov qword [rax + 0xe8], 0xffffffffffffffff
mov qword [rax + 0xf8], 0xffffffffffffffff
mov qword [rax + 0xf0], 0xffffffffffffffff
mov dword [rax + 0x100], r14d
mov dword [rax + 0x104], 4
mov byte [rax + 0x130], 0
mov byte [rax + 0x58], 0
mov qword [0x14009a9a8], rax
mov ecx, 1
call fcn.14007b24c
mov qword [0x14009a9b0], rax
mov ecx, 0x100
call fcn.14007b24c
mov rbx, rax
mov qword [rsp + 0x40], rax
mov byte [rax + 0xd8], 0
mov word [rax], 1
mov dword [rax + 4], 0x10
mov dword [rax + 8], 0x1000001
mov word [rax + 0xc], 0x101
mov qword [rax + 0x10], 8
mov dword [rax + 0x18], r14d
mov dword [rax + 0x1c], 0x32ffffff
mov qword [rax + 0x20], r14
mov qword [rax + 0x28], r14
mov qword [rax + 0x30], r14
mov byte [rax + 0x38], 0
mov qword [rax + 0x48], 0xffffffffffffffff
mov qword [rax + 0x40], 0xffffffffffffffff
mov byte [rax + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rax + 0x51], xmm0
movups xmmword [rax + 0x61], xmm0
xorps xmm1, xmm1
movups xmmword [rax + 0x71], xmm1
movups xmmword [rax + 0x81], xmm1
mov qword [rax + 0x98], 0xffffffffffffffff
mov qword [rax + 0xa8], 0xffffffffffffffff
mov qword [rax + 0xa0], 0xffffffffffffffff
mov dword [rax + 0xb0], r14d
mov dword [rax + 0xb4], 4
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rax + 0xe0], r14
mov qword [rax + 0xe8], r14
mov qword [rax + 0xf0], r14
mov byte [rax + 0xf8], 1
lea rcx, [rsp + 0x40]
call fcn.140005920
lea rax, [0x140004d20]
mov qword [rbx + 0x20], rax
lea rax, [0x140004d70]
mov qword [rbx + 0x28], rax
mov qword [0x14009a9e0], rbx
mov ecx, 1
call fcn.14007b24c
mov qword [0x14009a9c0], rax
mov ecx, 1
call fcn.14007b24c
mov qword [0x14009a9d0], rax
mov ecx, 0x10000
call fcn.14007b24c
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x140067df6
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140067df1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140067df1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b5a0
xor eax, eax
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14007af90
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret