Function at 0x40f5f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12e4
call fcn.006a8ce0
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0x14]
cmp byte [esi + 4], 0
mov ebx, dword [esi]
push edi
mov edi, dword [eax + 0x18]
mov dword [ebp - 0x12e4], esi
mov dword [ebp - 0x12d8], edi
je 0x40f662
call sym.postgres.exe_IsAutoVacuumWorkerProcess
test al, al
je 0x40f64f
lea eax, [ebp - 0x12d0]
push ebx
push eax
call sym.postgres.exe_initGinState
push edi
lea ecx, [ebp - 0x12d0]
push 1
push ecx
call sym.postgres.exe_ginInsertCleanup
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x40f69b
mov edx, dword [sym.postgres.exe_CurrentMemoryContext]
push 0x28
push edx
call sym.postgres.exe_MemoryContextAllocZero
mov edi, eax
lea eax, [ebp - 0x12d0]
push ebx
push eax
mov dword [ebp - 0x12d8], edi
call sym.postgres.exe_initGinState
push edi
lea ecx, [ebp - 0x12d0]
push 1
push ecx
call sym.postgres.exe_ginInsertCleanup
add esp, 0x1c
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
fld qword [esi + 0x10]
fstp qword [edi + 0x10]
mov dl, byte [esi + 5]
mov byte [edi + 8], dl
cmp byte [ebx + 0x1b], al
jne 0x40f75d
cmp dword [ebx + 0x1c], eax
jne 0x40f75d
push 7
push ebx
mov byte [ebp - 0x12d1], 1
call sym.postgres.exe_LockRelationForExtension
add esp, 8
push 0
push ebx
call sym.postgres.exe_RelationGetNumberOfBlocksInFork
add esp, 8
cmp byte [ebp - 0x12d1], 0
mov dword [ebp - 0x12e0], eax
je 0x40f70a
push 7
push ebx
call sym.postgres.exe_UnlockRelationForExtension
add esp, 8
mov edi, 1
mov dword [ebp - 0x12dc], 0
cmp dword [ebp - 0x12e0], edi
jbe 0x40f7ea
call sym.postgres.exe_vacuum_delay_point
mov eax, dword [esi + 0x18]
push eax
push 0
push edi
push 0
push ebx
call sym.postgres.exe_ReadBufferExtended
mov esi, eax
push 1
push esi
call sym.postgres.exe_LockBuffer
add esp, 0x1c
test esi, esi
jns 0x40f765
mov edx, dword [sym.postgres.exe_LocalBufferBlockPointers]
lea ecx, [esi*4 + 4]
sub edx, ecx
mov eax, dword [edx]
jmp 0x40f777
mov byte [ebp - 0x12d1], al
jmp 0x40f6e5
mov ecx, dword [sym.postgres.exe_BufferBlocks]
mov eax, esi
shl eax, 0xd
lea eax, [eax + ecx - 0x2000]
movzx edx, word [eax + 0x10]
movzx ecx, word [edx + eax + 6]
test cl, 4
je 0x40f797
push edi
push ebx
call sym.postgres.exe_RecordFreeIndexPage
add esp, 8
inc dword [ebp - 0x12dc]
jmp 0x40f7ce
test cl, 1
je 0x40f7a1
inc dword [ebp - 0x18]
jmp 0x40f7ce
test cl, 0x10
jne 0x40f7ce
inc dword [ebp - 0x1c]
movzx ecx, word [eax + 0x10]
test byte [ecx + eax + 6], 2
je 0x40f7ce
movzx eax, word [eax + 0xc]
cmp eax, 0x18
ja 0x40f7c1
xor eax, eax
jmp 0x40f7c7
lea eax, [eax - 0x18]
shr eax, 2
add dword [ebp - 0x14], eax
adc dword [ebp - 0x10], 0
push esi
call sym.postgres.exe_UnlockReleaseBuffer
mov esi, dword [ebp - 0x12e4]
inc edi
add esp, 4
cmp edi, dword [ebp - 0x12e0]
jb 0x40f725
mov edx, dword [ebp - 0x12e0]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], edx
mov ecx, dword [esi]
push eax
push ecx
call sym.postgres.exe_ginUpdateStats
mov edx, dword [esi]
push edx
call sym.postgres.exe_IndexFreeSpaceMapVacuum
mov eax, dword [ebp - 0x12dc]
mov esi, dword [ebp - 0x12d8]
add esp, 0xc
cmp byte [ebp - 0x12d1], 0
mov dword [esi + 0x24], eax
je 0x40f82d
push 7
push ebx
call sym.postgres.exe_LockRelationForExtension
add esp, 8
push 0
push ebx
call sym.postgres.exe_RelationGetNumberOfBlocksInFork
add esp, 8
cmp byte [ebp - 0x12d1], 0
mov dword [esi], eax
je 0x40f84e
push 7
push ebx
call sym.postgres.exe_UnlockRelationForExtension
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret