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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xb1], cl
mov dword [ebp - 0xcc], edx
test edi, edi
jle 0x47f9ff
push 3
push 0xa3b
call sym.postgres.exe_heap_open
mov dword [ebp - 0xb8], eax
xor eax, eax
add esp, 8
mov dword [ebp - 0xc4], eax
test edi, edi
jle 0x47f9ee
push ebx
push esi
jmp 0x47f6b0
mov ecx, dword [ebp - 0xcc]
mov esi, dword [ecx + eax*4]
cmp byte [esi + 0x20], 0
je 0x47f9dd
mov edx, dword [ebp - 0xc8]
mov eax, 0x1010101
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov word [ebp - 0x24], ax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov dword [ebp - 0xa4], edx
mov eax, dword [esi]
movsx ecx, word [eax + 0x4e]
xor eax, eax
and ecx, 0xffff
cmp byte [ebp - 0xb1], al
mov dword [ebp - 0xa0], ecx
setne al
push ecx
mov dword [ebp - 0x9c], eax
fld dword [esi + 0x24]
fstp dword [esp]
mov dword [ebp - 0xd0], eax
call sym.postgres.exe_Float4GetDatum
mov dword [ebp - 0x98], eax
mov edx, dword [esi + 0x28]
mov dword [ebp - 0x94], edx
fld dword [esi + 0x2c]
fstp dword [esp]
call sym.postgres.exe_Float4GetDatum
mov dword [ebp - 0x90], eax
movsx eax, word [esi + 0x30]
and eax, 0xffff
mov dword [ebp - 0x8c], eax
movsx ecx, word [esi + 0x32]
and ecx, 0xffff
mov dword [ebp - 0x88], ecx
movsx edx, word [esi + 0x34]
and edx, 0xffff
mov dword [ebp - 0x84], edx
movsx eax, word [esi + 0x36]
and eax, 0xffff
mov dword [ebp - 0x80], eax
movsx ecx, word [esi + 0x38]
add esp, 4
and ecx, 0xffff
mov dword [ebp - 0x7c], ecx
mov edx, dword [esi + 0x3c]
mov dword [ebp - 0x78], edx
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x74], eax
mov ecx, dword [esi + 0x44]
mov dword [ebp - 0x70], ecx
mov edx, dword [esi + 0x48]
mov dword [ebp - 0x6c], edx
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x64]
lea eax, [esi + 0x64]
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xbc], 5
mov ecx, dword [ebp - 0xa8]
mov ebx, dword [ecx - 0x14]
test ebx, ebx
jle 0x47f864
mov eax, dword [sym.postgres.exe_CurrentMemoryContext]
lea edx, [ebx*4]
push edx
push eax
call sym.postgres.exe_MemoryContextAlloc
add esp, 8
xor edi, edi
mov dword [ebp - 0xc0], eax
test ebx, ebx
jle 0x47f839
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx]
fld dword [edx + edi*4]
push ecx
fstp dword [esp]
call sym.postgres.exe_Float4GetDatum
mov ecx, dword [ebp - 0xc0]
mov dword [ecx + edi*4], eax
inc edi
add esp, 4
cmp edi, ebx
jl 0x47f814
mov edx, dword [ebp - 0xc0]
push 0x69
push 1
push 4
push 0x2bc
push ebx
push edx
call sym.postgres.exe_construct_array
mov ecx, dword [ebp - 0xac]
add esp, 0x18
inc dword [ebp - 0xb0]
mov dword [ecx], eax
jmp 0x47f880
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xac]
mov byte [eax], 1
inc eax
mov dword [ecx], 0
mov dword [ebp - 0xb0], eax
add dword [ebp - 0xa8], 4
add ecx, 4
dec dword [ebp - 0xbc]
mov dword [ebp - 0xac], ecx
jne 0x47f7e5
lea eax, [ebp - 0xb]
lea ecx, [ebp - 0x50]
lea edx, [esi + 0xb4]
xor ebx, ebx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xac], ecx
lea edi, [esi + 0x78]
mov dword [ebp - 0xb0], edx
nop
mov eax, dword [edi]
test eax, eax
jle 0x47f903
movzx ecx, byte [ebx + esi + 0xc3]
movzx edx, byte [ebx + esi + 0xbe]
push ecx
mov ecx, dword [ebp - 0xb0]
push edx
movsx edx, word [ecx]
mov ecx, dword [edi + 0x28]
push edx
mov edx, dword [edi + 0x14]
push ecx
push eax
push edx
call sym.postgres.exe_construct_array
mov ecx, dword [ebp - 0xac]
add esp, 0x18
inc dword [ebp - 0xa8]
mov dword [ecx], eax
jmp 0x47f91f
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xac]
mov byte [eax], 1
inc eax
mov dword [ecx], 0
mov dword [ebp - 0xa8], eax
add dword [ebp - 0xb0], 2
add ecx, 4
inc ebx
add edi, 4
mov dword [ebp - 0xac], ecx
cmp ebx, 5
jl 0x47f8c0
mov ecx, dword [esi]
movsx edx, word [ecx + 0x4e]
mov eax, dword [ebp - 0xd0]
push 0
push eax
mov eax, dword [ebp - 0xc8]
and edx, 0xffff
push edx
push eax
push 0x2d
call sym.postgres.exe_SearchSysCache
mov esi, eax
add esp, 0x14
test esi, esi
je 0x47f99c
mov ebx, dword [ebp - 0xb8]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebx + 0x28]
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0xa4]
push eax
push ecx
push esi
call sym.postgres.exe_heap_modify_tuple
push esi
mov edi, eax
call sym.postgres.exe_ReleaseSysCache
push edi
lea edx, [edi + 4]
push edx
push ebx
call sym.postgres.exe_simple_heap_update
add esp, 0x24
jmp 0x47f9c4
mov esi, dword [ebp - 0xb8]
mov edx, dword [esi + 0x28]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xa4]
push ecx
push edx
call sym.postgres.exe_heap_form_tuple
mov edi, eax
push edi
push esi
call sym.postgres.exe_simple_heap_insert
add esp, 0x14
mov ebx, esi
push edi
push ebx
call sym.postgres.exe_CatalogUpdateIndexes
push edi
call sym.postgres.exe_heap_freetuple
mov eax, dword [ebp - 0xc4]
mov edi, dword [ebp + 0xc]
add esp, 0xc
inc eax
mov dword [ebp - 0xc4], eax
cmp eax, edi
jl 0x47f6b0
pop esi
pop ebx
mov eax, dword [ebp - 0xb8]
push 3
push eax
call sym.postgres.exe_relation_close
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret