Function at 0x14004b510
Capabilities:
Check if file exists
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x1400df080]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, qword [0x1400dfff0]
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x29], xmm1
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.Font_bold.ttf
lea rcx, [rbp - 0x39]
call fcn.14004db80
nop
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x27]
call fcn.14004b3b0
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x14004b5a9
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004b5a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004b5a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b4bd0
movdqa xmm0, xmmword [0x1400ce190]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
lea rcx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0xf
cmova rcx, qword [rbp + 0x27]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14004b5fa
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.File_Not_Found
lea rdx, str.Font_file_not_found._The_application_will_now_exit.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0xf
cmova rdx, qword [rbp + 0x27]
movss xmm2, dword [0x1400ce0c4]
mov rcx, qword [rbx + 0x58]
call fcn.140036970
mov qword [0x1400e0040], rax
test rax, rax
jne 0x14004b660
lea rdx, str.Failed_to_load_font:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14004d710
mov rcx, rax
lea rdx, [rbp + 0x27]
call fcn.14004d8f0
lea rdx, [0x14004d910]
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 ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.Font_bold.ttf
lea rcx, [rbp - 0x19]
call fcn.14004db80
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.14004b3b0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x14004b6d2
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004b6cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004b6cd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b4bd0
movdqa xmm0, xmmword [0x1400ce190]
movdqu xmmword [rbp - 9], xmm0
mov byte [rbp - 0x19], 0
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova rcx, qword [rbp + 7]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14004b723
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.File_Not_Found
lea rdx, str.Small_font_file_not_found._The_application_will_now_exit.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova rdx, qword [rbp + 7]
movss xmm2, dword [0x1400ce0bc]
mov rcx, qword [rbx + 0x58]
call fcn.140036970
mov qword [0x1400e0058], rax
test rax, rax
jne 0x14004b789
lea rdx, str.Failed_to_load_font:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14004d710
mov rcx, rax
lea rdx, [rbp + 7]
call fcn.14004d8f0
lea rdx, [0x14004d910]
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 ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x14004b7c7
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004b7c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004b7c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b4bd0
movdqa xmm0, xmmword [0x1400ce190]
movdqu xmmword [rbp + 0x17], xmm0
mov byte [rbp + 7], 0
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0xf
jbe 0x14004b816
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004b811
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004b811
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b4bd0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400b44e0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rbp
ret