Function at 0x41a320
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
test byte [ebx + 0x18], 8
push esi
lea esi, [ebx + 0x20]
push edi
mov dword [ebp - 0xc], esi
je 0x41a356
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 1
push 0
push 0
push ebx
push eax
push ecx
call sym.postgres.exe_RestoreBackupBlock
mov edi, eax
add esp, 0x18
mov dword [ebp - 8], edi
jmp 0x41a37e
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push 0
push edx
mov edx, dword [esi + 4]
sub esp, 0xc
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_XLogReadBuffer
add esp, 0x14
mov dword [ebp - 8], eax
mov edi, eax
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x41a3b3
mov edx, dword [esi]
mov ecx, dword [esi + 4]
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esi + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 8], edx
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov ecx, 1
mov eax, ebx
call fcn.0041a240
add esp, 0x18
test edi, edi
je 0x41a573
test byte [ebx + 0x18], 8
jne 0x41a56a
test edi, edi
jns 0x41a3db
mov eax, dword [sym.postgres.exe_LocalBufferBlockPointers]
lea edx, [edi*4 + 4]
sub eax, edx
mov ebx, dword [eax]
jmp 0x41a3ed
mov edx, dword [sym.postgres.exe_BufferBlocks]
mov ecx, edi
shl ecx, 0xd
lea ebx, [ecx + edx - 0x2000]
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
cmp ecx, eax
jb 0x41a56a
jne 0x41a408
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebx + 4]
jbe 0x41a56a
movzx eax, word [esi + 0x14]
lea edi, [esi + 0x18]
test ax, ax
je 0x41a45b
mov dword [ebp - 0x10], edi
lea edi, [edi + eax*2]
mov dword [ebp - 4], 0
test eax, eax
jle 0x41a448
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
movzx eax, word [ecx + edx*2]
push eax
push ebx
call sym.postgres.exe_PageIndexTupleDelete
mov eax, dword [ebp - 4]
movzx ecx, word [esi + 0x14]
inc eax
add esp, 8
mov dword [ebp - 4], eax
cmp eax, ecx
jl 0x41a425
movzx edx, word [ebx + 0x10]
test byte [edx + ebx + 0xc], 1
lea eax, [edx + ebx + 0xc]
je 0x41a45b
or word [eax], 4
mov ecx, dword [ebp + 0x10]
mov eax, edi
sub eax, esi
cmp eax, dword [ecx + 0x14]
jae 0x41a4e5
movzx eax, word [ebx + 0xc]
cmp eax, 0x18
ja 0x41a479
mov dword [ebp - 4], 1
jmp 0x41a486
lea eax, [eax - 0x18]
shr eax, 2
inc eax
movzx edx, ax
mov dword [ebp - 4], edx
movzx esi, word [edi + 6]
mov ecx, dword [ebp - 4]
push 0
push 0
push ecx
and esi, 0x1fff
mov eax, edi
push esi
push eax
push ebx
add edi, esi
call sym.postgres.exe_PageAddItem
add esp, 0x18
test ax, ax
jne 0x41a4d0
push str.gistRedoPageUpdateRecord
push 0xa0
push str.src_backend_accessgistgistxlog.c
call sym.postgres.exe_elog_start
push esi
push str.failed_to_add_item_to_GiST_index_page__size__d_bytes
push 0x14
call sym.postgres.exe_elog_finish
add esp, 0x18
mov eax, dword [ebp + 0x10]
inc dword [ebp - 4]
mov edx, edi
sub edx, dword [ebp - 0xc]
cmp edx, dword [eax + 0x14]
jb 0x41a486
mov esi, dword [ebp - 0xc]
jmp 0x41a503
movzx ecx, word [ebx + 0x10]
test byte [ecx + ebx + 0xc], 1
lea eax, [ecx + ebx + 0xc]
je 0x41a503
cmp word [esi + 0x14], 0
jne 0x41a503
mov edx, 0xfffb
and word [eax], dx
movzx eax, word [ebx + 0x10]
test byte [eax + ebx + 0xc], 1
lea ecx, [eax + ebx + 0xc]
jne 0x41a52f
movzx eax, word [ebx + 0xc]
cmp eax, 0x18
jbe 0x41a525
lea eax, [eax - 0x18]
shr eax, 2
test eax, eax
jne 0x41a52f
cmp dword [esi + 0xc], 0
jne 0x41a52f
or word [ecx], 1
movzx ecx, word [ebx + 0x10]
mov esi, dword [ebp - 8]
mov dword [ecx + ebx + 8], 0xffffffff
mov edx, dword [ebp + 8]
mov dword [ebx], edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
mov cx, word [sym.postgres.exe_ThisTimeLineID]
push esi
mov word [ebx + 8], cx
call sym.postgres.exe_MarkBufferDirty
push esi
call sym.postgres.exe_UnlockReleaseBuffer
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call sym.postgres.exe_UnlockReleaseBuffer
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret