Function at 0x544d80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx + 0x38]
push esi
push 0
push ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
call sym.postgres.exe_heap_open
mov esi, eax
mov edx, dword [esi + 0x24]
add esp, 8
cmp byte [edx + 0x72], 0x70
mov dword [ebp - 0x24], esi
je 0x544dfd
call sym.postgres.exe_RecoveryInProgress
test al, al
je 0x544dfd
push 0
push 0x6d9884
push 0x63
push str.src_backendoptimizerutilplancat.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x544dfd
push str.cannot_access_temporary_or_unlogged_relations_during_recovery
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
mov eax, 0xfffffff9
mov word [ebx + 0x44], ax
mov ecx, dword [esi + 0x24]
mov dx, word [ecx + 0x74]
mov word [ebx + 0x46], dx
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x58]
movsx edx, dx
lea eax, [edx*4 + 0x20]
mov dword [ebx + 0x3c], ecx
mov ecx, dword [sym.postgres.exe_CurrentMemoryContext]
push eax
push ecx
call sym.postgres.exe_MemoryContextAllocZero
movsx edx, word [ebx + 0x46]
mov dword [ebx + 0x48], eax
movsx eax, word [ebx + 0x44]
sub edx, eax
lea ecx, [edx*4 + 4]
mov edx, dword [sym.postgres.exe_CurrentMemoryContext]
push ecx
push edx
call sym.postgres.exe_MemoryContextAllocZero
add esp, 0x10
cmp byte [ebp + 0x10], 0
mov dword [ebx + 0x4c], eax
jne 0x544f5b
lea edx, [ebx + 0x60]
push edx
movsx edx, word [ebx + 0x44]
lea ecx, [ebx + 0x58]
push ecx
add edx, edx
lea ecx, [ebx + 0x54]
add edx, edx
push ecx
sub eax, edx
push eax
push esi
call sym.postgres.exe_estimate_rel_size
add esp, 0x14
cmp byte [sym.postgres.exe_IgnoreSystemIndexes], 0
je 0x544e9f
mov eax, dword [esi + 0x24]
push eax
call sym.postgres.exe_IsSystemClass
add esp, 4
test al, al
jne 0x544f5b
mov ecx, dword [esi + 0x24]
cmp byte [ecx + 0x70], 0
je 0x544f5b
push esi
call sym.postgres.exe_RelationGetIndexList
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov edx, dword [ebx + 0x38]
xor ebx, ebx
add esp, 4
cmp edx, dword [ecx + 0x18]
mov dword [ebp - 0x34], eax
sete bl
lea ebx, [ebx + ebx + 1]
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp + 0x14]
test eax, eax
je 0x544f52
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x544f52
push edi
jmp 0x544ee7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x28]
push ecx
push eax
call sym.postgres.exe_index_open
mov edi, eax
mov eax, dword [edi + 0x54]
add esp, 8
cmp byte [eax + 0xf], 0
mov dword [ebp - 0xc], eax
je 0x544f36
cmp byte [eax + 0x11], 0
je 0x544f36
cmp byte [eax + 0x10], 0
je 0x544f8d
mov edx, dword [sym.postgres.exe_TransactionXmin]
mov eax, dword [edi + 0x58]
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [ecx]
push edx
call sym.postgres.exe_TransactionIdPrecedes
add esp, 8
test al, al
jne 0x544f8d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov byte [ecx + 0x34], 1
push 0
push edi
call sym.postgres.exe_index_close
add esp, 8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x544ee4
mov eax, dword [ebp - 0x34]
pop edi
push eax
call sym.postgres.exe_list_free
add esp, 4
mov edx, dword [ebp - 0x14]
push 0
push esi
mov dword [ebx + 0x50], edx
call sym.postgres.exe_relation_close
mov eax, dword [sym.postgres.exe_get_relation_info_hook]
add esp, 8
test eax, eax
je 0x544f87
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
call eax
add esp, 0x10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [sym.postgres.exe_CurrentMemoryContext]
push 0x60
push edx
call sym.postgres.exe_MemoryContextAllocZeroAligned
mov dword [sym.postgres.exe_newNodeMacroHolder], eax
mov dword [eax], 0x1f7
mov esi, dword [sym.postgres.exe_newNodeMacroHolder]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov edx, dword [edi + 0x24]
mov ecx, dword [edx + 0x58]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
movsx ebx, word [eax + 8]
lea eax, [ebx*4]
mov dword [esi + 0x20], ebx
mov edx, dword [sym.postgres.exe_CurrentMemoryContext]
push eax
push edx
mov dword [ebp - 0x18], ebx
call sym.postgres.exe_MemoryContextAlloc
mov dword [esi + 0x24], eax
lea eax, [ebx*4]
push eax
mov eax, dword [sym.postgres.exe_CurrentMemoryContext]
push eax
call sym.postgres.exe_MemoryContextAlloc
mov dword [esi + 0x28], eax
mov ecx, dword [sym.postgres.exe_CurrentMemoryContext]
lea eax, [ebx*4]
push eax
push ecx
call sym.postgres.exe_MemoryContextAlloc
mov dword [esi + 0x2c], eax
mov edx, dword [sym.postgres.exe_CurrentMemoryContext]
lea eax, [ebx*4]
push eax
push edx
call sym.postgres.exe_MemoryContextAlloc
mov dword [esi + 0x30], eax
add esp, 0x28
xor eax, eax
test ebx, ebx
jle 0x545073
mov ecx, dword [ebp - 0xc]
add ecx, 0x2c
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movsx ecx, word [edx]
mov edx, dword [esi + 0x24]
add dword [ebp - 8], 2
mov dword [edx + eax*4], ecx
mov ecx, dword [edi + 0x94]
mov ecx, dword [ecx + eax*4]
mov edx, dword [esi + 0x28]
mov dword [edx + eax*4], ecx
mov edx, dword [edi + 0x68]
mov edx, dword [edx + eax*4]
mov ecx, dword [esi + 0x2c]
mov dword [ecx + eax*4], edx
mov ecx, dword [edi + 0x6c]
mov ecx, dword [ecx + eax*4]
mov edx, dword [esi + 0x30]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, ebx
jl 0x545037
mov edx, dword [edi + 0x24]
mov eax, dword [edx + 0x50]
mov dword [esi + 0x40], eax
mov ecx, dword [edi + 0x5c]
mov edx, dword [ecx + 0x88]
push edi
mov dword [esi + 0x44], edx
call sym.postgres.exe_index_can_return
mov byte [esi + 0x58], al
mov eax, dword [edi + 0x5c]
movzx ecx, byte [eax + 0x45]
mov byte [esi + 0x59], cl
mov edx, dword [edi + 0x5c]
mov al, byte [edx + 0x49]
mov byte [esi + 0x5a], al
mov ecx, dword [edi + 0x5c]
mov dl, byte [ecx + 0x4a]
mov byte [esi + 0x5b], dl
mov eax, dword [edi + 0x5c]
movzx ecx, byte [eax + 0x4b]
mov byte [esi + 0x5c], cl
mov edx, dword [edi + 0x5c]
xor eax, eax
add esp, 4
cmp dword [edx + 0x5c], eax
setne cl
mov byte [esi + 0x5d], cl
mov edx, dword [edi + 0x5c]
cmp dword [edx + 0x60], eax
setne cl
cmp dword [esi + 0x40], 0x193
mov byte [esi + 0x5e], cl
jne 0x54513b
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x34], edx
mov eax, dword [sym.postgres.exe_CurrentMemoryContext]
push ebx
push eax
call sym.postgres.exe_MemoryContextAlloc
mov dword [esi + 0x38], eax
mov ecx, dword [sym.postgres.exe_CurrentMemoryContext]
push ebx
push ecx
call sym.postgres.exe_MemoryContextAlloc
mov dword [esi + 0x3c], eax
add esp, 0x10
xor eax, eax
test ebx, ebx
jle 0x545210
nop
mov edx, dword [edi + 0x78]
movzx ecx, word [edx + eax*2]
mov edx, dword [esi + 0x38]
mov dword [ebp - 0x18], ecx
and cl, 1
mov byte [eax + edx], cl
mov ecx, dword [ebp - 0x18]
mov edx, dword [esi + 0x3c]
shr ecx, 1
and cl, 1
mov byte [eax + edx], cl
inc eax
cmp eax, ebx
jl 0x545110
jmp 0x545210
mov ecx, dword [edi + 0x5c]
cmp byte [ecx + 0x44], al
je 0x545207
mov edx, dword [sym.postgres.exe_CurrentMemoryContext]
lea eax, [ebx*4]
push eax
push edx
call sym.postgres.exe_MemoryContextAlloc
mov dword [esi + 0x34], eax
mov eax, dword [sym.postgres.exe_CurrentMemoryContext]
push ebx
push eax
call sym.postgres.exe_MemoryContextAlloc
mov dword [esi + 0x38], eax
mov ecx, dword [sym.postgres.exe_CurrentMemoryContext]
push ebx
push ecx
call sym.postgres.exe_MemoryContextAlloc
xor ebx, ebx
add esp, 0x18
mov dword [esi + 0x3c], eax
cmp dword [ebp - 0x18], ebx
jle 0x545210
jmp 0x545190
mov edx, dword [edi + 0x78]
movzx eax, word [edx + ebx*2]
mov edx, dword [esi + 0x38]
mov cl, al
and cl, 1
mov byte [ebx + edx], cl
mov ecx, dword [esi + 0x3c]
shr eax, 1
and al, 1
mov byte [ebx + ecx], al
mov edx, dword [esi + 0x30]
mov eax, dword [edx + ebx*4]
push 1
push eax
push eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + ebx*4]
push ecx
call sym.postgres.exe_get_opfamily_member
add esp, 0x10
test eax, eax
je 0x545205
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x30]
push edx
push eax
call sym.postgres.exe_get_ordering_op_properties
add esp, 0x10
test al, al
je 0x545205
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax + ebx*4]
jne 0x545205
cmp word [ebp - 4], 1
jne 0x545205
mov edx, dword [esi + 0x34]
mov eax, dword [ebp - 0x30]
mov dword [edx + ebx*4], eax
inc ebx
cmp ebx, dword [ebp - 0x18]
jl 0x545190
jmp 0x545210
xor eax, eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], eax
push edi
call sym.postgres.exe_RelationGetIndexExpressions
push edi
mov dword [esi + 0x48], eax
call sym.postgres.exe_RelationGetIndexPredicate
mov ebx, dword [ebp - 0x20]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x48]
add esp, 8
test eax, eax
je 0x545242
cmp ebx, 1
je 0x545242
push 0
push ebx
push 1
push eax
call sym.postgres.exe_ChangeVarNodes
add esp, 0x10
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x54525c
cmp ebx, 1
je 0x54525c
push 0
push ebx
push 1
push eax
call sym.postgres.exe_ChangeVarNodes
add esp, 0x10
mov ecx, dword [ebp - 0x24]
push ecx
mov ebx, esi
call fcn.00544900
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0xc]
mov byte [esi + 0x54], 0
mov dl, byte [eax + 0xa]
mov byte [esi + 0x55], dl
mov al, byte [eax + 0xd]
add esp, 4
cmp dword [esi + 0x4c], 0
mov byte [esi + 0x56], al
mov byte [esi + 0x57], 0
jne 0x5452a3
push 0
push edi
call sym.postgres.exe_RelationGetNumberOfBlocksInFork
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
fld qword [eax + 0x58]
add esp, 8
fstp qword [esi + 0x18]
jmp 0x5452d1
lea ecx, [ebp - 0x1c]
push ecx
lea ebx, [esi + 0x18]
push ebx
lea edx, [esi + 0x10]
push edx
push 0
push edi
call sym.postgres.exe_estimate_rel_size
mov eax, dword [ebp + 0x14]
fld qword [eax + 0x58]
add esp, 0x14
fcomp qword [ebx]
fnstsw ax
test ah, 5
jp 0x5452d1
mov eax, dword [ebp + 0x14]
fld qword [eax + 0x58]
fstp qword [ebx]
push 0
push edi
call sym.postgres.exe_index_close
mov eax, dword [ebp - 0x14]
push eax
push esi
call sym.postgres.exe_lcons
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp - 0x24]
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x544f41