Function at 0x5c3c90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x70], eax
test eax, eax
je 0x5c3cc2
mov byte [eax], 0
cmp byte [sym.postgres.exe_log_executor_stats], 0
je 0x5c3cf9
cmp dword [esi + 0x2c], 4
je 0x5c3cf9
push 0x73e1f4
push 0x2d8
push str.src_backend_tcoppquery.c
call sym.postgres.exe_elog_start
push 0x73e1f4
push 0xc
call sym.postgres.exe_elog_finish
add esp, 0x14
call sym.postgres.exe_ResetUsage
cmp dword [esi + 0x34], 2
je 0x5c3d45
push 0
push 0x73e1f4
push 0x2e3
push str.src_backend_tcoppquery.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5c3d45
mov edx, dword [esi]
push edx
push str.portal___s__cannot_be_run
call sym.postgres.exe_errmsg
add esp, 8
push eax
push 0x145
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov dword [esi + 0x34], 3
mov edx, dword [sym.postgres.exe_ActivePortal]
mov eax, dword [sym.postgres.exe_TopTransactionResourceOwner]
mov ecx, dword [sym.postgres.exe_TopTransactionContext]
mov dword [ebp - 0x50], edx
mov edx, dword [sym.postgres.exe_CurrentMemoryContext]
mov dword [ebp - 0x5c], eax
mov eax, dword [sym.postgres.exe_CurrentResourceOwner]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [sym.postgres.exe_PortalContext]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x54], eax
mov eax, dword [sym.postgres.exe_PG_exception_stack]
mov dword [ebp - 0x64], ecx
mov ecx, dword [sym.postgres.exe_error_context_stack]
lea edx, [ebp - 0x44]
push 0
push edx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x58], ecx
call sub.MSVCR100.dll__setjmp3
add esp, 8
test eax, eax
jne 0x5c3f6d
mov ebx, dword [ebp - 0x6c]
lea eax, [ebp - 0x44]
mov dword [sym.postgres.exe_PG_exception_stack], eax
mov dword [sym.postgres.exe_ActivePortal], ebx
mov ecx, dword [ebx + 0xc]
mov dword [sym.postgres.exe_CurrentResourceOwner], ecx
mov eax, dword [ebx + 8]
mov dword [sym.postgres.exe_PortalContext], eax
mov dword [sym.postgres.exe_CurrentMemoryContext], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
js 0x5c3eba
cmp eax, 3
jle 0x5c3e10
cmp eax, 4
jne 0x5c3eba
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
push edx
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
mov eax, ebx
call fcn.005c3460
push ebx
call sym.postgres.exe_MarkPortalDone
add esp, 0x14
mov byte [ebp - 0x45], 1
jmp 0x5c3ee5
test eax, eax
je 0x5c3e28
cmp dword [ebx + 0x48], 0
jne 0x5c3e28
mov eax, dword [ebp + 0x10]
push eax
mov ecx, ebx
call fcn.005c3940
add esp, 4
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp + 0xc]
push ecx
push 1
mov ecx, ebx
call fcn.005c3770
mov edx, dword [ebp - 0x70]
add esp, 8
mov dword [ebp - 0x7c], eax
test edx, edx
je 0x5c3eab
cmp dword [ebx + 0x1c], 0
je 0x5c3eab
mov ecx, dword [ebx + 0x1c]
mov edi, 0x6b85b4
mov esi, ecx
mov al, byte [esi]
cmp al, byte [edi]
jne 0x5c3e75
test al, al
je 0x5c3e71
mov al, byte [esi + 1]
cmp al, byte [edi + 1]
jne 0x5c3e75
add esi, 2
add edi, 2
test al, al
jne 0x5c3e55
xor eax, eax
jmp 0x5c3e7a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5c3ea1
mov eax, dword [ebp - 0x7c]
push eax
push str.SELECT__u
push 0x40
push edx
call sym.postgres.exe_pg_snprintf
mov dword [ebx + 0x34], 2
mov cl, byte [ebx + 0x51]
add esp, 0x10
mov byte [ebp - 0x45], cl
jmp 0x5c3ee5
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x5c3ea1
mov dword [ebx + 0x34], 2
mov cl, byte [ebx + 0x51]
mov byte [ebp - 0x45], cl
jmp 0x5c3ee5
push 0x73e1f4
push 0x339
push str.src_backend_tcoppquery.c
call sym.postgres.exe_elog_start
mov edx, dword [ebx + 0x2c]
push edx
push str.unrecognized_portal_strategy:__d
push 0x14
call sym.postgres.exe_elog_finish
add esp, 0x18
mov byte [ebp - 0x45], 0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x58]
mov dword [sym.postgres.exe_PG_exception_stack], eax
mov eax, dword [ebp - 0x60]
mov dword [sym.postgres.exe_error_context_stack], ecx
cmp eax, dword [ebp - 0x4c]
jne 0x5c3f0c
mov edx, dword [sym.postgres.exe_TopTransactionContext]
mov dword [sym.postgres.exe_CurrentMemoryContext], edx
jmp 0x5c3f11
mov dword [sym.postgres.exe_CurrentMemoryContext], eax
mov eax, dword [ebp - 0x50]
mov dword [sym.postgres.exe_ActivePortal], eax
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x5c]
jne 0x5c3f2f
mov ecx, dword [sym.postgres.exe_TopTransactionResourceOwner]
mov dword [sym.postgres.exe_CurrentResourceOwner], ecx
jmp 0x5c3f34
mov dword [sym.postgres.exe_CurrentResourceOwner], eax
cmp byte [sym.postgres.exe_log_executor_stats], 0
mov edx, dword [ebp - 0x64]
mov dword [sym.postgres.exe_PortalContext], edx
je 0x5c3f59
cmp dword [ebx + 0x2c], 4
je 0x5c3f59
push str.EXECUTOR_STATISTICS
call sym.postgres.exe_ShowUsage
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x45]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x58]
push edx
mov dword [sym.postgres.exe_PG_exception_stack], eax
mov dword [sym.postgres.exe_error_context_stack], ecx
call sym.postgres.exe_MarkPortalFailed
mov eax, dword [ebp - 0x60]
add esp, 4
cmp eax, dword [ebp - 0x4c]
jne 0x5c3f97
mov eax, dword [sym.postgres.exe_TopTransactionContext]
mov ecx, dword [ebp - 0x50]
mov dword [sym.postgres.exe_CurrentMemoryContext], eax
mov eax, dword [ebp - 0x54]
mov dword [sym.postgres.exe_ActivePortal], ecx
cmp eax, dword [ebp - 0x5c]
jne 0x5c3fbb
mov edx, dword [sym.postgres.exe_TopTransactionResourceOwner]
mov dword [sym.postgres.exe_CurrentResourceOwner], edx
jmp 0x5c3fc0
mov dword [sym.postgres.exe_CurrentResourceOwner], eax
mov eax, dword [ebp - 0x64]
mov dword [sym.postgres.exe_PortalContext], eax
call sym.postgres.exe_pg_re_throw
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3