Function at 0x1400017a0
Capabilities:
Create thread
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
lea rcx, str._nTest_if_fsync_on_non_write_file_descriptor_is_honored:_n
movaps xmmword [rsp + 0x30], xmm7
call sub.libintl_8.dll_libintl_gettext
mov rcx, rax
call fcn.140005090
lea rcx, str._If_the_times_are_similar__fsync___can_sync_data_written_on_a_different_ndescriptor.__n
call sub.libintl_8.dll_libintl_gettext
mov rcx, rax
call fcn.140005090
lea rdx, str.write__fsync__close
lea rcx, str.__________30s
call fcn.140005090
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]
xor edi, edi
mov byte [0x14000e0fc], 0
mov qword [rsp + 0x28], rdi
lea r8, section..text
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, 0xffffffffffffffff
jne 0x140001855
cmp dword [0x14100e8b4], 4
jg 0x140001bbd
lea rdx, str.could_not_create_thread_for_alarm
lea ecx, [rdi + 4]
call fcn.140003860
jmp 0x140001bbd
xor edx, edx
lea rcx, [0x14100e108]
call fcn.140006fc0
mov esi, edi
cmp byte [0x14000e0fc], sil
jne 0x140001910
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [str.._pg_test_fsync.out]
xor r8d, r8d
mov edx, 0x8002
call fcn.140006c70
mov ebx, eax
cmp eax, 0xffffffff
je 0x140001b94
mov rdx, qword [0x14100e100]
mov r8d, 0x2000
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
cmp eax, 0x2000
jne 0x140001a26
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__commit]
test eax, eax
jne 0x140001a0d
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov rcx, qword [str.._pg_test_fsync.out]
xor r8d, r8d
mov edx, 0x8002
call fcn.140006c70
cmp eax, 0xffffffff
je 0x140001b94
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
inc esi
cmp byte [0x14000e0fc], dil
je 0x140001880
nop dword [rax + rax]
xor edx, edx
lea rcx, [0x14100e110]
call fcn.140006fc0
mov rcx, qword [0x14100e110]
mov rax, qword [0x14100e108]
mov r8, rcx
sub ecx, eax
shr r8, 0x20
mov rdx, rax
movd xmm7, esi
shr rdx, 0x20
sub r8d, edx
movd xmm0, ecx
lea rcx, str._13.3f_ops_sec___6.0f_usecs_op_n
cvtdq2pd xmm0, xmm0
movd xmm1, r8d
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm7, xmm7
mulsd xmm1, qword [0x14000ab40]
addsd xmm1, xmm0
movaps xmm6, xmm1
divsd xmm6, xmm7
divsd xmm7, xmm1
mulsd xmm6, qword [0x14000ab48]
call sub.libintl_8.dll_libintl_gettext
movaps xmm2, xmm6
movaps xmm1, xmm7
movq r8, xmm2
movq rdx, xmm1
mov rcx, rax
call fcn.140005090
lea rdx, str.write__close__fsync
lea rcx, str.__________30s
call fcn.140005090
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]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea r8, section..text
mov byte [0x14000e0fc], dil
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, 0xffffffffffffffff
jne 0x140001a3f
cmp dword [0x14100e8b4], 4
jg 0x140001bbd
lea rdx, str.could_not_create_thread_for_alarm
lea ecx, [rax + 5]
call fcn.140003860
jmp 0x140001bbd
cmp dword [0x14100e8b4], 4
jg 0x140001bbd
lea rcx, str.fsync_failed
jmp 0x140001ba4
cmp dword [0x14100e8b4], 4
jg 0x140001bbd
lea rcx, str.write_failed
jmp 0x140001ba4
xor edx, edx
lea rcx, [0x14100e108]
call fcn.140006fc0
cmp byte [0x14000e0fc], dil
jne 0x140001af0
nop word [rax + rax]
mov rcx, qword [str.._pg_test_fsync.out]
xor r8d, r8d
mov edx, 0x8002
call fcn.140006c70
mov ebx, eax
cmp eax, 0xffffffff
je 0x140001b94
mov rdx, qword [0x14100e100]
mov r8d, 0x2000
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
cmp eax, 0x2000
jne 0x140001a26
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov rcx, qword [str.._pg_test_fsync.out]
xor r8d, r8d
mov edx, 0x8002
call fcn.140006c70
mov ebx, eax
cmp eax, 0xffffffff
je 0x140001b94
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__commit]
test eax, eax
jne 0x140001a0d
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
inc edi
cmp byte [0x14000e0fc], 0
je 0x140001a60
nop dword [rax]
xor edx, edx
lea rcx, [0x14100e110]
call fcn.140006fc0
mov rdx, qword [0x14100e110]
mov rax, qword [0x14100e108]
mov r8, rdx
mov rcx, rax
shr r8, 0x20
shr rcx, 0x20
sub edx, eax
sub r8d, ecx
movd xmm7, edi
cvtdq2pd xmm7, xmm7
lea rcx, str._13.3f_ops_sec___6.0f_usecs_op_n
movd xmm1, r8d
cvtdq2pd xmm1, xmm1
movd xmm0, edx
mulsd xmm1, qword [0x14000ab40]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
movaps xmm6, xmm1
divsd xmm6, xmm7
divsd xmm7, xmm1
mulsd xmm6, qword [0x14000ab48]
call sub.libintl_8.dll_libintl_gettext
movaps xmm2, xmm6
movaps xmm1, xmm7
movq r8, xmm2
movq rdx, xmm1
mov rcx, rax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rdi
jmp fcn.140005090
cmp dword [0x14100e8b4], 4
jg 0x140001bbd
lea rcx, str.could_not_open_output_file
call sub.libintl_8.dll_libintl_gettext
mov r8, rax
lea rdx, str._s:__m
mov ecx, 4
call fcn.140003860
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3