Function at 0x140078ac0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push r15
sub rsp, 0x50
mov rbp, rdx
mov r15, rcx
mov rcx, rbp
lea rdx, [0x1400949b8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x140078b0b
call fcn.140040c50
mov rcx, rax
lea r8, str.Failed_to_open_config_file__s.
mov r9, rbp
xor edx, edx
call fcn.140045c00
xor al, al
add rsp, 0x50
pop r15
pop rdi
pop rbp
ret
xor edx, edx
mov qword [rsp + 0x78], rsi
mov rcx, rdi
lea r8d, [rdx + 2]
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]
mov rcx, rdi
movsxd rsi, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
cmp rsi, 0x10000
jb 0x140078b6f
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call fcn.140040c50
mov rcx, rax
lea r8, str.Oversized_config_file____s.
mov r9, rbp
xor edx, edx
call fcn.140045c00
mov rsi, qword [rsp + 0x78]
xor al, al
add rsp, 0x50
pop r15
pop rdi
pop rbp
ret
cmp rsi, 0x10
ja 0x140078ba7
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call fcn.140040c50
mov rcx, rax
lea r8, str.File_is_empty_or_too_short____s.
mov r9, rbp
xor edx, edx
call fcn.140045c00
mov rsi, qword [rsp + 0x78]
xor al, al
add rsp, 0x50
pop r15
pop rdi
pop rbp
ret
mov qword [rsp + 0x70], rbx
lea rcx, [rsi + 3]
mov qword [rsp + 0x88], r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rdi
mov r8d, 1
mov rdx, rsi
mov rbx, rax
lea r14, [rax + 1]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
je 0x140078c10
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.140040c50
mov rcx, rax
lea r8, str.Read_error_while_reading__s.
mov r9, rbp
xor edx, edx
call fcn.140045c00
jmp 0x140078fc6
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp byte [r14], 0xef
jne 0x140078c35
cmp byte [rbx + 2], 0xbb
jne 0x140078c35
cmp byte [rbx + 3], 0xbf
jne 0x140078c35
mov byte [r14], 0x20
mov word [rbx + 2], 0x2020
lea rax, [rsi + 2]
mov byte [rbx], 0x7b
lea rdx, [rax + rbx]
mov qword [rsp + 0x48], rax
mov word [rbx + rsi], 0x7d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdx
cmp rbx, rdx
je 0x140078c9f
cmp byte [rbx], 0xef
mov rax, rbx
cmove rax, r14
mov qword [rsp + 0x30], rax
cmp rax, rdx
je 0x140078c9f
cmp byte [rax], 0xbb
jne 0x140078c8d
inc rax
mov qword [rsp + 0x30], rax
cmp rax, rdx
je 0x140078c9f
cmp byte [rax], 0xbf
jne 0x140078c9f
inc rax
mov qword [rsp + 0x30], rax
mov rcx, qword [r15]
lea rdx, [rsp + 0x80]
call fcn.1400488f0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [r15]
movsxd rax, dword [rcx + 0x50]
test eax, eax
je 0x140078dc4
cmp eax, 0x11
ja case.default.0x140078ce1
lea rdi, [0x140000000]
mov eax, dword [rdi + rax*4 + 0x78fe4]
add rax, rdi
jmp rax
lea rdi, str.No_error.
jmp 0x140078d98
lea rdi, str.The_document_is_empty.
jmp 0x140078d98
lea rdi, str.The_document_root_must_not_be_followed_by_other_values.
jmp 0x140078d98
lea rdi, str.Invalid_value.
jmp 0x140078d98
lea rdi, str.Missing_a_name_for_object_member.
jmp 0x140078d98
lea rdi, str.Missing_a_colon_after_a_name_of_object_member.
jmp 0x140078d98
lea rdi, str.Missing_a_comma_or__after_an_object_member.
jmp 0x140078d98
lea rdi, str.Missing_a_comma_or___after_an_array_element.
jmp 0x140078d98
lea rdi, str.Incorrect_hex_digit_after_u_escape_in_string.
jmp 0x140078d98
lea rdi, str.The_surrogate_pair_in_string_is_invalid.
jmp 0x140078d98
lea rdi, str.Invalid_escape_character_in_string.
jmp 0x140078d98
lea rdi, str.Missing_a_closing_quotation_mark_in_string.
jmp 0x140078d98
lea rdi, str.Invalid_encoding_in_string.
jmp 0x140078d98
lea rdi, str.Number_too_big_to_be_stored_in_double.
jmp 0x140078d98
lea rdi, str.Miss_fraction_part_in_number.
jmp 0x140078d98
lea rdi, str.Miss_exponent_in_number.
jmp 0x140078d98
lea rdi, str.Terminate_parsing_due_to_Handler_error.
jmp 0x140078d98
lea rdi, str.Unspecific_syntax_error.
jmp 0x140078d98
lea rdi, str.Unknown_error.
mov rbx, qword [rcx + 0x58]
call fcn.140040c50
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov r9, rbp
mov qword [rsp + 0x20], rbx
lea r8, str.JSON_config_parse_error_in__s__offset__llu_:__s
xor edx, edx
call fcn.140045c00
jmp 0x140078fc6
cmp word [rcx + 0xe], 3
je 0x140078de9
call fcn.140040c50
mov rcx, rax
lea r8, str.Invalid_config_file__s._No_root_
mov r9, rbp
xor edx, edx
call fcn.140045c00
jmp 0x140078fc6
xor esi, esi
lea rbx, str.cpu_threads_conf
mov r14d, esi
lea edi, [rsi + 0x60]
nop dword [rax + rax]
movsxd rax, dword [rbx - 8]
cmp rax, r14
jne 0x140078fb0
mov rdx, qword [rbx]
mov rcx, qword [r15]
call fcn.140049be0
mov rcx, qword [r15]
mov qword [rdi + rcx], rax
mov rax, qword [r15]
mov rdx, qword [rdi + rax]
test rdx, rdx
je 0x140078f7d
movzx eax, word [rdx + 0xe]
mov ecx, dword [rbx + 8]
and eax, 7
cmp ecx, eax
je 0x140078e5d
test ecx, ecx
je 0x140078e5d
cmp ecx, 2
jne 0x140078e4b
cmp eax, 1
jmp 0x140078e57
cmp ecx, 1
jne 0x140078f2f
cmp eax, 2
jne 0x140078f2f
inc r14
add rdi, 8
add rbx, 0x18
cmp rdi, 0x68
jb 0x140078e00
mov rcx, r15
call fcn.140078aa0
test rax, rax
je 0x140078f28
movabs rbp, 0xffffffffffff
nop dword [rax]
mov rax, qword [r15]
mov rbx, qword [rax + 0x60]
cmp word [rbx + 0xe], 4
jne 0x140078f62
mov eax, dword [rbx]
cmp rsi, rax
jae 0x140078f62
mov rbx, qword [rbx + 8]
and rbx, rbp
mov eax, esi
shl rax, 4
add rbx, rax
cmp word [rbx + 0xe], 3
jne 0x140078f62
lea rdx, str.low_power_mode
mov rcx, rbx
call fcn.140049be0
lea rdx, str.affine_to_cpu
mov rcx, rbx
mov rdi, rax
call fcn.140049be0
test rdi, rdi
je 0x140078f62
test rax, rax
je 0x140078f62
test byte [rdi + 0xe], 0x18
je 0x140078f62
movzx ecx, word [rax + 0xe]
movzx edx, cx
shr dx, 4
test cl, 0x18
je 0x140078f62
test dl, 1
je 0x140078f14
cmp qword [rax], 0
jl 0x140078f62
mov rcx, r15
inc rsi
call fcn.140078aa0
cmp rsi, rax
jb 0x140078e90
mov al, 1
jmp 0x140078fc8
lea rbx, [r14 + r14*2]
lea rdi, [0x140000000]
call fcn.140040c50
mov rcx, rax
lea r8, str.Invalid_config_file__s._Value___s__has_unexpected_type.
mov rax, qword [rdi + rbx*8 + 0xb51b0]
mov r9, rbp
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140045c00
jmp 0x140078fc6
call fcn.140040c50
mov rcx, rax
lea r8, str.Thread__llu_has_invalid_config.
mov r9, rsi
xor edx, edx
call fcn.140045c00
jmp 0x140078fc6
lea rbx, [r14 + r14*2]
lea rdi, [0x140000000]
call fcn.140040c50
mov rcx, rax
lea r8, str.Invalid_config_file__s._Missing_value___s_.
mov rax, qword [rdi + rbx*8 + 0xb51b0]
mov r9, rbp
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140045c00
jmp 0x140078fc6
call fcn.140040c50
mov rcx, rax
lea r8, str.Code_error._oConfigValues_are_not_in_order.
xor edx, edx
call fcn.140045c00
xor al, al
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r15
pop rdi
pop rbp
ret