Function at 0x140001dd0
Capabilities:
Create thread
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
lea rcx, str._nTest_if_fsync_on_non_write_file_descriptor_is_honored:_n
call sub.libintl_8.dll_libintl_gettext
mov rcx, rax
call fcn.140004b00
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.140004b00
lea rdx, str.write__fsync__close
lea rcx, str.__________30s
call fcn.140004b00
call qword [sym.imp.MSVCR120.dll___iob_func]
lea rcx, [rax + 0x30]
call qword [sym.imp.MSVCR120.dll_fflush]
xor edi, edi
lea r8, [0x140002200]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov byte [0x14000c0d4], 0
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, 0xffffffffffffffff
jne 0x140001e7c
lea rcx, str.Could_not_create_thread_for_alarm_n
call sub.libintl_8.dll_libintl_gettext
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov rdx, rbx
lea rcx, [rax + 0x60]
call fcn.140004ad0
lea ecx, [rdi + 1]
call qword [sym.imp.MSVCR120.dll_exit]
int3
lea rcx, [0x14100c0e8]
xor edx, edx
mov qword [rsp + 0x60], rsi
call fcn.140006780
mov esi, edi
cmp byte [0x14000c0d4], sil
jne 0x140001f2b
nop
mov rcx, qword [str.._pg_test_fsync.out]
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCR120.dll__open]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400021b8
mov rdx, qword [0x14100c0e0]
mov r8d, 0x2000
mov ecx, eax
call qword [sym.imp.MSVCR120.dll__write]
cmp eax, 0x2000
jne 0x1400021ab
mov ecx, ebx
call qword [sym.imp.MSVCR120.dll__commit]
test eax, eax
jne 0x14000219e
mov ecx, ebx
call qword [sym.imp.MSVCR120.dll__close]
mov rcx, qword [str.._pg_test_fsync.out]
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCR120.dll__open]
cmp eax, 0xffffffff
je 0x140002191
mov ecx, eax
call qword [sym.imp.MSVCR120.dll__close]
inc esi
cmp byte [0x14000c0d4], dil
je 0x140001ea0
lea rcx, [0x14100c0f0]
xor edx, edx
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
call fcn.140006780
mov rcx, qword [0x14100c0f0]
movd xmm7, esi
mov rax, qword [0x14100c0e8]
mov r8, rcx
sub ecx, eax
mov rdx, rax
shr r8, 0x20
cvtdq2pd xmm7, xmm7
shr rdx, 0x20
sub r8d, edx
movd xmm0, ecx
lea rcx, str._13.3f_ops_sec___6.0f_usecs_op_n
movd xmm1, r8d
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x140009a88]
addsd xmm1, xmm0
movaps xmm6, xmm1
divsd xmm6, xmm7
divsd xmm7, xmm1
mulsd xmm6, qword [0x140009a90]
call sub.libintl_8.dll_libintl_gettext
movaps xmm2, xmm6
movaps xmm1, xmm7
mov rcx, rax
movq r8, xmm2
movq rdx, xmm1
call fcn.140004b00
lea rdx, str.write__close__fsync
lea rcx, str.__________30s
call fcn.140004b00
call qword [sym.imp.MSVCR120.dll___iob_func]
lea rcx, [rax + 0x30]
call qword [sym.imp.MSVCR120.dll_fflush]
lea r8, [0x140002200]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov byte [0x14000c0d4], dil
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, 0xffffffffffffffff
jne 0x14000203a
lea rcx, str.Could_not_create_thread_for_alarm_n
call sub.libintl_8.dll_libintl_gettext
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov rdx, rbx
lea rcx, [rax + 0x60]
call fcn.140004ad0
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
lea rcx, [0x14100c0e8]
xor edx, edx
call fcn.140006780
cmp byte [0x14000c0d4], dil
jne 0x1400020ed
nop word [rax + rax]
mov rcx, qword [str.._pg_test_fsync.out]
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCR120.dll__open]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400021ec
mov rdx, qword [0x14100c0e0]
mov r8d, 0x2000
mov ecx, eax
call qword [sym.imp.MSVCR120.dll__write]
cmp eax, 0x2000
jne 0x1400021df
mov ecx, ebx
call qword [sym.imp.MSVCR120.dll__close]
mov rcx, qword [str.._pg_test_fsync.out]
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCR120.dll__open]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400021d2
mov ecx, eax
call qword [sym.imp.MSVCR120.dll__commit]
test eax, eax
jne 0x1400021c5
mov ecx, ebx
call qword [sym.imp.MSVCR120.dll__close]
inc edi
cmp byte [0x14000c0d4], 0
je 0x140002060
lea rcx, [0x14100c0f0]
xor edx, edx
call fcn.140006780
mov rdx, qword [0x14100c0f0]
mov rax, qword [0x14100c0e8]
movd xmm7, edi
mov r8, rdx
mov rcx, rax
sub edx, eax
cvtdq2pd xmm7, xmm7
shr rcx, 0x20
shr r8, 0x20
sub r8d, ecx
lea rcx, str._13.3f_ops_sec___6.0f_usecs_op_n
movd xmm0, edx
movd xmm1, r8d
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x140009a88]
addsd xmm1, xmm0
movaps xmm6, xmm1
divsd xmm6, xmm7
divsd xmm7, xmm1
mulsd xmm6, qword [0x140009a90]
call sub.libintl_8.dll_libintl_gettext
movaps xmm2, xmm6
movaps xmm1, xmm7
mov rcx, rax
movq r8, xmm2
movq rdx, xmm1
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rdi
jmp fcn.140004b00
lea rcx, str.could_not_open_output_file
call fcn.140002320
int3
lea rcx, str.fsync_failed
call fcn.140002320
int3
lea rcx, str.write_failed
call fcn.140002320
int3
lea rcx, str.could_not_open_output_file
call fcn.140002320
int3
lea rcx, str.fsync_failed
call fcn.140002320
int3
lea rcx, str.could_not_open_output_file
call fcn.140002320
int3
lea rcx, str.write_failed
call fcn.140002320
int3
lea rcx, str.could_not_open_output_file
call fcn.140002320
int3