Function at 0x180020e70
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x330], rbx
mov rax, qword [0x180089208]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r14, rdx
mov r15, rcx
movdqa xmm0, xmmword [0x180071c80]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov r8d, 0x12
lea rdx, str.Failed_to_get_path
lea rcx, [rsp + 0x40]
call fcn.180015810
nop
mov r8d, 0x104
lea rdx, [rbp + 0xc0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1800210ba
movdqa xmm0, xmmword [0x180071c80]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
lea rax, [rbp + 0xc0]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop
inc r8
cmp byte [rax + r8], 0
jne 0x180020f20
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x60]
call fcn.180015810
nop
lea rsi, [rsp + 0x60]
mov rbx, qword [rsp + 0x60]
mov r13, qword [rsp + 0x78]
cmp r13, 0x10
cmovae rsi, rbx
mov r12, qword [rsp + 0x70]
test r12, r12
je 0x180021080
xor edx, edx
lea r8d, [rdx + 0x5c]
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0xa3
lea rcx, [rbp + 0x1d]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + 0x1c], 1
lea rax, [r12 - 1]
mov r8, rdi
cmp rax, rdi
cmovb r8, rax
add r8, rsi
movzx eax, byte [r8]
cmp byte [rbp + rax - 0x40], 0
jne 0x180020fb9
cmp r8, rsi
je 0x180021080
dec r8
movzx eax, byte [r8]
cmp byte [rbp + rax - 0x40], 0
je 0x180020fa2
sub r8, rsi
cmp r8, 0xffffffffffffffff
je 0x180021080
movdqa xmm0, xmmword [0x180071c80]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
inc r8
cmp r12, r8
cmovb r8, r12
lea rdx, [rsp + 0x60]
cmp r13, 0x10
cmovae rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.180015810
lea rcx, [rsp + 0x40]
call fcn.18000aa70
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [rsp + 0x50], xmm1
inc rdi
cmp byte [r14 + rdi], 0
jne 0x180021013
mov rax, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
sub rax, rcx
cmp rdi, rax
ja 0x18002105e
lea rax, [rdi + rcx]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x180021076
mov qword [rsp + 0x20], rdi
mov r9, r14
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.180005e50
mov rbx, qword [rsp + 0x60]
mov r13, qword [rsp + 0x78]
cmp r13, 0x10
jb 0x1800210ba
lea rdx, [r13 + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1800210b2
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800210b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.18005061c
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
lea rdx, [0x180057130]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x18002110f
lea rbx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rbx, qword [rsp + 0x40]
call fcn.180018340
mov rcx, rax
mov r9, rbx
lea r8, str.Failed_to_open_config_file__s.
xor edx, edx
call fcn.180029410
jmp 0x18002157b
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 0x180021174
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rbx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rbx, qword [rsp + 0x40]
call fcn.180018340
mov rcx, rax
mov r9, rbx
lea r8, str.Oversized_config_file____s.
xor edx, edx
call fcn.180029410
jmp 0x18002157b
cmp rsi, 0x10
ja 0x1800211a9
lea rbx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rbx, qword [rsp + 0x40]
call fcn.180018340
mov rcx, rax
mov r9, rbx
lea r8, str.File_is_empty_or_too_short____s.
xor edx, edx
call fcn.180029410
jmp 0x18002157b
lea rcx, [rsi + 3]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
lea r14, [rax + 1]
mov r9, rdi
mov r8d, 1
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
je 0x180021216
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]
lea rbx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rbx, qword [rsp + 0x40]
call fcn.180018340
mov rcx, rax
mov r9, rbx
lea r8, str.Read_error_while_reading__s.
xor edx, edx
call fcn.180029410
jmp 0x18002157b
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp byte [r14], 0xef
jne 0x18002123b
cmp byte [rbx + 2], 0xbb
jne 0x18002123b
cmp byte [rbx + 3], 0xbf
jne 0x18002123b
mov byte [r14], 0x20
mov word [rbx + 2], 0x2020
mov byte [rbx], 0x7b
mov word [rbx + rsi], 0x7d
lea rax, [rsi + 2]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
lea rdx, [rax + rbx]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
cmp rbx, rdx
je 0x1800212a2
mov rax, rbx
cmp byte [rbx], 0xef
cmove rax, r14
mov qword [rsp + 0x60], rax
cmp rax, rdx
je 0x1800212a2
cmp byte [rax], 0xbb
jne 0x180021290
inc rax
mov qword [rsp + 0x60], rax
cmp rax, rdx
je 0x1800212a2
cmp byte [rax], 0xbf
jne 0x1800212a2
inc rax
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [r15]
call fcn.18001fa40
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [r15]
movsxd rax, dword [r8 + 0x50]
test eax, eax
je 0x1800213d8
cmp eax, 0x11
ja case.default.0x1800212e1
lea rsi, [0x180000000]
mov eax, dword [rsi + rax*4 + 0x215ec]
add rax, rsi
jmp rax
lea rsi, str.No_error.
jmp 0x18002139b
lea rsi, str.The_document_is_empty.
jmp 0x18002139b
lea rsi, str.The_document_root_must_not_be_followed_by_other_values.
jmp 0x18002139b
lea rsi, str.Invalid_value.
jmp 0x18002139b
lea rsi, str.Missing_a_name_for_object_member.
jmp 0x18002139b
lea rsi, str.Missing_a_colon_after_a_name_of_object_member.
jmp 0x18002139b
lea rsi, str.Missing_a_comma_or__after_an_object_member.
jmp 0x18002139b
lea rsi, str.Missing_a_comma_or___after_an_array_element.
jmp 0x18002139b
lea rsi, str.Incorrect_hex_digit_after_u_escape_in_string.
jmp 0x18002139b
lea rsi, str.The_surrogate_pair_in_string_is_invalid.
jmp 0x18002139b
lea rsi, str.Invalid_escape_character_in_string.
jmp 0x18002139b
lea rsi, str.Missing_a_closing_quotation_mark_in_string.
jmp 0x18002139b
lea rsi, str.Invalid_encoding_in_string.
jmp 0x18002139b
lea rsi, str.Number_too_big_to_be_stored_in_double.
jmp 0x18002139b
lea rsi, str.Miss_fraction_part_in_number.
jmp 0x18002139b
lea rsi, str.Miss_exponent_in_number.
jmp 0x18002139b
lea rsi, str.Terminate_parsing_due_to_Handler_error.
jmp 0x18002139b
lea rsi, str.Unspecific_syntax_error.
jmp 0x18002139b
lea rsi, str.Unknown_error.
mov rbx, qword [r8 + 0x58]
lea rdi, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdi, qword [rsp + 0x40]
call fcn.180018340
mov rcx, rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbx
mov r9, rdi
lea r8, str.JSON_config_parse_error_in__s__offset__llu_:__s
xor edx, edx
call fcn.180029410
jmp 0x18002157b
cmp word [r8 + 0xe], 3
je 0x18002140f
lea rbx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rbx, qword [rsp + 0x40]
call fcn.180018340
mov rcx, rax
mov r9, rbx
lea r8, str.Invalid_config_file__s._No_root_
xor edx, edx
call fcn.180029410
jmp 0x18002157b
xor ebx, ebx
mov r14d, ebx
lea esi, [rbx + 0x60]
lea rdi, str.gpu_threads_conf
nop
movsxd rax, dword [rdi - 8]
cmp rax, r14
jne 0x180021565
mov rdx, qword [rdi]
mov rcx, r8
call fcn.180020900
mov rcx, qword [r15]
mov qword [rsi + rcx], rax
mov r8, qword [r15]
mov rax, qword [r8 + rsi]
test rax, rax
je 0x180021521
mov ecx, dword [rdi + 8]
movzx eax, word [rax + 0xe]
and eax, 7
cmp ecx, eax
je 0x180021475
test ecx, ecx
je 0x180021475
cmp ecx, 2
jne 0x18002146b
cmp eax, 1
jmp 0x180021473
cmp ecx, 1
jne 0x1800214c2
cmp eax, 2
jne 0x1800214c2
inc r14
add rsi, 8
add rdi, 0x18
cmp rsi, 0x70
jb 0x180021420
mov rax, qword [r8 + 0x60]
mov edi, dword [rax]
mov dword [rbp - 0x5c], 0x28
test rdi, rdi
je 0x1800214bb
nop dword [rax + rax]
lea r8, [rbp - 0x80]
mov rdx, rbx
mov rcx, r15
call fcn.180020960
test al, al
je 0x180021506
inc rbx
cmp rbx, rdi
jb 0x1800214a0
mov bl, 1
jmp 0x18002157d
lea rdi, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdi, qword [rsp + 0x40]
lea rbx, [r14 + r14*2]
lea rsi, [0x180000000]
call fcn.180018340
mov rcx, rax
mov rax, qword [rsi + rbx*8 + 0x89008]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, str.Invalid_config_file__s._Value___s__has_unexpected_type.
xor edx, edx
call fcn.180029410
jmp 0x18002157b
call fcn.180018340
mov rcx, rax
mov r9, rbx
lea r8, str.Thread__llu_has_invalid_config.
xor edx, edx
call fcn.180029410
jmp 0x18002157b
lea rdi, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdi, qword [rsp + 0x40]
lea rbx, [r14 + r14*2]
lea rsi, [0x180000000]
call fcn.180018340
mov rcx, rax
mov rax, qword [rsi + rbx*8 + 0x89008]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, str.Invalid_config_file__s._Missing_value___s_.
xor edx, edx
call fcn.180029410
jmp 0x18002157b
call fcn.180018340
mov rcx, rax
lea r8, str.Code_error._oConfigValues_are_not_in_order.
xor edx, edx
call fcn.180029410
xor bl, bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1800215bd
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800215b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800215b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005061c
movzx eax, bl
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1800507a0
mov rbx, qword [rsp + 0x330]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret