Function at 0x46e020
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 5
push eax
call sym.postgres.exe_heap_open
mov esi, eax
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x68]
push esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], ecx
call sym.postgres.exe_RelationGetIndexList
add esp, 0xc
cmp dword [esi + 0x2c], 0x4eb
mov dword [ebp - 0x4c], eax
sete al
mov byte [ebp - 0x45], al
test al, al
je 0x46e072
push esi
call sym.postgres.exe_RelationGetIndexAttrBitmap
add esp, 4
mov edx, dword [sym.postgres.exe_PG_exception_stack]
mov eax, dword [sym.postgres.exe_error_context_stack]
xor ebx, ebx
lea ecx, [ebp - 0x44]
push ebx
push ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], eax
call sub.MSVCR100.dll__setjmp3
add esp, 8
test eax, eax
jne 0x46e1cc
test byte [ebp + 0xc], 2
lea edx, [ebp - 0x44]
mov dword [sym.postgres.exe_PG_exception_stack], edx
je 0x46e0ec
cmp dword [0x8336f8], ebx
je 0x46e0d4
push str.SetReindexPending
push 0xdb3
push str.src_backendcatalogindex.c
call sym.postgres.exe_elog_start
push str.cannot_reindex_while_reindexing
push 0x14
call sym.postgres.exe_elog_finish
add esp, 0x14
mov edi, dword [ebp - 0x4c]
push edi
call sym.postgres.exe_list_copy
add esp, 4
mov dword [0x8336f8], eax
call sym.postgres.exe_CommandCounterIncrement
jmp 0x46e0ef
mov edi, dword [ebp - 0x4c]
mov eax, edi
mov dword [ebp - 0x54], ebx
call fcn.0046b900
mov esi, eax
cmp esi, ebx
mov bl, byte [ebp - 0x45]
je 0x46e15b
mov eax, dword [ebp + 0xc]
shr eax, 2
mov dword [ebp - 0x64], eax
mov edi, dword [esi]
test bl, bl
je 0x46e123
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
push 0
push eax
push ecx
call sym.postgres.exe_RelationSetIndexList
add esp, 0xc
mov dl, byte [ebp - 0x64]
not dl
and dl, 1
movzx eax, dl
push eax
push edi
call sym.postgres.exe_reindex_index
add esp, 8
call sym.postgres.exe_CommandCounterIncrement
test bl, bl
je 0x46e151
mov ecx, dword [ebp - 0x54]
push edi
push ecx
call sym.postgres.exe_lappend_oid
add esp, 8
mov dword [ebp - 0x54], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x46e10b
mov edi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
mov dword [sym.postgres.exe_PG_exception_stack], edx
mov dword [sym.postgres.exe_error_context_stack], eax
mov dword [0x8336f8], 0
test bl, bl
je 0x46e18c
mov ecx, dword [ebp - 0x50]
push 0xa66
push edi
push ecx
call sym.postgres.exe_RelationSetIndexList
add esp, 0xc
mov edx, dword [ebp - 0x50]
push 0
push edx
call sym.postgres.exe_relation_close
mov eax, dword [ebp + 0xc]
add esp, 8
test edi, edi
setne bl
test al, 1
je 0x46e1b9
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x46e1b9
push eax
push ecx
call sym.postgres.exe_reindex_relation
add esp, 8
or bl, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
mov dword [sym.postgres.exe_PG_exception_stack], eax
mov dword [sym.postgres.exe_error_context_stack], ecx
mov dword [0x8336f8], ebx
call sym.postgres.exe_pg_re_throw
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3