Function at 0x5bcab0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
cmp dword [0x8377a0], edi
jne 0x5bcaf5
push 0x73cd34
push 0x3df
push str.src_backend_storage_smgrmd.c
call sym.postgres.exe_elog_start
push str.cannot_sync_without_a_pendingOpsTable
push 0x14
call sym.postgres.exe_elog_finish
add esp, 0x14
call sym.postgres.exe_AbsorbFsyncRequests
cmp byte [0x8377aa], 0
je 0x5bcb3d
mov eax, dword [0x8377a0]
push eax
lea ecx, [ebp - 0x70]
push ecx
call sym.postgres.exe_hash_seq_init
lea edx, [ebp - 0x70]
push edx
call sym.postgres.exe_hash_seq_search
add esp, 0xc
cmp eax, edi
je 0x5bcb3d
mov cx, word [0x8377a8]
lea edx, [ebp - 0x70]
push edx
mov word [eax + 0xc], cx
call sym.postgres.exe_hash_seq_search
add esp, 4
cmp eax, edi
jne 0x5bcb22
mov eax, dword [0x8377a0]
inc word [0x8377a8]
push eax
lea ecx, [ebp - 0x70]
push ecx
mov byte [0x8377aa], 1
mov dword [ebp - 0xc], 0xa
call sym.postgres.exe_hash_seq_init
lea edx, [ebp - 0x70]
push edx
call sym.postgres.exe_hash_seq_search
mov esi, eax
add esp, 0xc
mov dword [ebp - 4], esi
cmp esi, edi
je 0x5bcef6
jmp 0x5bcb83
mov esi, dword [ebp - 4]
mov ax, word [esi + 0xc]
cmp ax, word [0x8377a8]
je 0x5bcedd
lea eax, [esi + 0x10]
mov dword [ebp - 8], edi
mov ebx, eax
mov dword [ebp - 0x20], eax
nop
mov eax, dword [ebx]
mov ecx, dword [ebp - 8]
mov dword [ebx], 0
push eax
mov dword [ebp - 0x1c], eax
mov byte [esi + ecx + 0x20], 0
call sym.postgres.exe_bms_first_member
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
test edi, edi
js 0x5bce61
jmp 0x5bcbd3
mov edi, dword [ebp - 0x10]
cmp byte [sym.postgres.exe_enableFsync], 0
je 0x5bce47
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
test eax, eax
jg 0x5bcbf7
call sym.postgres.exe_AbsorbFsyncRequests
mov dword [ebp - 0xc], 0xa
shl edi, 0x11
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], edi
mov edx, dword [esi]
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esi + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
call sym.postgres.exe_smgropen
push 1
push 0
mov esi, eax
mov eax, dword [ebp - 8]
push edi
push eax
push esi
call fcn.005bc580
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
add esp, 0x24
lea ecx, [ebp - 0x44]
push ecx
mov edi, eax
call ebx
test edi, edi
je 0x5bcc59
mov edx, dword [edi]
push edx
call sym.postgres.exe_FileSync
add esp, 4
test eax, eax
jns 0x5bcd7f
mov ebx, dword [sym.imp.MSVCR100.dll__errno]
call ebx
mov ecx, dword [ebp - 8]
mov edx, dword [esi + 0xc]
mov eax, dword [eax]
push ecx
mov ecx, dword [esi]
push edx
mov edx, dword [esi + 4]
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
call sym.postgres.exe_relpathbackend
add esp, 0x14
cmp dword [ebp - 0x10], 0
mov esi, eax
jbe 0x5bcccc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bcc96
sub eax, edx
mov edx, dword [sym.postgres.exe_CurrentMemoryContext]
add eax, 0xc
push eax
push edx
call sym.postgres.exe_MemoryContextAlloc
mov edi, eax
mov eax, dword [ebp - 0x10]
push eax
push esi
push str._s._u
push edi
call sym.postgres.exe_pg_sprintf
push esi
call sym.postgres.exe_pfree
add esp, 0x1c
jmp 0x5bccce
mov edi, esi
call ebx
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
call ebx
cmp dword [eax], 2
je 0x5bcce3
call ebx
cmp dword [eax], 0xd
jne 0x5bcce9
cmp dword [ebp - 0x18], 0
jle 0x5bcd10
push 0
push 0x73cd34
push 0x4a7
push str.src_backend_storage_smgrmd.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5bcd4c
push edi
push str.could_not_fsync_file___s_:__m
jmp 0x5bcd35
push 0
push 0x73cd34
push 0x4ac
push str.src_backend_storage_smgrmd.c
push 0xe
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5bcd4c
push edi
push str.could_not_fsync_file___s__but_retrying:__m
call sym.postgres.exe_errmsg
add esp, 8
push eax
call sym.postgres.exe_errcode_for_file_access
push eax
call sym.postgres.exe_errfinish
add esp, 8
push edi
call sym.postgres.exe_pfree
add esp, 4
call sym.postgres.exe_AbsorbFsyncRequests
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp byte [edx + eax + 0x20], 0
mov dword [ebp - 0xc], 0xa
mov esi, edx
jne 0x5bce47
inc dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
jmp 0x5bcc04
lea ecx, [ebp - 0x3c]
push ecx
call ebx
mov edx, dword [ebp - 0x3c]
sub edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x38]
sbb eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x64]
push ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
fild qword [ebp - 0x4c]
fmul qword [0x6cb7e8]
fild qword [ebp - 0x64]
fdivp st(1)
call fcn.006a8d46
mov esi, edx
mov ebx, eax
cmp esi, dword [ebp - 0x28]
jb 0x5bcdca
ja 0x5bcdc4
cmp ebx, dword [ebp - 0x2c]
jbe 0x5bcdca
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
add dword [ebp - 0x34], ebx
adc dword [ebp - 0x30], esi
inc dword [ebp - 0x14]
cmp byte [sym.postgres.exe_log_checkpoints], 0
je 0x5bce44
push 0x73cd34
push 0x489
push str.src_backend_storage_smgrmd.c
call sym.postgres.exe_elog_start
mov eax, esi
mov ecx, esi
and eax, 0x7fffffff
and ecx, 0x80000000
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
fild qword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], 0
fild qword [ebp - 0x5c]
mov edx, dword [edi]
add esp, 4
fchs
faddp st(1)
fdiv qword [0x6c0e88]
fstp qword [esp]
push edx
call sym.postgres.exe_FilePathName
add esp, 4
push eax
mov eax, dword [ebp - 0x14]
push eax
push str.checkpoint_sync:_number_d_file_s_time_.3f_msec
push 0xe
call sym.postgres.exe_elog_finish
add esp, 0x18
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
push ecx
call sym.postgres.exe_bms_first_member
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x5bcbd0
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
push edx
call sym.postgres.exe_bms_free
mov eax, dword [ebp - 8]
inc eax
add ebx, 4
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], ebx
cmp eax, 3
jle 0x5bcba0
xor eax, eax
lea ecx, [esi + 0x10]
jmp 0x5bce90
cmp dword [ecx], 0
jne 0x5bcf2f
inc eax
add ecx, 4
cmp eax, 3
jle 0x5bce90
mov ecx, dword [0x8377a0]
push 0
push 2
push esi
push ecx
call sym.postgres.exe_hash_search
add esp, 0x10
test eax, eax
jne 0x5bcedd
push 0x73cd34
push 0x4cf
push str.src_backend_storage_smgrmd.c
call sym.postgres.exe_elog_start
push str.pendingOpsTable_corrupted
push 0x14
call sym.postgres.exe_elog_finish
add esp, 0x14
lea edx, [ebp - 0x70]
push edx
call sym.postgres.exe_hash_seq_search
xor edi, edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x5bcb80
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
pop edi
mov dword [0x869438], eax
mov eax, dword [ebp - 0x34]
mov dword [0x869440], ecx
mov ecx, dword [ebp - 0x30]
pop esi
mov dword [0x869444], edx
mov dword [0x869448], eax
mov dword [0x86944c], ecx
mov byte [0x8377aa], 0
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 3
jg 0x5bcea2
mov ax, word [0x8377a8]
mov word [esi + 0xc], ax
jmp 0x5bcedd