Function at 0x5f96a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 2
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x50], eax
jne 0x5f9cb6
mov edx, dword [sym.postgres.exe_PG_exception_stack]
mov eax, dword [sym.postgres.exe_error_context_stack]
lea ecx, [ebp - 0x44]
push 0
push ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], eax
call sub.MSVCR100.dll__setjmp3
add esp, 8
test eax, eax
jne 0x5f9cc7
mov esi, dword [ebp - 0x50]
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0x44]
mov ebx, 0x4000
mov dword [sym.postgres.exe_PG_exception_stack], edx
test dword [esi + 0xc], ebx
je 0x5f9751
mov eax, dword [edi + 4]
cmp dword [eax + 8], 7
je 0x5f9751
push 0
push str.NUMDesc_prepare
push 0x425
push str.src_backendutils_adt_formatting.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5f9751
push str._EEEE__must_be_the_last_pattern_used
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1006084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 0x1d
ja case.0x5f9768.5
movzx edx, byte [eax + 0x5f9d3c]
jmp dword [edx*4 + 0x5f9cfc]
test byte [esi + 0xc], 0x80
je 0x5f97b8
push 0
push str.NUMDesc_prepare
push 0x42d
push str.src_backendutils_adt_formatting.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5f97b8
push str._9__must_be_ahead_of__PR_
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1006084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov eax, dword [esi + 0xc]
test eax, 0x800
je 0x5f97ca
inc dword [esi + 0x14]
jmp case.0x5f9768.5
test al, 2
je 0x5f97d6
inc dword [esi + 4]
jmp case.0x5f9768.5
inc dword [esi]
jmp case.0x5f9768.5
test byte [esi + 0xc], 0x80
je 0x5f9826
push 0
push str.NUMDesc_prepare
push 0x43d
push str.src_backendutils_adt_formatting.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5f9826
push str._0__must_be_ahead_of__PR_
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1006084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov eax, dword [esi + 0xc]
mov ecx, 1
test al, 0xa
jne 0x5f983d
or dword [esi + 0xc], 8
mov eax, dword [esi]
add eax, ecx
mov dword [esi + 0x18], eax
test byte [esi + 0xc], 2
jne 0x5f9852
add dword [esi], ecx
mov ecx, dword [esi + 4]
add ecx, dword [esi]
mov dword [esi + 0x1c], ecx
jmp case.0x5f9768.5
add dword [esi + 4], ecx
mov ecx, dword [esi + 4]
add ecx, dword [esi]
mov dword [esi + 0x1c], ecx
jmp case.0x5f9768.5
cmp dword [esi], 0
jne case.0x5f9768.5
cmp dword [esi + 4], 0
jne case.0x5f9768.5
test byte [esi + 0xc], 8
jne case.0x5f9768.5
or dword [esi + 0xc], 0x10
jmp case.0x5f9768.5
or dword [esi + 0xc], 4
mov dword [esi + 0x20], 1
test byte [esi + 0xc], 2
je 0x5f98dc
push 0
push str.NUMDesc_prepare
push 0x458
push str.src_backendutils_adt_formatting.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5f98dc
push str.multiple_decimal_points
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1006084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
test dword [esi + 0xc], 0x800
je 0x5f9928
push 0
push str.NUMDesc_prepare
push 0x45c
push str.src_backendutils_adt_formatting.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5f9928
push str.cannot_use__V__and_decimal_point_together
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1006084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
or dword [esi + 0xc], 2
jmp case.0x5f9768.5
or dword [esi + 0xc], 0x20
jmp case.0x5f9768.5
mov ebx, 0x40
test byte [esi + 0xc], bl
je 0x5f9987
push 0
push str.NUMDesc_prepare
push 0x468
push str.src_backendutils_adt_formatting.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5f9987
push str.cannot_use__S__twice
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1006084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov eax, dword [esi + 0xc]
test eax, 0x300
jne 0x5f9995
test al, al
jns 0x5f99d8
push 0
push str.NUMDesc_prepare
push 0x46c
push str.src_backendutils_adt_formatting.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5f99d8
push str.cannot_use__S__and__PL___MI___SG___PR__together
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1006084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
test byte [esi + 0xc], 2
jne 0x5f99f6
mov dword [esi + 8], 0xffffffff
mov edx, dword [esi]
mov dword [esi + 0x10], edx
mov dword [esi + 0x20], 1
jmp 0x5f9ca2
cmp dword [esi + 8], 0
jne case.0x5f9768.5
mov ecx, 1
mov dword [esi + 8], ecx
mov dword [esi + 0x20], ecx
jmp 0x5f9ca2
test byte [esi + 0xc], 0x40
je 0x5f9a59
push 0
push str.NUMDesc_prepare
push 0x480
push str.src_backendutils_adt_formatting.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5f9a59
push str.cannot_use__S__and__MI__together
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1006084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
or dword [esi + 0xc], 0x100
test byte [esi + 0xc], 2
je case.0x5f9768.5
or dword [esi + 0xc], 0x2000
jmp case.0x5f9768.5
test byte [esi + 0xc], 0x40
je 0x5f9abf
push 0
push str.NUMDesc_prepare
push 0x48a
push str.src_backendutils_adt_formatting.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5f9abf
push str.cannot_use__S__and__PL__together
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1006084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
or dword [esi + 0xc], 0x200
test byte [esi + 0xc], 2
je case.0x5f9768.5
or dword [esi + 0xc], 0x1000
jmp case.0x5f9768.5
test byte [esi + 0xc], 0x40
je 0x5f9b25
push 0
push str.NUMDesc_prepare
push 0x494
push str.src_backendutils_adt_formatting.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5f9b25
push str.cannot_use__S__and__SG__together
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1006084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
or dword [esi + 0xc], 0x300
jmp case.0x5f9768.5
mov eax, dword [esi + 0xc]
test al, 0x40
jne 0x5f9b3f
test eax, 0x300
je 0x5f9b82
push 0
push str.NUMDesc_prepare
push 0x49d
push str.src_backendutils_adt_formatting.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5f9b82
push str.cannot_use__PR__and__S___PL___MI___SG__together
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1006084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
or dword [esi + 0xc], 0x80
jmp case.0x5f9768.5
or dword [esi + 0xc], 0x400
jmp case.0x5f9768.5
mov dword [esi + 0x20], 1
jmp case.0x5f9768.5
test byte [esi + 0xc], 2
je 0x5f9bef
push 0
push str.NUMDesc_prepare
push 0x4af
push str.src_backendutils_adt_formatting.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5f9bef
push str.cannot_use__V__and_decimal_point_together
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1006084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
or dword [esi + 0xc], 0x800
jmp case.0x5f9768.5
test dword [esi + 0xc], ebx
je 0x5f9c43
push 0
push str.NUMDesc_prepare
push 0x4b7
push str.src_backendutils_adt_formatting.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5f9c43
push str.cannot_use__EEEE__twice
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1006084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov eax, dword [esi + 0xc]
test al, 0xf0
jne 0x5f9c51
test eax, 0xf00
je 0x5f9ca2
push 0
push str.NUMDesc_prepare
push 0x4be
push str.src_backendutils_adt_formatting.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5f9ca2
push str._EEEE__may_only_be_used_together_with_digit_and_decimal_point_patterns.
call sym.postgres.exe_errdetail
add esp, 4
push eax
push str._EEEE__is_incompatible_with_other_formats
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1006084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
or dword [esi + 0xc], ebx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [sym.postgres.exe_PG_exception_stack], eax
mov dword [sym.postgres.exe_error_context_stack], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
mov dword [sym.postgres.exe_error_context_stack], eax
mov eax, dword [0x824024]
mov dword [sym.postgres.exe_PG_exception_stack], edx
mov byte [eax + 0x410], 0
mov dword [eax + 0x454], 0
call sym.postgres.exe_pg_re_throw
push 1
call dword [sym.imp.MSVCR100.dll_exit]
nop
xchg ebx, eax
cwde
pop edi
add ch, bl
xchg edi, eax
pop edi
add byte [edi - 0x69], ch
pop edi
add byte [edx - 0x68], ah
pop edi
add byte [eax - 0x4ffa068], cl
wait
pop edi
add byte [ecx], dh
cdq
pop edi
add byte [edx + 0x10005f9b], bl
lcall 0x5f, 0x9a76005f
xor dword [ebx - 0x6471ffa1], ebx
pop edi
add ah, bl
lcall 0x5f, 0x993a005f
cmpsb byte [esi], byte es:[edi]
wait
pop edi
add byte [ebp + 0x5f9c], ah
add dword [edx], eax
add ecx, dword [edi]
add al, 5
push es
pop es
pop es
or byte [ecx], cl
or cl, byte [ebx]
or al, 15
or eax, 252644879
invalid