Function at 0x140037ec0
Capabilities:
Check for time delay via queryperformancecounter
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rsi, qword [0x14008eb08]
lea r8, str._unknown_reason_
mov rdi, rcx
mov edx, 0x1f4
lea rcx, [rbp + 0x1b0]
call fcn.1400031a0
mov r9, rsi
lea r8, str._s_derived
mov edx, 0x200
lea rcx, [rbp - 0x50]
call fcn.1400031a0
lea rdx, [rbp - 0x50]
mov byte [rbp + 0x1af], 0
lea rcx, [rbp - 0x68]
call fcn.140026540
cmp qword [rdi + 0x108], 0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp - 0x70], xmm0
je 0x140038048
mov rbx, qword [rdi + 0x108]
lea rcx, [rbp - 0x80]
mov rdx, rbx
call fcn.140026540
movsd xmm0, qword [rax + 0x10]
movups xmm1, xmmword [rax]
movsd qword [rsp + 0x40], xmm0
movd eax, xmm1
test al, 1
je 0x14003839e
psrldq xmm1, 8
movq r15, xmm1
inc r15
mov rcx, r15
call fcn.140053cb4
mov r14, rax
test rax, rax
je 0x14003842b
lea rdx, [0x1400802bc]
mov rcx, rbx
call fcn.1400147a0
mov r12, rax
test rax, rax
jne 0x140037fce
mov r8, rbx
lea rdx, str.couldnt_open__s_for_reading
lea ecx, [rax + 1]
call fcn.140013a20
jmp 0x1400383b2
lea r8, [r15 - 1]
mov r9, r12
mov edx, 1
mov rcx, r14
call fcn.140053bec
lea rcx, [r15 - 1]
mov r13, rax
cmp rcx, rax
mov rcx, r12
je 0x14003801f
call fcn.140052714
mov rcx, r14
call fcn.140053948
mov r9d, r13d
mov dword [rsp + 0x20], r15d
mov r8, rbx
lea rdx, str.couldnt_read_JSON_data___d_bytes_read_out_of__d_
mov ecx, 1
call fcn.140013a20
jmp 0x1400383b2
call fcn.140052714
mov rdx, rsi
mov byte [r14 + r15 - 1], 0
mov rcx, r14
call fcn.14001cea0
mov rcx, r14
movzx ebx, al
call fcn.140053948
test bl, bl
je 0x1400383b2
xor r15d, r15d
lea rcx, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
call fcn.140038bd0
mov rbx, qword [rsp + 0x50]
lea ecx, [r15 + 8]
mov r8, rsi
test rbx, rbx
je 0x14003830a
mov r14, qword [rsp + 0x58]
lea rdx, str._s:_successfully_mapped_at__p___d_bytes_
mov r9, rbx
mov dword [rsp + 0x20], r14d
call fcn.140013a20
cmp r14, 0x94
jae 0x1400380c6
mov r9d, r14d
mov dword [rsp + 0x20], 0x94
mov r8, rsi
lea rdx, str._s:_Bad_mmap_size__d___need_at_least__d_bytes
lea ecx, [r15 + 2]
call fcn.140013a20
jmp 0x140038316
cmp dword [rbx], 0x51b20356
je 0x1400380f2
mov r9d, dword [rbx]
lea rdx, str._s:_Bad_magic_number__08x___current_is__08x
mov r8, rsi
mov dword [rsp + 0x20], 0x51b20356
mov ecx, 8
call fcn.140013a20
jmp 0x140038316
cmp dword [rbx + 0x90], 0x51b20356
je 0x140038112
mov r8, rsi
lea rdx, str.Did_not_find_expected_magic_number_marker_at_the_end_of__s._This_most_likely_means_data_writing_code_for_that_file_is_writing_too_much_or_too_little_data
mov ecx, 1
jmp 0x140038311
movups xmm0, xmmword [rsp + 0x50]
mov qword [rdi + 0xb8], rbx
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rdi + 0x38], xmm0
movups xmmword [rdi + 0x48], xmm1
cmp qword [rdi + 0x108], r15
je 0x140038147
mov rdx, rdi
mov rcx, rbx
call fcn.14001e3e0
test al, al
jne 0x140038438
mov eax, dword [rsp + 0x70]
test al, 1
je 0x140038158
cmp qword [rdi + 0x108], r15
je 0x140038183
mov rcx, qword [rdi + 0xb8]
lea rax, [rbp - 0x50]
lea r9, [rdi + 0x1e8]
mov qword [rsp + 0x20], rax
lea r8, [rdi + 8]
mov rdx, rdi
call fcn.140017e90
test al, al
je 0x14003845d
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
call fcn.140038bd0
mov rbx, qword [rsp + 0x30]
lea r8, [rbp - 0x50]
mov ecx, 8
test rbx, rbx
je 0x14003827b
mov r14, qword [rsp + 0x38]
lea rdx, str._s:_successfully_mapped_at__p___d_bytes_
mov r9, rbx
mov dword [rsp + 0x20], r14d
call fcn.140013a20
cmp r14, 0x54
jae 0x140038200
mov r9d, r14d
mov dword [rsp + 0x20], 0x54
lea r8, [rbp - 0x50]
mov ecx, 2
lea rdx, str._s:_Bad_mmap_size__d___need_at_least__d_bytes
call fcn.140013a20
jmp 0x140038287
cmp dword [rbx], 0xea0af3b6
je 0x14003822a
mov r9d, dword [rbx]
lea r8, [rbp - 0x50]
lea rdx, str._s:_Bad_magic_number__08x___current_is__08x
mov dword [rsp + 0x20], 0xea0af3b6
mov ecx, 8
call fcn.140013a20
jmp 0x140038287
cmp dword [rbx + 0x50], 0xea0af3b6
je 0x140038245
lea r8, [rbp - 0x50]
mov ecx, 1
lea rdx, str.Did_not_find_expected_magic_number_marker_at_the_end_of__s._This_most_likely_means_data_writing_code_for_that_file_is_writing_too_much_or_too_little_data
jmp 0x140038282
movups xmm0, xmmword [rsp + 0x30]
mov qword [rdi + 0xc0], rbx
mov al, 1
movups xmm1, xmmword [rsp + 0x40]
mov rbx, qword [rsp + 0x500]
movups xmmword [rdi + 0x58], xmm0
movups xmmword [rdi + 0x68], xmm1
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str._s:_mmap_failed
call fcn.140013a20
lea rcx, [rbp + 0x3f8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003846e
mov rax, qword [rbp + 0x3f8]
xor edx, edx
sub rax, qword [0x14008eac8]
imul rax, rax, 0xf4240
div qword [0x14008eac0]
mov rdi, rax
add rdi, qword [0x14008ead0]
test rbx, rbx
je 0x1400382f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x14003847b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400383c6
jmp 0x140038488
lea rdx, str._s:_mmap_failed
call fcn.140013a20
lea rcx, [rbp + 0x3f8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400384e0
mov rax, qword [rbp + 0x3f8]
xor edx, edx
sub rax, qword [0x14008eac8]
imul rax, rax, 0xf4240
div qword [0x14008eac0]
mov rdi, rax
add rdi, qword [0x14008ead0]
test rbx, rbx
je 0x140038380
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1400384ed
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1400383d3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.1400139a0
int3
mov r8, rbx
lea rdx, str.build_script_didnt_generate__s
mov ecx, 1
call fcn.140013a20
mov rdx, qword [rdi + 0x108]
lea rcx, str._s_failed_to_freeze
call fcn.140037e60
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.1400139a0
int3
mov rax, qword [rbp + 0x3f0]
xor edx, edx
sub rax, qword [0x14008eac8]
imul rax, rax, 0xf4240
div qword [0x14008eac0]
sub rax, rdi
add rax, qword [0x14008ead0]
lock inc dword [0x14008e7b0]
lock add qword [0x14008e7b8], rax
mov rcx, rsi
call fcn.140014580
lea rcx, [rbp - 0x50]
call fcn.140014580
mov rdx, rsi
lea rcx, str._s_couldnt_be_loaded
call fcn.140037e60
int3
lea rcx, str.couldnt_allocate_memory_for_JSON_buffer
call fcn.140013920
int3
lea rcx, [rdi + 0x38]
call fcn.140038e20
mov rcx, rsi
call fcn.140014580
lea rcx, [rbp - 0x50]
call fcn.140014580
mov ecx, 3
call fcn.140052f24
int3
lea rdx, [rbp - 0x50]
lea rcx, str.failed_to_create_derived_dag_file__s
call fcn.140037e60
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.1400139a0
int3
lea rcx, str.UnMapViewOfFile___failed
call fcn.1400139a0
int3
mov rax, qword [rbp + 0x3f0]
xor edx, edx
sub rax, qword [0x14008eac8]
imul rax, rax, 0xf4240
div qword [0x14008eac0]
sub rax, rdi
add rax, qword [0x14008ead0]
lock inc dword [0x14008e7b0]
lock add qword [0x14008e7b8], rax
mov rcx, rsi
call fcn.140014580
lea rcx, [rbp - 0x50]
call fcn.140014580
mov rdx, rsi
lea rcx, str._s_couldnt_be_loaded
call fcn.140037e60
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.1400139a0
int3
lea rcx, str.UnMapViewOfFile___failed
call fcn.1400139a0
int3