Function at 0x140002310
Capabilities:
Delete file
Terminate process

Disassembly:
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [rsp - 0x1820]
mov eax, 0x1920
call fcn.140004060
sub rsp, rax
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rbp + 0x17b0], rax
mov edi, ecx
mov rbx, rdx
lea rcx, str._nBlackmagic_Design_Disk_IO_benchmark_program___Version
call fcn.140001320
movups xmm0, xmmword [str._Revision:_4847__]
movzx eax, word [0x140005498]
lea rcx, [rbp + 0x7c2]
xor edx, edx
mov word [rbp + 0x7c0], ax
mov r8d, 0x3ee
movaps xmmword [rbp + 0x7b0], xmm0
call sub.VCRUNTIME140.dll_memset
mov edx, 0x3a
lea rcx, [rbp + 0x7b0]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
lea r8, [rsp + 0x4c]
lea rdx, [0x14000549c]
lea rcx, [rax + 1]
call fcn.140001450
movups xmm0, xmmword [str._Date:_2010_12_14_12:42:13_0800__Tue__14_Dec_2010___]
mov eax, dword [0x1400054d0]
lea rcx, [rbp - 0x3a]
movups xmm1, xmmword [0x1400054b0]
xor edx, edx
mov dword [rbp - 0x40], eax
movaps xmmword [rbp - 0x70], xmm0
mov r8d, 0x3ca
movups xmm0, xmmword [0x1400054c0]
movzx eax, word [0x1400054d4]
movaps xmmword [rbp - 0x60], xmm1
movaps xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x3c], ax
call sub.VCRUNTIME140.dll_memset
mov r14, 0xffffffffffffffff
lea rcx, [rbp - 0x69]
mov rax, r14
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140002400
mov byte [rbp + rax - 0x6b], 0
lea r8, str._d._d._d_s
lea rax, [0x1400054d6]
xor r15d, r15d
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x390]
mov eax, dword [rsp + 0x4c]
mov edx, 0x400
mov dword [rsp + 0x28], eax
lea r9d, [r15 + 1]
mov qword [rsp + 0x20], r15
call fcn.1400012b0
lea rdx, [rbp + 0x390]
lea rcx, [0x1400054e4]
call fcn.140001320
lea rcx, [0x140005620]
call fcn.140001320
mov ecx, 0x11e1a300
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x140002491
mov edx, 0x11e1a300
lea rcx, str.Malloc_for__d_bytes_failed_n
call fcn.140001320
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ecx, ecx
mov byte [rax], cl
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp edi, 7
jge 0x1400024e9
mov rdx, qword [rbx]
lea rcx, str.Usage:__s__diskPath___FrameSize_in_MB__1_000_000_bytes___Num_Of_Frames___Number_of_Threads___keep_cpu_busy___Use_Direct_IO__n
call fcn.140001320
mov rdx, qword [rbx]
lea rcx, str.Examples:__n_t_s__dvt4__12.754_100_6_1_0_n
call fcn.140001320
mov rdx, qword [rbx]
lea rcx, str._t_s__dvt4__12_100_1_0_0_n
call fcn.140001320
mov rdx, qword [rbx]
lea rcx, str._READ_ONLY_TEST__Usage:__s__diskPath___FrameSize_in_MB__1_000_000_bytes___Num_Of_Frames___Number_of_Threads___keep_cpu_busy___Use_Direct_IO___ClipPattern___Start_Frame___n
call fcn.140001320
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rbx + 8]
lea r8, [rbp + 0xbb0]
mov qword [rsp + 0x1950], rsi
lea rdx, [0x1400054e4]
mov qword [rsp + 0x1960], r12
mov qword [rsp + 0x1968], r13
movaps xmmword [rsp + 0x1910], xmm6
movaps xmmword [rsp + 0x1900], xmm7
movaps xmmword [rsp + 0x18f0], xmm8
movaps xmmword [rsp + 0x18e0], xmm9
movaps xmmword [rsp + 0x18d0], xmm10
movaps xmmword [rsp + 0x18c0], xmm11
call fcn.1400013f0
mov rcx, qword [rbx + 0x10]
lea r8, [rsp + 0x5c]
lea rdx, [0x1400057cc]
call fcn.1400013f0
mov rcx, qword [rbx + 0x18]
lea r8, [rsp + 0x44]
lea rdx, [0x1400057d0]
call fcn.1400013f0
mov rcx, qword [rbx + 0x20]
lea r8, [rsp + 0x48]
lea rdx, [0x1400057d0]
call fcn.1400013f0
mov rcx, qword [rbx + 0x28]
lea r8, [rsp + 0x64]
lea rdx, [0x1400057d0]
call fcn.1400013f0
mov rcx, qword [rbx + 0x30]
lea r8, [rsp + 0x60]
lea rdx, [0x1400057d0]
call fcn.1400013f0
xor r13b, r13b
mov dword [rsp + 0x58], r15d
mov byte [rsp + 0x40], r13b
cmp edi, 9
jne 0x1400025fb
mov rcx, qword [rbx + 0x38]
lea r8, [rbp + 0x13b0]
mov r13b, 1
lea rdx, [0x1400054e4]
mov byte [rsp + 0x40], r13b
call fcn.140001450
mov rcx, qword [rbx + 0x40]
lea r8, [rsp + 0x58]
lea rdx, [0x1400057d0]
call fcn.140001450
movss xmm0, dword [rsp + 0x5c]
mulss xmm0, dword [0x1400059c8]
cvttss2si esi, xmm0
mov eax, esi
mov dword [rsp + 0x50], esi
and eax, 0x80001fff
jge 0x140002623
dec eax
or eax, 0xffffe000
inc eax
test eax, eax
je 0x14000264c
nop word [rax + rax]
inc esi
mov eax, esi
and eax, 0x80001fff
jge 0x140002644
dec eax
or eax, 0xffffe000
inc eax
test eax, eax
jne 0x140002630
mov dword [rsp + 0x50], esi
cmp dword [rsp + 0x60], 1
sete byte [0x140007700]
cmp dword [rsp + 0x64], 1
jne 0x14000266c
mov byte [0x140007701], 1
mov dword [0x1400077d0], esi
mov ecx, dword [rsp + 0x48]
mov eax, 0x11e1a300
mov r9d, dword [rsp + 0x44]
cdq
idiv esi
mov dword [rsp + 0x20], ecx
lea rdx, [rbp + 0xbb0]
mov r8d, esi
mov ebx, eax
lea rcx, str.Using_path__s__frame_size___d__number_of_frames___d__number_of_threads___d_n
call fcn.140001320
mov edx, ebx
lea rcx, str.Allocating__d_internal_buffers_n
call fcn.140001320
test ebx, ebx
jle 0x1400027e3
movsxd rsi, esi
mov edi, ebx
nop dword [rax]
nop dword [rax + rax]
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_malloc]
mov rcx, qword [0x1400077c0]
mov rbx, qword [0x1400077b0]
mov qword [rbp + 0x390], rax
lea rax, [rcx + 1]
cmp rbx, rax
ja 0x140002706
lea rcx, [0x1400077a0]
call fcn.140003080
mov rcx, qword [0x1400077c0]
mov rbx, qword [0x1400077b0]
mov rax, qword [0x1400077b8]
dec rbx
and rax, rbx
mov qword [0x1400077b8], rax
add rax, rcx
and rbx, rax
mov rax, qword [0x1400077a8]
cmp qword [rax + rbx*8], r15
jne 0x140002749
mov ecx, 0x420
call fcn.1400032bc
mov rcx, qword [0x1400077a8]
mov qword [rcx + rbx*8], rax
mov rax, qword [0x1400077a8]
mov rax, qword [rax + rbx*8]
lea rcx, [rbp + 0x390]
mov edx, 8
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x140002760
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [0x140007758]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
inc qword [0x1400077c0]
call qword [sym.imp.pthreadVC2.dll_sem_post]
sub rdi, 1
jne 0x1400026c0
mov esi, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
lea rcx, str.Creating__d_I_O_threads_n
call fcn.140001320
mov ebx, r15d
cmp dword [rsp + 0x48], ebx
jle 0x14000282c
nop dword [rax]
xor r9d, r9d
lea r8, [0x140002060]
xor edx, edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.pthreadVC2.dll_pthread_create]
lea rcx, [0x140007768]
call qword [sym.imp.pthreadVC2.dll_sem_wait]
inc ebx
cmp ebx, dword [rsp + 0x48]
jl 0x140002800
xor r9d, r9d
lea r8, [0x140001d90]
xor edx, edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.pthreadVC2.dll_pthread_create]
xor r9d, r9d
lea r8, [0x140001d90]
xor edx, edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.pthreadVC2.dll_pthread_create]
lea rax, [rbp + 0xbb0]
mov r8, r14
lea r9, str._s_Frame__08d
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rbp + 0xfb0]
call fcn.140001380
mov ebx, r15d
cmp dword [rsp + 0x48], ebx
jle 0x1400028a5
nop word [rax + rax]
lea rcx, [0x140007708]
call qword [sym.imp.pthreadVC2.dll_sem_post]
inc ebx
cmp ebx, dword [rsp + 0x48]
jl 0x140002890
movsd xmm10, qword [0x1400059c0]
xor r12b, r12b
movsd xmm11, qword [0x1400059b8]
movabs rbx, 0xcccccccccccccccd
movsd xmm8, qword [0x1400059a0]
movabs rdi, 0x431bde82d7b634db
movsd xmm9, qword [0x1400059a8]
mov r14d, r15d
test r13b, r13b
je 0x1400028f2
cmp r14d, 1
jne 0x140002d3e
lea rcx, str._n
call fcn.140001320
mov ecx, r14d
test r14d, r14d
je 0x14000294b
sub ecx, 1
je 0x14000293f
sub ecx, 1
je 0x140002933
sub ecx, 1
je 0x140002927
cmp ecx, 1
jne 0x14000295a
movzx r12d, cl
lea rcx, str.Performing_READ_WRITE_test_n
jmp 0x140002955
mov r12b, 1
lea rcx, str.Performing_RANDOM_READ_test_n
jmp 0x140002955
mov r12b, 1
lea rcx, str.Performing_READ_reverse_test_n
jmp 0x140002955
mov r12b, 1
lea rcx, str.Performing_READ_test_n
jmp 0x140002955
xor r12b, r12b
lea rcx, str.Performing_WRITE_test_n
call fcn.140001320
movsxd rcx, dword [rsp + 0x44]
mov eax, 0x420
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140003548
lea rcx, [rsp + 0x68]
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rsp + 0x68]
mov rax, rbx
mov edx, dword [rsp + 0x6c]
shl rdx, 0x20
or rdx, rcx
mul rdx
movabs rax, 0x295e9648864000
mov rcx, rdx
shr rcx, 3
sub rcx, rax
mov rax, rdi
mul rcx
mov edi, r15d
shr rdx, 0x12
imul eax, edx, 0xf4240
movd xmm0, edx
cvtdq2pd xmm0, xmm0
sub ecx, eax
cmp dword [rsp + 0x44], 0
movd xmm7, ecx
cvtdq2pd xmm7, xmm7
divsd xmm7, xmm10
addsd xmm7, xmm0
jle 0x140002be7
lea rbx, [r13 + 8]
nop
lea rcx, [0x140007758]
call qword [sym.imp.pthreadVC2.dll_sem_wait]
lea rcx, [0x140007050]
call qword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
mov rax, qword [0x1400077a8]
mov rcx, qword [0x1400077b0]
mov r8, qword [0x1400077b8]
dec rcx
and rcx, r8
mov rdx, qword [rax + rcx*8]
lea rax, [rbp + 0x390]
mov ecx, 8
nop word [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rcx, 1
jne 0x140002a40
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
sub qword [0x1400077c0], 1
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
jne 0x140002ab4
mov qword [0x1400077b8], r15
jmp 0x140002abf
lea rax, [r8 + 1]
mov qword [0x1400077b8], rax
lea rcx, [0x140007050]
call qword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
mov rax, qword [rbp + 0x390]
lea r8, [rbp + 0xfb0]
mov qword [rbx - 8], rax
mov edx, 0x400
movsxd rax, edi
imul r15, rax, 0x420
mov byte [rbx + 0x10], r12b
add r15, r13
mov dword [rbx + 0x414], esi
lea rcx, [r15 + 0x19]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
cmp r14d, 3
jb 0x140002b3f
jne 0x140002b1d
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
idiv dword [rsp + 0x44]
inc edx
mov dword [rbx], edx
jmp 0x140002b7d
lea eax, [rdi + 1]
test dil, 1
je 0x140002b37
cdq
sub eax, edx
sar eax, 1
add eax, dword [rsp + 0x44]
mov dword [rbx], eax
mov byte [rbx + 0x10], 0
jmp 0x140002b7d
mov dword [rbx], eax
mov byte [rbx + 0x10], 1
jmp 0x140002b7d
lea eax, [rdi + 1]
mov dword [rbx], eax
cmp r14d, 2
jne 0x140002b54
mov eax, dword [rsp + 0x44]
sub eax, edi
mov dword [rbx], eax
jmp 0x140002b7d
cmp r14d, 1
jne 0x140002b7d
cmp byte [rsp + 0x40], 0
je 0x140002b7d
lea r8, [rbp + 0x13b0]
mov edx, 0x400
lea rcx, [r15 + 0x19]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov eax, dword [rsp + 0x58]
add dword [rbx], eax
lea rcx, [0x140007048]
call qword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
mov rdx, r15
lea rcx, [0x140007778]
call fcn.140002e40
lea rcx, [0x140007748]
call qword [sym.imp.pthreadVC2.dll_sem_post]
lea rcx, [0x1400077c8]
call qword [sym.imp.pthreadVC2.dll_sem_post]
lea rcx, [0x140007048]
call qword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
mov esi, dword [rsp + 0x50]
inc edi
add rbx, 0x420
mov r15d, 0
cmp edi, dword [rsp + 0x44]
jl 0x1400029f0
movabs rbx, 0xcccccccccccccccd
lea rdx, [rsp + 0x54]
lea rcx, [0x140007748]
call qword [sym.imp.pthreadVC2.dll_sem_getvalue]
cmp dword [rsp + 0x54], 0
je 0x140002c1f
call qword [sym.imp.pthreadVC2.dll_sched_yield]
lea rdx, [rsp + 0x54]
lea rcx, [0x140007748]
call qword [sym.imp.pthreadVC2.dll_sem_getvalue]
cmp dword [rsp + 0x54], 0
jne 0x140002c00
lea rdx, [rsp + 0x4c]
lea rcx, [0x1400077c8]
call qword [sym.imp.pthreadVC2.dll_sem_getvalue]
cmp dword [rsp + 0x4c], 0
je 0x140002c57
call qword [sym.imp.pthreadVC2.dll_sched_yield]
lea rdx, [rsp + 0x4c]
lea rcx, [0x1400077c8]
call qword [sym.imp.pthreadVC2.dll_sem_getvalue]
cmp dword [rsp + 0x4c], 0
jne 0x140002c38
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x70]
movabs rdi, 0x431bde82d7b634db
mov ecx, dword [rsp + 0x74]
mov esi, dword [rsp + 0x50]
shl rcx, 0x20
or rcx, rax
mov rax, rbx
mul rcx
movd xmm1, esi
cvtdq2pd xmm1, xmm1
movabs rax, 0x295e9648864000
mov rcx, rdx
shr rcx, 3
sub rcx, rax
mov rax, rdi
mul rcx
shr rdx, 0x12
imul eax, edx, 0xf4240
movd xmm0, edx
cvtdq2pd xmm0, xmm0
sub ecx, eax
movd xmm6, ecx
lea rcx, str.100___done_nTotal_throughput___.2lf_MB_s_
cvtdq2pd xmm6, xmm6
divsd xmm6, xmm10
addsd xmm6, xmm0
movd xmm0, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
subsd xmm6, xmm7
mulsd xmm1, xmm0
divsd xmm1, xmm11
divsd xmm1, xmm11
divsd xmm1, xmm6
movq rdx, xmm1
call fcn.140001320
cmp r14d, 4
jne 0x140002d09
movaps xmm0, xmm8
jmp 0x140002d0d
movaps xmm0, xmm9
movd xmm1, dword [rsp + 0x44]
lea rcx, str.FPS___.2lf__n
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
divsd xmm1, xmm6
movq rdx, xmm1
call fcn.140001320
mov rcx, r13
call fcn.1400032b4
movzx r13d, byte [rsp + 0x40]
inc r14d
cmp r14d, 5
jl 0x1400028e3
test r13b, r13b
jne 0x1400028e0
movd xmm1, dword [rsp + 0x44]
xorps xmm0, xmm0
movsd xmm6, qword [0x1400059b0]
movaps xmm11, xmmword [rsp + 0x18c0]
movaps xmm10, xmmword [rsp + 0x18d0]
movaps xmm9, xmmword [rsp + 0x18e0]
movaps xmm8, xmmword [rsp + 0x18f0]
movaps xmm7, xmmword [rsp + 0x1900]
mov r13, qword [rsp + 0x1968]
mov r12, qword [rsp + 0x1960]
mov rsi, qword [rsp + 0x1950]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm6
comisd xmm1, xmm0
jbe 0x140002e0b
nop word [rax + rax]
lea ebx, [r15 + 1]
mov edx, 0x400
mov r9d, ebx
lea r8, [rbp + 0xfb0]
lea rcx, [rbp + 0x390]
call fcn.1400012b0
lea rcx, [rbp + 0x390]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
movd xmm0, dword [rsp + 0x44]
mov r15d, ebx
cvtdq2pd xmm0, xmm0
movd xmm1, ebx
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm6
comisd xmm0, xmm1
ja 0x140002dc0
movaps xmm6, xmmword [rsp + 0x1910]
xor eax, eax
mov rcx, qword [rbp + 0x17b0]
xor rcx, rsp
call fcn.140003290
add rsp, 0x1920
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret