Function at 0x14004acf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r15
sub rsp, 0x68
mov r15, rdx
mov r13, rcx
mov rcx, r15
lea rdx, [0x1400949b8]
movzx r12d, r8b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x14004ad49
call fcn.140040c50
mov rcx, rax
lea r8, str.Failed_to_open_config_file__s.
mov r9, r15
xor edx, edx
call fcn.140045c00
xor al, al
add rsp, 0x68
pop r15
pop r13
pop r12
pop rdi
ret
mov qword [rsp + 0x60], rbp
xor edx, edx
mov qword [rsp + 0x58], rsi
mov rcx, rdi
mov esi, 2
mov r8d, esi
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 0x14004adad
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, r15
xor edx, edx
call fcn.140045c00
xor al, al
jmp 0x14004b1f0
cmp rbp, 0x10
ja 0x14004addc
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, r15
xor edx, edx
call fcn.140045c00
xor al, al
jmp 0x14004b1f0
mov qword [rsp + 0x90], 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 0x14004ae45
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, r15
xor edx, edx
call fcn.140045c00
jmp 0x14004b1e1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp byte [r14], 0xef
jne 0x14004ae6a
cmp byte [rbx + 2], 0xbb
jne 0x14004ae6a
cmp byte [rbx + 3], 0xbf
jne 0x14004ae6a
mov byte [r14], 0x20
mov word [rbx + 2], 0x2020
mov byte [rbx], 0x7b
mov word [rbx + rbp], 0x7d
mov r15, qword [r13 + 0x10]
test r12b, r12b
jne 0x14004ae80
add r15, 0x60
lea rax, [rbp + 2]
mov qword [rsp + 0x30], rbx
lea rcx, [rax + rbx]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x40], rcx
cmp rbx, rcx
je 0x14004aee1
cmp byte [rbx], 0xef
mov rax, rbx
cmove rax, r14
mov qword [rsp + 0x30], rax
cmp rax, rcx
je 0x14004aee1
cmp byte [rax], 0xbb
jne 0x14004aecf
inc rax
mov qword [rsp + 0x30], rax
cmp rax, rcx
je 0x14004aee1
cmp byte [rax], 0xbf
jne 0x14004aee1
inc rax
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0xa8]
mov rcx, r15
call fcn.1400488f0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movsxd rax, dword [r15 + 0x50]
test eax, eax
je 0x14004b008
cmp eax, 0x11
ja case.default.0x14004af20
lea rdi, [0x140000000]
mov eax, dword [rdi + rax*4 + 0x4b208]
add rax, rdi
jmp rax
lea rdi, str.No_error.
jmp 0x14004afd7
lea rdi, str.The_document_is_empty.
jmp 0x14004afd7
lea rdi, str.The_document_root_must_not_be_followed_by_other_values.
jmp 0x14004afd7
lea rdi, str.Invalid_value.
jmp 0x14004afd7
lea rdi, str.Missing_a_name_for_object_member.
jmp 0x14004afd7
lea rdi, str.Missing_a_colon_after_a_name_of_object_member.
jmp 0x14004afd7
lea rdi, str.Missing_a_comma_or__after_an_object_member.
jmp 0x14004afd7
lea rdi, str.Missing_a_comma_or___after_an_array_element.
jmp 0x14004afd7
lea rdi, str.Incorrect_hex_digit_after_u_escape_in_string.
jmp 0x14004afd7
lea rdi, str.The_surrogate_pair_in_string_is_invalid.
jmp 0x14004afd7
lea rdi, str.Invalid_escape_character_in_string.
jmp 0x14004afd7
lea rdi, str.Missing_a_closing_quotation_mark_in_string.
jmp 0x14004afd7
lea rdi, str.Invalid_encoding_in_string.
jmp 0x14004afd7
lea rdi, str.Number_too_big_to_be_stored_in_double.
jmp 0x14004afd7
lea rdi, str.Miss_fraction_part_in_number.
jmp 0x14004afd7
lea rdi, str.Miss_exponent_in_number.
jmp 0x14004afd7
lea rdi, str.Terminate_parsing_due_to_Handler_error.
jmp 0x14004afd7
lea rdi, str.Unspecific_syntax_error.
jmp 0x14004afd7
lea rdi, str.Unknown_error.
mov rbx, qword [r15 + 0x58]
call fcn.140040c50
mov r9, qword [rsp + 0x98]
lea r8, str.JSON_config_parse_error_in__s__offset__llu_:__s
mov rcx, rax
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rbx
call fcn.140045c00
jmp 0x14004b1e1
cmp word [r15 + 0xe], 3
je 0x14004b033
call fcn.140040c50
mov r9, qword [rsp + 0x98]
lea r8, str.Invalid_config_file__s._No_root_
mov rcx, rax
xor edx, edx
call fcn.140045c00
jmp 0x14004b1e1
mov edi, 0xd0
test r12b, r12b
je 0x14004b134
lea rbx, str.tls_secure_algo
nop dword [rax + rax]
movsxd rax, dword [rbx - 8]
cmp rax, rsi
jne 0x14004b1cb
mov rdx, qword [rbx]
mov rcx, r15
call fcn.140049be0
mov rcx, qword [r13 + 0x10]
mov qword [rdi + rcx], rax
mov rax, qword [r13 + 0x10]
mov rdx, qword [rdi + rax]
test rdx, rdx
je 0x14004b0f9
movzx eax, word [rdx + 0xe]
mov ecx, dword [rbx + 8]
and eax, 7
cmp ecx, eax
je 0x14004b0a3
test ecx, ecx
je 0x14004b0a3
cmp ecx, 2
jne 0x14004b099
cmp eax, 1
jmp 0x14004b0a1
cmp ecx, 1
jne 0x14004b0be
cmp eax, 2
jne 0x14004b0be
inc rsi
add rdi, 8
add rbx, 0x18
cmp rdi, 0x148
jb 0x14004b050
mov al, 1
jmp 0x14004b1e3
lea rbx, [rsi + rsi*2]
lea rdi, [0x140000000]
call fcn.140040c50
lea r8, str.Invalid_config_file__s._Value___s__has_unexpected_type.
mov r9, qword [rsp + 0x98]
mov rcx, rax
mov rax, qword [rdi + rbx*8 + 0xb5008]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140045c00
jmp 0x14004b1e1
lea rbx, [rsi + rsi*2]
lea rdi, [0x140000000]
call fcn.140040c50
mov r9, qword [rsp + 0x98]
lea r8, str.Invalid_config_file__s._Missing_value___s_.
mov rcx, rax
xor edx, edx
mov rax, qword [rdi + rbx*8 + 0xb5008]
mov qword [rsp + 0x20], rax
call fcn.140045c00
jmp 0x14004b1e1
xor r14d, r14d
lea rbx, str._:_t_
mov esi, 0xc0
movsxd rax, dword [rbx - 8]
cmp rax, r14
jne 0x14004b1cb
mov rdx, qword [rbx]
mov rcx, r15
call fcn.140049be0
mov rcx, qword [r13 + 0x10]
mov qword [rsi + rcx], rax
mov rax, qword [r13 + 0x10]
mov rdx, qword [rsi + rax]
test rdx, rdx
je 0x14004b1af
movzx eax, word [rdx + 0xe]
mov ecx, dword [rbx + 8]
and eax, 7
cmp ecx, eax
je 0x14004b192
test ecx, ecx
je 0x14004b192
cmp ecx, 2
jne 0x14004b188
cmp eax, 1
jmp 0x14004b190
cmp ecx, 1
jne 0x14004b1a6
cmp eax, 2
jne 0x14004b1a6
inc r14
add rsi, 8
add rbx, 0x18
cmp rsi, rdi
jb 0x14004b143
mov al, 1
jmp 0x14004b1e3
lea rbx, [r14 + r14*2]
jmp 0x14004b0c2
lea rbx, [r14 + r14*2]
lea rdi, [0x140000000]
call fcn.140040c50
lea r8, str.Invalid_config_file__s._Missing_value___s_.
jmp 0x14004b0d5
call fcn.140040c50
lea r8, str.Code_error._oConfigValues_are_not_in_order.
xor edx, edx
mov rcx, rax
call fcn.140045c00
xor al, al
mov rbx, qword [rsp + 0x90]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
add rsp, 0x68
pop r15
pop r13
pop r12
pop rdi
ret