Function at 0x46dd20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push edi
mov dword [ebp - 0x60], edi
push 0x1e
mov byte [ebp - 0x45], 0
call sym.postgres.exe_SearchSysCache
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x50], esi
test esi, esi
jne 0x46dd7b
push 0x6bafb8
push 0xc18
push str.src_backendcatalogindex.c
call sym.postgres.exe_elog_start
push edi
push str.cache_lookup_failed_for_index__u
push 0x14
call sym.postgres.exe_elog_finish
add esp, 0x18
mov ecx, dword [esi + 0x10]
movzx eax, byte [ecx + 0x16]
mov ebx, dword [eax + ecx + 4]
add eax, ecx
push esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ebx
call sym.postgres.exe_ReleaseSysCache
push 5
push ebx
mov dword [ebp - 0x64], ebx
call sym.postgres.exe_heap_open
push 8
push edi
mov dword [ebp - 0x4c], eax
call sym.postgres.exe_index_open
mov esi, eax
mov eax, dword [esi + 0x24]
add esp, 0x14
cmp byte [eax + 0x72], 0x74
mov dword [ebp - 0x5c], esi
jne 0x46de07
cmp byte [esi + 0x1b], 0
jne 0x46de07
xor ebx, ebx
push ebx
push 0x6bb254
push 0xc42
push str.src_backendcatalogindex.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x46de09
push str.cannot_reindex_temporary_tables_of_other_sessions
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x440
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
jmp 0x46de09
xor ebx, ebx
push str.REINDEX_INDEX
push esi
call sym.postgres.exe_CheckTableNotInUse
push esi
call sym.postgres.exe_TransferPredicateLocksToHeapRelation
mov ecx, dword [sym.postgres.exe_PG_exception_stack]
mov edx, dword [sym.postgres.exe_error_context_stack]
lea eax, [ebp - 0x44]
push ebx
push eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], edx
call sub.MSVCR100.dll__setjmp3
add esp, 0x14
test eax, eax
jne 0x46dfed
lea ecx, [ebp - 0x44]
mov dword [sym.postgres.exe_PG_exception_stack], ecx
cmp dword [0x8336f0], ebx
je 0x46de75
push str.SetReindexProcessing
push 0xd95
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 eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x64]
push eax
mov dword [0x8336f4], eax
mov eax, dword [0x8336f8]
push eax
mov dword [0x8336f0], edx
call sym.postgres.exe_list_delete_oid
mov esi, dword [ebp - 0x5c]
push esi
mov dword [0x8336f8], eax
call sym.postgres.exe_BuildIndexInfo
add esp, 0xc
cmp byte [ebp + 0xc], 0
mov edi, eax
je 0x46dec7
cmp byte [edi + 0x64], 0
jne 0x46deb6
cmp dword [edi + 0x58], ebx
je 0x46deba
mov byte [ebp - 0x45], 1
mov byte [edi + 0x64], 0
mov dword [edi + 0x58], ebx
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x60], ebx
push ebx
push esi
call sym.postgres.exe_RelationSetNewRelfilenode
mov ecx, dword [ebp - 0x4c]
push 1
push ebx
push edi
push esi
push ecx
call sym.postgres.exe_index_build
mov cl, byte [ebp - 0x45]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
add esp, 0x1c
mov dword [sym.postgres.exe_PG_exception_stack], edx
mov dword [sym.postgres.exe_error_context_stack], eax
mov dword [0x8336f0], ebx
mov dword [0x8336f4], ebx
test cl, cl
jne 0x46dfc5
push 3
push 0xa32
call sym.postgres.exe_heap_open
push ebx
push ebx
push ebx
mov ebx, dword [ebp - 0x60]
push ebx
push 0x1e
mov dword [ebp - 0x50], eax
call sym.postgres.exe_SearchSysCacheCopy
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x46df51
push 0x6bb254
push 0xca3
push str.src_backendcatalogindex.c
call sym.postgres.exe_elog_start
push ebx
push str.cache_lookup_failed_for_index__u
push 0x14
call sym.postgres.exe_elog_finish
add esp, 0x18
mov ecx, dword [esi + 0x10]
movzx eax, byte [ecx + 0x16]
add eax, ecx
cmp byte [eax + 0xf], 0
je 0x46df7e
cmp byte [eax + 0x11], 0
je 0x46df7e
xor cl, cl
cmp byte [eax + 0x10], cl
je 0x46dfb5
cmp byte [edi + 0x67], cl
jne 0x46dfb5
cmp byte [edi + 0x67], 0
jne 0x46df82
mov byte [eax + 0x10], 0
jmp 0x46df8a
mov cl, 1
jmp 0x46df72
test cl, cl
je 0x46df8a
mov byte [eax + 0x10], 1
mov edi, dword [ebp - 0x50]
push esi
lea edx, [esi + 4]
push edx
push edi
mov byte [eax + 0xf], 1
mov byte [eax + 0x11], 1
call sym.postgres.exe_simple_heap_update
push esi
push edi
call sym.postgres.exe_CatalogUpdateIndexes
mov eax, dword [ebp - 0x4c]
push eax
call sym.postgres.exe_CacheInvalidateRelcache
add esp, 0x18
jmp 0x46dfb8
mov edi, dword [ebp - 0x50]
push 3
push edi
call sym.postgres.exe_relation_close
add esp, 8
xor ebx, ebx
mov ecx, dword [ebp - 0x5c]
push ebx
push ecx
call sym.postgres.exe_index_close
mov edx, dword [ebp - 0x4c]
push ebx
push edx
call sym.postgres.exe_relation_close
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
mov dword [sym.postgres.exe_PG_exception_stack], eax
mov dword [sym.postgres.exe_error_context_stack], ecx
mov dword [0x8336f0], ebx
mov dword [0x8336f4], ebx
call sym.postgres.exe_pg_re_throw
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3