Function at 0x1400bae40
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x1400e71d8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rdx
mov r14, rcx
lea rdx, [0x1400d71c4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x1400baeab
call fcn.14000e5b0
mov rcx, rax
mov r9, rbp
lea r8, str.Failed_to_open_config_file__s.
xor edx, edx
call fcn.140012540
jmp 0x1400bb30f
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
cmp rsi, 0x10000
jb 0x1400baeff
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call fcn.14000e5b0
mov rcx, rax
mov r9, rbp
lea r8, str.Oversized_config_file____s.
xor edx, edx
call fcn.140012540
jmp 0x1400bb30f
cmp rsi, 0x10
ja 0x1400baf2c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call fcn.14000e5b0
mov rcx, rax
mov r9, rbp
lea r8, str.File_is_empty_or_too_short____s.
xor edx, edx
call fcn.140012540
jmp 0x1400bb30f
lea rcx, [rsi + 3]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
lea r15, [rax + 1]
mov r9, rdi
mov r8d, 1
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
je 0x1400baf88
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call fcn.14000e5b0
mov rcx, rax
mov r9, rbp
lea r8, str.Read_error_while_reading__s.
xor edx, edx
call fcn.140012540
jmp 0x1400bb30f
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp byte [r15], 0xef
jne 0x1400bafad
cmp byte [rbx + 2], 0xbb
jne 0x1400bafad
cmp byte [rbx + 3], 0xbf
jne 0x1400bafad
mov byte [r15], 0x20
mov word [rbx + 2], 0x2020
mov byte [rbx], 0x7b
mov word [rbx + rsi], 0x7d
lea rax, [rsi + 2]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
lea rdx, [rax + rbx]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
cmp rbx, rdx
je 0x1400bb014
mov rax, rbx
cmp byte [rbx], 0xef
cmove rax, r15
mov qword [rsp + 0x40], rax
cmp rax, rdx
je 0x1400bb014
cmp byte [rax], 0xbb
jne 0x1400bb002
inc rax
mov qword [rsp + 0x40], rax
cmp rax, rdx
je 0x1400bb014
cmp byte [rax], 0xbf
jne 0x1400bb014
inc rax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [r14]
call fcn.1400152e0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [r14]
movsxd rax, dword [r8 + 0x50]
test eax, eax
je 0x1400bb136
cmp eax, 0x11
ja case.default.0x1400bb053
lea rdi, [0x140000000]
mov eax, dword [rdi + rax*4 + 0xbb338]
add rax, rdi
jmp rax
lea rdi, str.No_error.
jmp 0x1400bb10a
lea rdi, str.The_document_is_empty.
jmp 0x1400bb10a
lea rdi, str.The_document_root_must_not_be_followed_by_other_values.
jmp 0x1400bb10a
lea rdi, str.Invalid_value.
jmp 0x1400bb10a
lea rdi, str.Missing_a_name_for_object_member.
jmp 0x1400bb10a
lea rdi, str.Missing_a_colon_after_a_name_of_object_member.
jmp 0x1400bb10a
lea rdi, str.Missing_a_comma_or__after_an_object_member.
jmp 0x1400bb10a
lea rdi, str.Missing_a_comma_or___after_an_array_element.
jmp 0x1400bb10a
lea rdi, str.Incorrect_hex_digit_after_u_escape_in_string.
jmp 0x1400bb10a
lea rdi, str.The_surrogate_pair_in_string_is_invalid.
jmp 0x1400bb10a
lea rdi, str.Invalid_escape_character_in_string.
jmp 0x1400bb10a
lea rdi, str.Missing_a_closing_quotation_mark_in_string.
jmp 0x1400bb10a
lea rdi, str.Invalid_encoding_in_string.
jmp 0x1400bb10a
lea rdi, str.Number_too_big_to_be_stored_in_double.
jmp 0x1400bb10a
lea rdi, str.Miss_fraction_part_in_number.
jmp 0x1400bb10a
lea rdi, str.Miss_exponent_in_number.
jmp 0x1400bb10a
lea rdi, str.Terminate_parsing_due_to_Handler_error.
jmp 0x1400bb10a
lea rdi, str.Unspecific_syntax_error.
jmp 0x1400bb10a
lea rdi, str.Unknown_error.
mov rbx, qword [r8 + 0x58]
call fcn.14000e5b0
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
mov r9, rbp
lea r8, str.JSON_config_parse_error_in__s__offset__llu_:__s
xor edx, edx
call fcn.140012540
jmp 0x1400bb30f
cmp word [r8 + 0xe], 3
je 0x1400bb15c
call fcn.14000e5b0
mov rcx, rax
mov r9, rbp
lea r8, str.Invalid_config_file__s._No_root_
xor edx, edx
call fcn.140012540
jmp 0x1400bb30f
xor ebx, ebx
mov r15d, ebx
lea esi, [rbx + 0x60]
lea rdi, str.hn_r_
nop dword [rax + rax]
movsxd rax, dword [rdi - 8]
cmp rax, r15
jne 0x1400bb2f9
mov rdx, qword [rdi]
mov rcx, r8
call fcn.140016650
mov rcx, qword [r14]
mov qword [rsi + rcx], rax
mov r8, qword [r14]
mov rax, qword [r8 + rsi]
test rax, rax
je 0x1400bb2c6
mov ecx, dword [rdi + 8]
movzx eax, word [rax + 0xe]
and eax, 7
cmp ecx, eax
je 0x1400bb1cd
test ecx, ecx
je 0x1400bb1cd
cmp ecx, 2
jne 0x1400bb1bb
cmp eax, 1
jmp 0x1400bb1c7
cmp ecx, 1
jne 0x1400bb269
cmp eax, 2
jne 0x1400bb269
inc r15
add rsi, 8
add rdi, 0x18
cmp rsi, 0x68
jb 0x1400bb170
movdqa xmm0, xmmword [0x1400ccdf0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], bl
mov rcx, r14
call fcn.1400bae20
test rax, rax
je 0x1400bb228
nop dword [rax]
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, r14
call fcn.1400babf0
test al, al
je 0x1400bb29c
inc rbx
mov rcx, r14
call fcn.1400bae20
cmp rbx, rax
jb 0x1400bb200
mov bl, 1
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400bb2c1
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bb2bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bb2bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rbx, [r15 + r15*2]
lea rdi, [0x140000000]
call fcn.14000e5b0
mov rcx, rax
mov rax, qword [rdi + rbx*8 + 0xe71b0]
mov qword [rsp + 0x20], rax
mov r9, rbp
lea r8, str.Invalid_config_file__s._Value___s__has_unexpected_type.
xor edx, edx
call fcn.140012540
jmp 0x1400bb30f
call fcn.14000e5b0
mov rcx, rax
mov r9, rbx
lea r8, str.Thread__llu_has_invalid_config.
xor edx, edx
call fcn.140012540
xor bl, bl
jmp 0x1400bb22a
call fcn.1400bc0ec
movzx eax, bl
jmp 0x1400bb311
lea rbx, [r15 + r15*2]
lea rdi, [0x140000000]
call fcn.14000e5b0
mov rcx, rax
mov rax, qword [rdi + rbx*8 + 0xe71b0]
mov qword [rsp + 0x20], rax
mov r9, rbp
lea r8, str.Invalid_config_file__s._Missing_value___s_.
xor edx, edx
call fcn.140012540
jmp 0x1400bb30f
call fcn.14000e5b0
mov rcx, rax
lea r8, str.Code_error._oConfigValues_are_not_in_order.
xor edx, edx
call fcn.140012540
xor al, al
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400bc560
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret