Function at 0x411e10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
push esi
call sym.postgres.exe_BufferGetBlockNumber
add esp, 4
mov dword [ebp - 0x18], eax
test esi, esi
jns 0x411e3f
mov ecx, dword [sym.postgres.exe_LocalBufferBlockPointers]
lea eax, [esi*4 + 4]
sub ecx, eax
mov esi, dword [ecx]
jmp 0x411e4f
mov edx, dword [sym.postgres.exe_BufferBlocks]
shl esi, 0xd
lea esi, [esi + edx - 0x2000]
movzx eax, word [esi + 0x10]
mov cl, byte [eax + esi + 0xc]
lea eax, [eax + esi + 0xc]
and cl, 1
test byte [eax], 8
mov byte [ebp - 0x14], cl
je 0x411e89
push 0x6ac158
push 0xb7
push str.src_backend_accessgistgist.c
call sym.postgres.exe_elog_start
push str.concurrent_GiST_page_split_was_incomplete
push 0x14
call sym.postgres.exe_elog_finish
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x2c]
push edx
push edi
push ebx
push eax
push esi
mov dword [ecx], 0
call sym.postgres.exe_gistnospace
add esp, 0x14
mov byte [ebp - 2], al
test al, al
je 0x412388
xor eax, eax
cmp dword [ebp - 0x18], eax
lea ecx, [ebp - 0xc]
push ecx
push esi
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
sete byte [ebp - 1]
call sym.postgres.exe_gistextractpage
add esp, 8
mov ebx, eax
test di, di
je 0x411f11
mov edx, 0x800
cmp di, dx
ja 0x411f11
mov ecx, dword [ebp - 0xc]
movzx eax, di
dec ecx
dec eax
mov dword [ebp - 0xc], ecx
cmp eax, ecx
je 0x411f11
sub ecx, eax
add ecx, ecx
lea edx, [ebx + eax*4]
add ecx, ecx
push ecx
lea eax, [edx + 4]
push eax
push edx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ecx
push edx
lea eax, [ebp - 0xc]
push eax
push ebx
call sym.postgres.exe_gistjoinvector
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
push ecx
push edx
push eax
mov eax, dword [ebp + 8]
push esi
push eax
call sym.postgres.exe_gistSplit
mov ebx, eax
add esp, 0x24
cmp byte [ebp - 1], 0
mov dword [ebp - 8], ebx
mov edi, ebx
jne 0x411fb7
movzx ecx, word [esi + 0x10]
mov edx, dword [esi + ecx + 8]
mov eax, dword [esi + ecx]
mov ecx, dword [esi + ecx + 4]
mov esi, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebx + 0x18], esi
call sym.postgres.exe_BufferGetBlockNumber
add esp, 4
mov dword [ebx], eax
test esi, esi
jns 0x411f85
mov eax, dword [sym.postgres.exe_LocalBufferBlockPointers]
lea edx, [esi*4 + 4]
sub eax, edx
mov eax, dword [eax]
jmp 0x411f95
mov ecx, dword [sym.postgres.exe_BufferBlocks]
shl esi, 0xd
lea eax, [esi + ecx - 0x2000]
push eax
call sym.postgres.exe_PageGetTempPageCopySpecial
xor edx, edx
add esp, 4
cmp byte [ebp - 0x14], dl
mov esi, eax
setne dl
mov dword [ebx + 0x14], esi
movzx eax, word [esi + 0x10]
mov word [eax + esi + 0xc], dx
mov edi, dword [ebx + 0x1c]
test edi, edi
je 0x41201c
xor ecx, ecx
cmp byte [ebp - 0x14], cl
setne cl
mov esi, ecx
mov edx, dword [ebp + 8]
push edx
call sym.postgres.exe_gistNewBuffer
push esi
push eax
mov dword [edi + 0x18], eax
call sym.postgres.exe_GISTInitBuffer
mov eax, dword [edi + 0x18]
add esp, 0xc
test eax, eax
jns 0x411ff5
mov edx, dword [sym.postgres.exe_LocalBufferBlockPointers]
lea ecx, [eax*4 + 4]
sub edx, ecx
mov ecx, dword [edx]
jmp 0x412007
mov edx, dword [sym.postgres.exe_BufferBlocks]
mov ecx, eax
shl ecx, 0xd
lea ecx, [ecx + edx - 0x2000]
push eax
mov dword [edi + 0x14], ecx
call sym.postgres.exe_BufferGetBlockNumber
mov dword [edi], eax
mov edi, dword [edi + 0x1c]
add esp, 4
test edi, edi
jne 0x411fc5
mov eax, ebx
test ebx, ebx
je 0x412049
movzx edx, word [eax + 2]
mov ecx, dword [eax + 0x10]
mov word [ecx], dx
movzx edx, word [eax]
mov ecx, dword [eax + 0x10]
mov word [ecx + 2], dx
mov ecx, dword [eax + 0x10]
mov edx, 0xffff
mov word [ecx + 4], dx
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x412022
cmp byte [ebp - 1], 0
je 0x4120fd
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [ebp - 0x28], eax
test eax, eax
jns 0x412072
mov ecx, dword [sym.postgres.exe_LocalBufferBlockPointers]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
jmp 0x412082
mov edx, dword [sym.postgres.exe_BufferBlocks]
shl eax, 0xd
lea eax, [eax + edx - 0x2000]
push eax
call sym.postgres.exe_PageGetTempPageCopySpecial
mov dword [ebp - 0x2c], eax
movzx ecx, word [eax + 0x10]
xor edx, edx
add esp, 4
mov word [ecx + eax + 0xc], dx
mov eax, ebx
test ebx, ebx
je 0x4120a8
nop
mov eax, dword [eax + 0x1c]
inc edi
test eax, eax
jne 0x4120a0
mov ecx, dword [sym.postgres.exe_CurrentMemoryContext]
lea eax, [edi*4]
push eax
push ecx
call sym.postgres.exe_MemoryContextAlloc
add esp, 8
mov ecx, ebx
test ebx, ebx
je 0x4120d6
mov edx, eax
mov esi, dword [ecx + 0x10]
mov dword [edx], esi
mov ecx, dword [ecx + 0x1c]
add edx, 4
test ecx, ecx
jne 0x4120c7
lea edx, [ebp - 0x34]
push edx
push edi
xor esi, esi
push eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edi
call sym.postgres.exe_gistfillitupvec
mov dword [ebp - 0x24], ebx
lea ebx, [ebp - 0x40]
add esp, 0xc
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 8], ebx
jmp 0x412133
mov esi, ebx
test ebx, ebx
je 0x412133
mov edi, dword [ebp + 0x2c]
mov eax, dword [sym.postgres.exe_CurrentMemoryContext]
push 8
push eax
call sym.postgres.exe_MemoryContextAlloc
mov ecx, dword [esi + 0x18]
mov dword [eax], ecx
mov edx, dword [esi + 0x10]
push eax
mov dword [eax + 4], edx
mov eax, dword [edi]
push eax
call sym.postgres.exe_lappend
mov dword [edi], eax
mov esi, dword [esi + 0x1c]
add esp, 0x10
test esi, esi
jne 0x412106
mov esi, ebx
test ebx, ebx
je 0x41224a
lea ecx, [ecx]
mov edi, dword [esi + 8]
xor ebx, ebx
cmp dword [esi + 4], ebx
jle 0x4121d5
mov edi, edi
movzx edx, word [edi + 6]
mov eax, dword [esi + 0x14]
push 0
push 0
lea ecx, [ebx + 1]
push ecx
and edx, 0x1fff
push edx
push edi
push eax
call sym.postgres.exe_PageAddItem
add esp, 0x18
test ax, ax
jne 0x41219f
push 0x6ac158
push 0x14a
push str.src_backend_accessgistgist.c
call sym.postgres.exe_elog_start
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
push edx
push str.failed_to_add_item_to_index_page_in___s_
push 0x14
call sym.postgres.exe_elog_finish
add esp, 0x18
cmp dword [ebp + 0x24], 0
je 0x4121bf
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
push edi
call sym.postgres.exe_ItemPointerEquals
add esp, 8
test al, al
je 0x4121bf
mov edx, dword [esi]
mov eax, dword [ebp + 0x24]
mov dword [eax], edx
movzx ecx, word [edi + 6]
and ecx, 0x1fff
inc ebx
add edi, ecx
cmp ebx, dword [esi + 4]
jl 0x412150
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4121e5
cmp dword [esi], 0
je 0x4121e5
mov ecx, dword [ecx]
jmp 0x4121e8
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0x14]
movzx edx, word [eax + 0x10]
mov dword [edx + eax + 8], ecx
cmp dword [esi + 0x1c], 0
je 0x412218
cmp byte [ebp - 1], 0
jne 0x412218
cmp byte [ebp + 0x30], 0
je 0x412218
mov eax, dword [esi + 0x14]
movzx edx, word [eax + 0x10]
or word [edx + eax + 0xc], 8
lea eax, [edx + eax + 0xc]
jmp 0x41222b
mov eax, dword [esi + 0x14]
movzx ecx, word [eax + 0x10]
lea eax, [ecx + eax + 0xc]
mov edx, 0xfff7
and word [eax], dx
mov eax, dword [esi + 0x14]
movzx ecx, word [eax + 0x10]
mov edx, dword [ebp - 0x20]
mov dword [ecx + eax], edx
mov edx, dword [ebp - 0x1c]
mov dword [ecx + eax + 4], edx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x412140
mov esi, dword [ebp - 8]
inc dword [sym.postgres.exe_CritSectionCount]
test esi, esi
je 0x41226a
mov eax, dword [esi + 0x18]
push eax
call sym.postgres.exe_MarkBufferDirty
mov esi, dword [esi + 0x1c]
add esp, 4
test esi, esi
jne 0x412257
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x41227a
push eax
call sym.postgres.exe_MarkBufferDirty
add esp, 4
mov esi, dword [ebp - 8]
mov eax, dword [esi + 0x18]
test eax, eax
jns 0x412297
mov edx, dword [sym.postgres.exe_LocalBufferBlockPointers]
lea ecx, [eax*4 + 4]
sub edx, ecx
mov eax, dword [edx]
jmp 0x4122a7
mov ecx, dword [sym.postgres.exe_BufferBlocks]
shl eax, 0xd
lea eax, [eax + ecx - 0x2000]
mov edx, dword [esi + 0x14]
push eax
push edx
call sym.postgres.exe_PageRestoreTempPage
mov eax, dword [esi + 0x18]
add esp, 8
test eax, eax
jns 0x4122ce
mov ecx, dword [sym.postgres.exe_LocalBufferBlockPointers]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
jmp 0x4122de
mov edx, dword [sym.postgres.exe_BufferBlocks]
shl eax, 0xd
lea eax, [eax + edx - 0x2000]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 0x24]
cmp byte [eax + 0x72], 0x70
jne 0x41232c
mov edx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x28]
push edx
mov edx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push edx
mov edx, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push edx
mov edx, dword [ecx]
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
call sym.postgres.exe_gistXLogSplit
add esp, 0x2c
jmp 0x412331
call sym.postgres.exe_GetXLogRecPtrForTemp
mov edi, eax
mov eax, dword [ebp - 8]
mov ebx, edx
mov ecx, dword [eax + 0x14]
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov edx, dword [eax + 0x14]
mov cx, word [sym.postgres.exe_ThisTimeLineID]
mov word [edx + 8], cx
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x412338
cmp byte [ebp - 1], al
je 0x41245a
mov edx, dword [ebp - 8]
mov esi, dword [edx + 0x1c]
test esi, esi
je 0x41245a
lea esp, [esp]
mov eax, dword [esi + 0x18]
push eax
call sym.postgres.exe_UnlockReleaseBuffer
mov esi, dword [esi + 0x1c]
add esp, 4
test esi, esi
jne 0x412370
jmp 0x41245a
inc dword [sym.postgres.exe_CritSectionCount]
test di, di
je 0x4123a7
mov ecx, 0x800
cmp di, cx
ja 0x4123a7
push edi
push esi
call sym.postgres.exe_PageIndexTupleDelete
add esp, 8
mov edx, dword [ebp + 0x18]
push 0
push ebx
push edx
push esi
call sym.postgres.exe_gistfillbuffer
mov eax, dword [ebp + 0x14]
push eax
call sym.postgres.exe_MarkBufferDirty
mov eax, dword [ebp + 0x28]
add esp, 0x14
test eax, eax
je 0x4123d0
push eax
call sym.postgres.exe_MarkBufferDirty
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
cmp byte [edx + 0x72], 0x70
jne 0x412440
xor eax, eax
test di, di
je 0x4123f6
mov edx, 0x800
cmp di, dx
ja 0x4123f6
mov word [ebp + 0x2c], di
mov eax, 1
mov edx, dword [ebp + 0x28]
push edx
mov edx, ebx
push edx
mov edx, dword [ebp + 0x18]
push edx
movzx eax, ax
push eax
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x2c]
push edx
mov edx, dword [ecx]
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
call sym.postgres.exe_gistXLogUpdate
mov ebx, edx
mov edi, eax
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dx, word [sym.postgres.exe_ThisTimeLineID]
add esp, 0x24
mov word [esi + 8], dx
jmp 0x41244e
call sym.postgres.exe_GetXLogRecPtrForTemp
mov edi, eax
mov ebx, edx
mov dword [esi], edi
mov dword [esi + 4], ebx
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x41245a
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x4124b0
jns 0x412475
lea edx, [eax*4 + 4]
mov eax, dword [sym.postgres.exe_LocalBufferBlockPointers]
sub eax, edx
mov eax, dword [eax]
jmp 0x412485
mov ecx, dword [sym.postgres.exe_BufferBlocks]
shl eax, 0xd
lea eax, [eax + ecx - 0x2000]
movzx ecx, word [eax + 0x10]
mov dword [ecx + eax], edi
mov dword [ecx + eax + 4], ebx
movzx edx, word [eax + 0x10]
lea ecx, [edx + eax + 0xc]
mov edx, 0xfff7
and word [ecx], dx
mov dword [eax], edi
mov dword [eax + 4], ebx
mov cx, word [sym.postgres.exe_ThisTimeLineID]
mov word [eax + 8], cx
mov al, byte [ebp - 2]
dec dword [sym.postgres.exe_CritSectionCount]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret