Function at 0x6619f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x68], edx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
cmp esi, ebx
je 0x661ae0
mov eax, dword [esi + 4]
mov dword [ebp - 0x90], eax
cmp eax, ebx
je 0x661ae6
lea ecx, [esi + 0x10]
mov dword [ebp - 0x9c], ecx
cmp eax, 2
jne 0x661a67
cmp dword [ecx + 4], eax
je 0x661ab7
push ebx
push str.xpath_internal
push 0xec1
push str.src_backendutils_adtxml.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x661ab7
push str.The_array_must_be_two_dimensional_with_length_of_the_second_axis_equal_to_2.
call sym.postgres.exe_errdetail
add esp, 4
push eax
push str.invalid_array_for_XML_namespace_mapping
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x82
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x64]
push edx
push 0x69
push ebx
push 0xffffffffffffffff
push 0x19
push esi
call sym.postgres.exe_deconstruct_array
mov eax, dword [ebp - 0x60]
cdq
sub eax, edx
add esp, 0x20
sar eax, 1
mov dword [ebp - 0x60], eax
jmp 0x661aef
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x60], ebx
mov esi, dword [edi]
mov ecx, dword [ebp - 0x78]
lea eax, [edi + 4]
mov edi, dword [ecx]
shr esi, 2
sub esi, 4
shr edi, 2
sub edi, 4
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x98], edi
jne 0x661b58
push ebx
push str.xpath_internal
push 0xed9
push str.src_backendutils_adtxml.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x661b58
push str.empty_XPath_expression
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x82
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov eax, dword [sym.postgres.exe_CurrentMemoryContext]
lea edx, [esi + 1]
push edx
push eax
call sym.postgres.exe_MemoryContextAlloc
mov ecx, dword [ebp - 0x8c]
push esi
mov ebx, eax
push ecx
push ebx
mov dword [ebp - 0x84], ebx
call sub.MSVCR100.dll_memcpy
lea edx, [edi + 1]
mov byte [ebx + esi], 0
mov eax, dword [sym.postgres.exe_CurrentMemoryContext]
push edx
push eax
call sym.postgres.exe_MemoryContextAlloc
mov ecx, dword [ebp - 0x78]
push edi
add ecx, 4
mov esi, eax
push ecx
push esi
mov dword [ebp - 0x88], esi
call sub.MSVCR100.dll_memcpy
push 2
mov byte [esi + edi], 0
call sym.postgres.exe_pg_xml_init
mov edx, dword [sym.postgres.exe_PG_exception_stack]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.postgres.exe_error_context_stack]
lea ecx, [ebp - 0x44]
push 0
push ecx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x74], eax
call sub.MSVCR100.dll__setjmp3
add esp, 0x34
test eax, eax
jne 0x661ed8
lea edx, [ebp - 0x44]
mov dword [sym.postgres.exe_PG_exception_stack], edx
call sub.libxml2.dll_xmlInitParser
call sub.libxml2.dll_xmlNewParserCtxt
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
test eax, eax
mov eax, dword [ebp - 0x4c]
je 0x661c01
cmp byte [eax + 8], 0
je 0x661c16
push str.could_not_allocate_parser_context
push 0x20c5
push 0x14
push eax
call sym.postgres.exe_xml_ereport
add esp, 0x10
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x5c]
push 0
push 0
push 0
push ecx
push edx
push eax
call sub.libxml2.dll_xmlCtxtReadMemory
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
add esp, 0x18
test ecx, ecx
je 0x661c46
cmp byte [eax + 8], 0
je 0x661c5b
push str.could_not_parse_XML_document
push 0x1d000082
push 0x14
push eax
call sym.postgres.exe_xml_ereport
add esp, 0x10
mov edx, dword [ebp - 0x54]
push edx
call sub.libxml2.dll_xmlXPathNewContext
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 4
test eax, eax
mov eax, dword [ebp - 0x4c]
je 0x661c7a
cmp byte [eax + 8], 0
je 0x661c8f
push str.could_not_allocate_XPath_context
push 0x20c5
push 0x14
push eax
call sym.postgres.exe_xml_ereport
add esp, 0x10
mov ecx, dword [ebp - 0x54]
push ecx
call sub.libxml2.dll_xmlDocGetRootElement
mov edx, dword [ebp - 0x48]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x48]
add esp, 4
cmp dword [eax + 4], 0
mov eax, dword [ebp - 0x4c]
je 0x661cb3
cmp byte [eax + 8], 0
je 0x661cc8
push str.could_not_find_root_XML_element
push 0xa28
push 0x14
push eax
call sym.postgres.exe_xml_ereport
add esp, 0x10
mov eax, dword [ebp - 0x60]
test eax, eax
jle 0x661d9d
xor esi, esi
test eax, eax
jle 0x661d9d
mov eax, dword [ebp - 0x70]
cmp byte [eax + esi*2], 0
jne 0x661ced
cmp byte [eax + esi*2 + 1], 0
je 0x661d30
push 0
push str.xpath_internal
push 0xf0a
push str.src_backendutils_adtxml.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x661d30
push str.neither_namespace_name_nor_URI_may_be_null
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x4000082
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + esi*8]
push edx
call sym.postgres.exe_text_to_cstring
mov edi, eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + esi*8 + 4]
push ecx
call sym.postgres.exe_text_to_cstring
mov edx, dword [ebp - 0x48]
mov ebx, eax
push ebx
push edi
push edx
call sub.libxml2.dll_xmlXPathRegisterNs
add esp, 0x14
test eax, eax
je 0x661d93
push 0
push str.xpath_internal
push 0xf12
push str.src_backendutils_adtxml.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x661d93
push ebx
push edi
push str.could_not_register_XML_namespace_with_name___s__and_URI___s_
call sym.postgres.exe_errmsg
push eax
call sym.postgres.exe_errfinish
add esp, 0x10
inc esi
cmp esi, dword [ebp - 0x60]
jl 0x661cdd
mov eax, dword [ebp - 0x88]
push eax
call sub.libxml2.dll_xmlXPathCompile
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x4c]
add esp, 4
test ecx, ecx
je 0x661dbf
cmp byte [eax + 8], 0
je 0x661dd4
push str.invalid_XPath_expression
push 0xa28
push 0x14
push eax
call sym.postgres.exe_xml_ereport
add esp, 0x10
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x58]
push edx
push eax
call sub.libxml2.dll_xmlXPathCompiledEval
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
add esp, 8
test ecx, ecx
je 0x661df7
cmp byte [eax + 8], 0
je 0x661e0c
push str.could_not_create_XPath_object
push 0xa28
push 0x14
push eax
call sym.postgres.exe_xml_ereport
add esp, 0x10
cmp dword [ebp - 0x7c], 0
mov esi, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x50]
je 0x661e24
call fcn.006618d0
mov edx, dword [ebp - 0x7c]
mov dword [edx], eax
jmp 0x661e29
call fcn.006618d0
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
push edx
mov dword [sym.postgres.exe_PG_exception_stack], eax
mov dword [sym.postgres.exe_error_context_stack], ecx
call sub.libxml2.dll_xmlXPathFreeObject
mov eax, dword [ebp - 0x58]
push eax
call sub.libxml2.dll_xmlXPathFreeCompExpr
mov ecx, dword [ebp - 0x48]
push ecx
call sub.libxml2.dll_xmlXPathFreeContext
mov edx, dword [ebp - 0x54]
push edx
call sub.libxml2.dll_xmlFreeDoc
mov eax, dword [ebp - 0x5c]
push eax
call sub.libxml2.dll_xmlFreeParserCtxt
add esp, 0x14
call sub.libxml2.dll___xmlStructuredErrorContext
mov esi, dword [ebp - 0x4c]
cmp dword [eax], esi
je 0x661e99
push 0x74e9b8
push 0x41a
push str.src_backendutils_adtxml.c
call sym.postgres.exe_elog_start
push str.libxml_error_handling_state_is_out_of_sync_with_xml.c
push 0x13
call sym.postgres.exe_elog_finish
add esp, 0x14
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
push ecx
push edx
call sub.libxml2.dll_xmlSetStructuredErrorFunc
mov eax, dword [esi + 0x24]
push eax
call sub.libxml2.dll_xmlSetExternalEntityLoader
mov dword [esi], 0
mov ecx, dword [esi + 0xc]
push ecx
call sym.postgres.exe_pfree
push esi
call sym.postgres.exe_pfree
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
mov dword [sym.postgres.exe_PG_exception_stack], edx
mov dword [sym.postgres.exe_error_context_stack], eax
test ecx, ecx
je 0x661efc
mov edx, dword [ebp - 0x50]
push edx
call sub.libxml2.dll_xmlXPathFreeObject
add esp, 4
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x661f0f
mov ecx, dword [ebp - 0x58]
push ecx
call sub.libxml2.dll_xmlXPathFreeCompExpr
add esp, 4
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x661f22
mov eax, dword [ebp - 0x48]
push eax
call sub.libxml2.dll_xmlXPathFreeContext
add esp, 4
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x661f35
mov edx, dword [ebp - 0x54]
push edx
call sub.libxml2.dll_xmlFreeDoc
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x661f48
mov ecx, dword [ebp - 0x5c]
push ecx
call sub.libxml2.dll_xmlFreeParserCtxt
add esp, 4
call sub.libxml2.dll___xmlStructuredErrorContext
mov esi, dword [ebp - 0x4c]
cmp dword [eax], esi
je 0x661f77
push 0x74e9b8
push 0x41a
push str.src_backendutils_adtxml.c
call sym.postgres.exe_elog_start
push str.libxml_error_handling_state_is_out_of_sync_with_xml.c
push 0x13
call sym.postgres.exe_elog_finish
add esp, 0x14
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
push edx
push eax
call sub.libxml2.dll_xmlSetStructuredErrorFunc
mov ecx, dword [esi + 0x24]
push ecx
call sub.libxml2.dll_xmlSetExternalEntityLoader
mov dword [esi], 0
mov edx, dword [esi + 0xc]
push edx
call sym.postgres.exe_pfree
push esi
call sym.postgres.exe_pfree
add esp, 0x14
call sym.postgres.exe_pg_re_throw
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3