Function at 0x140016b30
Capabilities:
Read file on windows
Terminate process

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x140028008]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r15d, dword [rsp + 0x100]
xor r13d, r13d
xor ebx, ebx
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r8
mov rsi, r9
mov qword [rsp + 0x38], rdx
mov rdi, r8
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x20], r13
test r15d, r15d
je 0x140016d29
mov ebp, 0x8000
mov r14d, 0x4000
nop word [rax + rax]
mov rcx, qword [rsi + rbx*8]
lea rdx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64]
test eax, eax
jne 0x140016bc1
test word [rsp + 0x4e], bp
je 0x140016bc1
mov rbp, qword [rsp + 0x60]
jmp 0x140016bc3
xor ebp, ebp
mov rcx, qword [rsi + rbx*8]
lea rdx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64]
test eax, eax
jne 0x140016c15
test word [rsp + 0x4e], r14w
je 0x140016c15
cmp dword [0x140028034], 2
jb 0x140016c03
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsi + rbx*8]
lea rdx, str.Ignoring__s_directory...________n
mov rcx, rax
call fcn.140015200
mov r12, qword [rsp + 0x20]
mov qword [rdi + rbx*8], 0
jmp 0x140016d10
mov rcx, qword [rsi + rbx*8]
lea rdx, [0x140022f74]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r14, rax
test rax, rax
je 0x140016e28
cmp dword [0x140028034], 2
jb 0x140016c9e
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
sub eax, dword [0x140028654]
cmp eax, 0x96
jg 0x140016c57
cmp dword [0x140028034], 4
jb 0x140016c9e
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov ecx, 2
mov dword [0x140028654], eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsi + rbx*8]
lea rdx, str.Loading__s...________r
mov rcx, rax
call fcn.140015200
cmp dword [0x140028034], 4
jb 0x140016c9e
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rsi, qword [rsp + 0x38]
mov r9, r14
mov rcx, qword [rsp + 0x40]
sub rsi, r13
cmp rbp, rsi
mov rdi, rsi
mov edx, 1
cmovbe rdi, rbp
add rcx, r13
mov r8, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
jne 0x140016da4
mov r12, qword [rsp + 0x20]
add r13, rax
mov rax, qword [rsp + 0x28]
add r12, rdi
mov rcx, r14
mov qword [rsp + 0x20], r12
mov qword [rax + rbx*8], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x28]
cmp rbp, rsi
mov rsi, qword [rsp + 0x30]
mov eax, ebx
cmovbe eax, r15d
mov r14d, 0x4000
mov r15d, eax
inc ebx
mov ebp, 0x8000
cmp ebx, r15d
jb 0x140016ba0
test r12, r12
jne 0x140016ea7
cmp dword [0x140028034], 1
jb 0x140016d98
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0xc
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028034], 1
jb 0x140016d98
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.no_data_to_bench
call fcn.140015200
cmp dword [0x140028034], 1
jb 0x140016d98
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x140022b38]
call fcn.140015200
mov ecx, 0xc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x140028034], 1
jb 0x140016e1c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0xb
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028034], 1
jb 0x140016e1c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x30]
lea rdx, str.could_not_read__s
mov rcx, rax
mov r8, qword [r8 + rbx*8]
call fcn.140015200
cmp dword [0x140028034], 1
jb 0x140016e1c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x140022b38]
call fcn.140015200
mov ecx, 0xb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x140028034], 1
jb 0x140016e9b
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0xa
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028034], 1
jb 0x140016e9b
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsi + rbx*8]
lea rdx, str.impossible_to_open_file__s
mov rcx, rax
call fcn.140015200
cmp dword [0x140028034], 1
jb 0x140016e9b
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x140022b38]
call fcn.140015200
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140020560
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret