Function at 0x5892b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x589210
push 1
call sym.postgres.exe_pqsignal
push 0x589250
push 2
call sym.postgres.exe_pqsignal
push 0x589250
push 0xf
call sym.postgres.exe_pqsignal
push 0x5891f0
push 3
call sym.postgres.exe_pqsignal
push 1
push 0xe
call sym.postgres.exe_pqsignal
push 1
push 0xd
call sym.postgres.exe_pqsignal
push 0x589290
push 0x1e
call sym.postgres.exe_pqsignal
push 1
push 0x1f
call sym.postgres.exe_pqsignal
add esp, 0x40
push 0
push 0x14
call sym.postgres.exe_pqsignal
push 0
push 0x15
call sym.postgres.exe_pqsignal
push 0
push 0x16
call sym.postgres.exe_pqsignal
push 0
push 0x13
call sym.postgres.exe_pqsignal
push 0
push 0x1c
call sym.postgres.exe_pqsignal
and dword [0x86928c], 0xfffffffb
push str.Wal_Writer
push 0
call sym.postgres.exe_ResourceOwnerCreate
push 0x800000
push 0x2000
push 0
mov dword [sym.postgres.exe_CurrentResourceOwner], eax
mov eax, dword [sym.postgres.exe_TopMemoryContext]
push str.Wal_Writer
push eax
call sym.postgres.exe_AllocSetContextCreate
mov ecx, dword [sym.postgres.exe_CurrentMemoryContext]
add esp, 0x44
lea edx, [ebp - 0x44]
push 0
push edx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
mov dword [sym.postgres.exe_CurrentMemoryContext], eax
call sub.MSVCR100.dll__setjmp3
add esp, 8
test eax, eax
je 0x58941c
mov dword [sym.postgres.exe_error_context_stack], 0
inc dword [sym.postgres.exe_InterruptHoldoffCount]
call sym.postgres.exe_EmitErrorReport
call sym.postgres.exe_LWLockReleaseAll
call sym.postgres.exe_AbortBufferIO
call sym.postgres.exe_UnlockBuffers
mov eax, dword [sym.postgres.exe_CurrentResourceOwner]
push 1
push 0
push 0
push eax
call sym.postgres.exe_ResourceOwnerRelease
push 0
call sym.postgres.exe_AtEOXact_Buffers
call sym.postgres.exe_AtEOXact_SMgr
call sym.postgres.exe_AtEOXact_Files
push 0
call sym.postgres.exe_AtEOXact_HashTables
mov esi, dword [ebp - 0x4c]
mov dword [sym.postgres.exe_CurrentMemoryContext], esi
call sym.postgres.exe_FlushErrorState
push esi
call sym.postgres.exe_MemoryContextResetAndDeleteChildren
dec dword [sym.postgres.exe_InterruptHoldoffCount]
push 0xf4240
call sym.postgres.exe_pg_usleep
add esp, 0x20
call sym.postgres.exe_smgrcloseall
mov edx, dword [0x869288]
lea ecx, [ebp - 0x44]
push edx
mov dword [sym.postgres.exe_PG_exception_stack], ecx
call sym.postgres.exe_pqsigsetmask
push 0
mov esi, 0x32
xor bl, bl
call sym.postgres.exe_SetWalWriterSleeping
mov eax, dword [sym.postgres.exe_MyProc]
mov ecx, dword [sym.postgres.exe_ProcGlobal]
add esp, 8
add eax, 0x10
mov dword [ecx + 0x14], eax
xor edx, edx
cmp esi, 1
setle dl
movsx eax, bl
cmp eax, edx
je 0x589477
cmp esi, 1
setle bl
mov byte [ebp - 0x48], bl
mov ecx, dword [ebp - 0x48]
push ecx
call sym.postgres.exe_SetWalWriterSleeping
add esp, 4
mov edx, dword [sym.postgres.exe_MyProc]
add edx, 0x10
push edx
call sym.postgres.exe_ResetLatch
mov eax, dword [0x836dcc]
add esp, 4
test eax, eax
je 0x5894a6
push 2
mov dword [0x836dcc], 0
call sym.postgres.exe_ProcessConfigFile
add esp, 4
mov ecx, dword [0x836dd0]
test ecx, ecx
je 0x5894ba
push 0
call sym.postgres.exe_proc_exit
add esp, 4
call sym.postgres.exe_XLogBackgroundFlush
test al, al
je 0x5894cf
mov eax, dword [sym.postgres.exe_WalWriterDelay]
mov esi, 0x32
jmp 0x5894e7
test esi, esi
jle 0x5894df
dec esi
test esi, esi
jle 0x5894df
mov eax, dword [sym.postgres.exe_WalWriterDelay]
jmp 0x5894e7
mov eax, dword [sym.postgres.exe_WalWriterDelay]
imul eax, eax, 0x19
mov edx, dword [sym.postgres.exe_MyProc]
push eax
add edx, 0x10
push 0x19
push edx
call sym.postgres.exe_WaitLatch
add esp, 0xc
test al, 0x10
je 0x589453
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3