Function at 0x14007d940
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x60
mov r15, rdx
mov rsi, rcx
mov rcx, r15
lea rdx, [0x140099748]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x14007d98b
call fcn.140042690
mov rcx, rax
lea r8, str.Failed_to_open_config_file__s.
mov r9, r15
xor edx, edx
call fcn.140047680
xor al, al
add rsp, 0x60
pop r15
pop rdi
pop rsi
ret
xor edx, edx
mov qword [rsp + 0x88], rbp
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 rbp, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
cmp rbp, 0x10000
jb 0x14007d9f5
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call fcn.140042690
mov rcx, rax
lea r8, str.Oversized_config_file____s.
mov r9, r15
xor edx, edx
call fcn.140047680
mov rbp, qword [rsp + 0x88]
xor al, al
add rsp, 0x60
pop r15
pop rdi
pop rsi
ret
cmp rbp, 0x10
ja 0x14007da30
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call fcn.140042690
mov rcx, rax
lea r8, str.File_is_empty_or_too_short____s.
mov r9, r15
xor edx, edx
call fcn.140047680
mov rbp, qword [rsp + 0x88]
xor al, al
add rsp, 0x60
pop r15
pop rdi
pop rsi
ret
mov qword [rsp + 0x80], rbx
lea rcx, [rbp + 3]
mov qword [rsp + 0x50], r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rdi
mov r8d, 1
mov rdx, rbp
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 0x14007da9b
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.140042690
mov rcx, rax
lea r8, str.Read_error_while_reading__s.
mov r9, r15
xor edx, edx
call fcn.140047680
xor al, al
jmp 0x14007dea3
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp byte [r14], 0xef
jne 0x14007dac0
cmp byte [rbx + 2], 0xbb
jne 0x14007dac0
cmp byte [rbx + 3], 0xbf
jne 0x14007dac0
mov byte [r14], 0x20
mov word [rbx + 2], 0x2020
lea rax, [rbp + 2]
mov byte [rbx], 0x7b
lea rdx, [rax + rbx]
mov qword [rsp + 0x48], rax
mov word [rbx + rbp], 0x7d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdx
cmp rbx, rdx
je 0x14007db2a
cmp byte [rbx], 0xef
mov rax, rbx
cmove rax, r14
mov qword [rsp + 0x30], rax
cmp rax, rdx
je 0x14007db2a
cmp byte [rax], 0xbb
jne 0x14007db18
inc rax
mov qword [rsp + 0x30], rax
cmp rax, rdx
je 0x14007db2a
cmp byte [rax], 0xbf
jne 0x14007db2a
inc rax
mov qword [rsp + 0x30], rax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x90]
call fcn.14004a5a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [rsi]
movsxd rax, dword [r8 + 0x50]
test eax, eax
je 0x14007dc52
cmp eax, 0x11
ja case.default.0x14007db6d
lea r14, [0x140000000]
mov eax, dword [r14 + rax*4 + 0x7dec4]
add rax, r14
jmp rax
lea rdi, str.No_error.
jmp 0x14007dc24
lea rdi, str.The_document_is_empty.
jmp 0x14007dc24
lea rdi, str.The_document_root_must_not_be_followed_by_other_values.
jmp 0x14007dc24
lea rdi, str.Invalid_value.
jmp 0x14007dc24
lea rdi, str.Missing_a_name_for_object_member.
jmp 0x14007dc24
lea rdi, str.Missing_a_colon_after_a_name_of_object_member.
jmp 0x14007dc24
lea rdi, str.Missing_a_comma_or__after_an_object_member.
jmp 0x14007dc24
lea rdi, str.Missing_a_comma_or___after_an_array_element.
jmp 0x14007dc24
lea rdi, str.Incorrect_hex_digit_after_u_escape_in_string.
jmp 0x14007dc24
lea rdi, str.The_surrogate_pair_in_string_is_invalid.
jmp 0x14007dc24
lea rdi, str.Invalid_escape_character_in_string.
jmp 0x14007dc24
lea rdi, str.Missing_a_closing_quotation_mark_in_string.
jmp 0x14007dc24
lea rdi, str.Invalid_encoding_in_string.
jmp 0x14007dc24
lea rdi, str.Number_too_big_to_be_stored_in_double.
jmp 0x14007dc24
lea rdi, str.Miss_fraction_part_in_number.
jmp 0x14007dc24
lea rdi, str.Miss_exponent_in_number.
jmp 0x14007dc24
lea rdi, str.Terminate_parsing_due_to_Handler_error.
jmp 0x14007dc24
lea rdi, str.Unspecific_syntax_error.
jmp 0x14007dc24
lea rdi, str.Unknown_error.
mov rbx, qword [r8 + 0x58]
call fcn.140042690
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov r9, r15
mov qword [rsp + 0x20], rbx
lea r8, str.JSON_config_parse_error_in__s__offset__llu_:__s
xor edx, edx
call fcn.140047680
xor al, al
jmp 0x14007dea3
cmp word [r8 + 0xe], 3
je 0x14007dc7a
call fcn.140042690
mov rcx, rax
lea r8, str.Invalid_config_file__s._No_root_
mov r9, r15
xor edx, edx
call fcn.140047680
xor al, al
jmp 0x14007dea3
mov qword [rsp + 0x58], r12
lea r14, [0x140000000]
xor r12d, r12d
mov edi, r12d
mov ebp, r12d
lea ebx, [r12 + 0x60]
movsxd rax, dword [r14 + rbp + 0xb81a8]
cmp rax, rdi
jne 0x14007de86
mov rdx, qword [r14 + rbp + 0xb81b0]
mov rcx, r8
call fcn.14004ba30
mov rcx, qword [rsi]
mov qword [rbx + rcx], rax
mov r8, qword [rsi]
mov rax, qword [r8 + rbx]
test rax, rax
je 0x14007de5e
movzx eax, word [rax + 0xe]
mov ecx, dword [r14 + rbp + 0xb81b8]
and eax, 7
cmp ecx, eax
je 0x14007dcff
test ecx, ecx
je 0x14007dcff
cmp ecx, 2
jne 0x14007dced
cmp eax, 1
jmp 0x14007dcf9
cmp ecx, 1
jne 0x14007de17
cmp eax, 2
jne 0x14007de17
inc rdi
add rbx, 8
add rbp, 0x18
cmp rbx, 0x68
jb 0x14007dc94
mov rcx, rsi
mov rdi, r12
call fcn.14007d920
test rax, rax
je 0x14007de10
movabs r14, 0xffffffffffff
nop
mov rax, qword [rsi]
mov rbx, qword [rax + 0x60]
cmp word [rbx + 0xe], 4
jne 0x14007de43
mov eax, dword [rbx]
cmp rdi, rax
jae 0x14007de43
mov rbx, qword [rbx + 8]
and rbx, r14
mov eax, edi
shl rax, 4
add rbx, rax
cmp word [rbx + 0xe], 3
jne 0x14007de43
lea r8, str.low_power_mode
mov rcx, rbx
lea rdx, [rsp + 0x90]
call fcn.14004b520
mov ecx, dword [rbx]
lea r8, str.affine_to_cpu
shl rcx, 5
mov rdx, qword [rax]
mov rax, qword [rbx + 8]
and rax, r14
add rcx, rax
cmp rdx, rcx
lea rbp, [rdx + 0x10]
lea rdx, [rsp + 0x98]
mov rcx, rbx
cmove rbp, r12
call fcn.14004b520
mov ecx, dword [rbx]
shl rcx, 5
mov rdx, qword [rax]
mov rax, qword [rbx + 8]
and rax, r14
add rcx, rax
cmp rdx, rcx
lea r8, [rdx + 0x10]
cmove r8, r12
test rbp, rbp
je 0x14007de43
test r8, r8
je 0x14007de43
test byte [rbp + 0xe], 0x18
je 0x14007de43
movzx eax, word [r8 + 0xe]
movzx ecx, ax
shr cx, 4
test al, 0x18
je 0x14007de43
test cl, 1
je 0x14007ddfc
cmp qword [r8], r12
jl 0x14007de43
mov rcx, rsi
inc rdi
call fcn.14007d920
cmp rdi, rax
jb 0x14007dd30
mov al, 1
jmp 0x14007de9e
lea rbx, [rdi + rdi*2]
call fcn.140042690
mov rcx, rax
lea r8, str.Invalid_config_file__s._Value___s__has_unexpected_type.
mov rax, qword [r14 + rbx*8 + 0xb81b0]
mov r9, r15
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140047680
jmp 0x14007de9c
call fcn.140042690
mov rcx, rax
lea r8, str.Thread__llu_has_invalid_config.
mov r9, rdi
xor edx, edx
call fcn.140047680
jmp 0x14007de9c
call fcn.140042690
mov rcx, rax
lea r8, str.Invalid_config_file__s._Missing_value___s_.
mov rax, qword [r14 + rbp + 0xb81b0]
mov r9, r15
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140047680
jmp 0x14007de9c
call fcn.140042690
mov rcx, rax
lea r8, str.Code_error._oConfigValues_are_not_in_order.
xor edx, edx
call fcn.140047680
xor al, al
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x80]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop r15
pop rdi
pop rsi
ret