Function at 0x48e630
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x188], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0x10c], ecx
or ecx, 0xffffffff
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x100], edi
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x110], edi
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x184], eax
cmp eax, edi
je 0x48e708
mov eax, dword [eax + 8]
mov dword [ebp - 0xfc], eax
cmp eax, edi
je 0x48eb5f
lea esp, [esp]
mov edx, dword [ebp - 0xfc]
mov ebx, dword [edx]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x180], ebx
mov ecx, str.tablespace
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48e713
test dl, dl
je 0x48e704
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48e713
add eax, 2
add ecx, 2
test dl, dl
jne 0x48e6e8
xor eax, eax
jmp 0x48e718
mov dword [ebp - 0xfc], edi
jmp 0x48eb5f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x48e769
test edi, edi
je 0x48e762
push eax
push 0x6c06c0
push 0x90
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48e762
push str.conflicting_or_redundant_options
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 edi, ebx
jmp 0x48eb42
mov ecx, str.owner
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48e790
test dl, dl
je 0x48e78c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48e790
add eax, 2
add ecx, 2
test dl, dl
jne 0x48e770
xor eax, eax
jmp 0x48e795
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x48e7ee
cmp dword [ebp - 0x104], eax
je 0x48e7e3
push eax
push 0x6c06c0
push 0x98
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48e7e3
push str.conflicting_or_redundant_options
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 dword [ebp - 0x104], ebx
jmp 0x48eb42
mov ecx, str.template
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48e815
test dl, dl
je 0x48e811
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48e815
add eax, 2
add ecx, 2
test dl, dl
jne 0x48e7f5
xor eax, eax
jmp 0x48e81a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x48e873
cmp dword [ebp - 0x118], eax
je 0x48e868
push eax
push 0x6c06c0
push 0xa0
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48e868
push str.conflicting_or_redundant_options
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 dword [ebp - 0x118], ebx
jmp 0x48eb42
mov ecx, 0x6bf22c
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48e8a0
test dl, dl
je 0x48e89c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48e8a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x48e880
xor eax, eax
jmp 0x48e8a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x48e8fe
cmp dword [ebp - 0xf8], eax
je 0x48e8f3
push eax
push 0x6c06c0
push 0xa8
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48e8f3
push str.conflicting_or_redundant_options
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 dword [ebp - 0xf8], ebx
jmp 0x48eb42
mov ecx, str.lc_collate
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48e925
test dl, dl
je 0x48e921
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48e925
add eax, 2
add ecx, 2
test dl, dl
jne 0x48e905
xor eax, eax
jmp 0x48e92a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x48e983
cmp dword [ebp - 0x120], eax
je 0x48e978
push eax
push 0x6c06c0
push 0xb0
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48e978
push str.conflicting_or_redundant_options
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 dword [ebp - 0x120], ebx
jmp 0x48eb42
mov ecx, str.lc_ctype
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48e9b0
test dl, dl
je 0x48e9ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48e9b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x48e990
xor eax, eax
jmp 0x48e9b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x48ea0e
cmp dword [ebp - 0x100], eax
je 0x48ea03
push eax
push 0x6c06c0
push 0xb8
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48ea03
push str.conflicting_or_redundant_options
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 dword [ebp - 0x100], ebx
jmp 0x48eb42
mov ecx, str.connectionlimit
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48ea35
test dl, dl
je 0x48ea31
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48ea35
add eax, 2
add ecx, 2
test dl, dl
jne 0x48ea15
xor eax, eax
jmp 0x48ea3a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x48ea93
cmp dword [ebp - 0x130], eax
je 0x48ea88
push eax
push 0x6c06c0
push 0xc0
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48ea88
push str.conflicting_or_redundant_options
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 dword [ebp - 0x130], ebx
jmp 0x48eb42
mov ecx, str.location
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48eac0
test dl, dl
je 0x48eabc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48eac0
add eax, 2
add ecx, 2
test dl, dl
jne 0x48eaa0
xor eax, eax
jmp 0x48eac5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x48eb1b
push eax
push 0x6c06c0
push 0xc8
push str.src_backendcommandsdbcommands.c
push 0x13
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48eb42
push str.Consider_using_tablespaces_instead.
call sym.postgres.exe_errhint
add esp, 4
push eax
push str.LOCATION_is_not_supported_anymore
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, 0xc
jmp 0x48eb42
push 0x6c06c0
push 0xcb
push str.src_backendcommandsdbcommands.c
call sym.postgres.exe_elog_start
mov eax, dword [ebx + 8]
push eax
push str.option___s__not_recognized
push 0x14
call sym.postgres.exe_elog_finish
add esp, 0x18
mov ecx, dword [ebp - 0xfc]
mov eax, dword [ecx + 4]
mov dword [ebp - 0xfc], eax
test eax, eax
jne 0x48e6d0
mov dword [ebp - 0x144], edi
mov eax, dword [ebp - 0x104]
test eax, eax
je 0x48eb7b
cmp dword [eax + 0xc], 0
je 0x48eb7b
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x48eb97
cmp dword [eax + 0xc], 0
je 0x48eb97
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xf4], edx
cmp dword [ebp - 0xf8], 0
je 0x48ece4
mov eax, dword [ebp - 0xf8]
cmp dword [eax + 0xc], 0
je 0x48ece4
mov esi, eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
cmp ecx, 0x28b
jne 0x48ec51
mov eax, dword [eax + 4]
push eax
mov dword [ebp - 0xdc], eax
call sym.postgres.exe_pg_encoding_to_char
add esp, 4
mov dword [ebp - 0x174], eax
mov edx, 0x6aaa59
mov ecx, eax
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x48ec06
test bl, bl
je 0x48ec02
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x48ec06
add ecx, 2
add edx, 2
test bl, bl
jne 0x48ebe6
xor ecx, ecx
jmp 0x48ec0b
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x48ec20
push eax
call sym.postgres.exe_pg_valid_server_encoding
add esp, 4
test eax, eax
jns 0x48ece4
push 0
push 0x6c06c0
push 0xe0
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48ece4
mov ecx, dword [ebp - 0xdc]
push ecx
push str._d_is_not_a_valid_encoding_code
jmp 0x48ec9a
cmp ecx, 0x28d
jne 0x48ecbb
mov esi, dword [eax + 4]
push esi
mov dword [ebp - 0x174], esi
call sym.postgres.exe_pg_valid_server_encoding
add esp, 4
mov dword [ebp - 0xdc], eax
test eax, eax
jns 0x48ece4
push 0
push 0x6c06c0
push 0xea
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48ece4
push esi
push str._s_is_not_a_valid_encoding_name
call sym.postgres.exe_errmsg
add esp, 8
push eax
push 0x4007084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
jmp 0x48ece4
push 0x6c06c0
push 0xed
push str.src_backendcommandsdbcommands.c
call sym.postgres.exe_elog_start
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
push eax
push str.unrecognized_node_type:__d
push 0x14
call sym.postgres.exe_elog_finish
add esp, 0x18
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x48ecfc
cmp dword [eax + 0xc], 0
je 0x48ecfc
mov ecx, dword [eax + 0xc]
mov edi, dword [ecx + 4]
jmp 0x48ed02
mov edi, dword [ebp - 0x110]
mov eax, dword [ebp - 0x100]
test eax, eax
je 0x48ed1e
cmp dword [eax + 0xc], 0
je 0x48ed1e
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x48ed83
cmp dword [eax + 0xc], 0
je 0x48ed83
mov ecx, dword [eax + 0xc]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x154], esi
cmp esi, 0xffffffff
jge 0x48ed83
push 0
push 0x6c06c0
push 0xfb
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48ed83
push esi
push str.invalid_connection_limit:__d
call sym.postgres.exe_errmsg
add esp, 8
push eax
push 0x3080082
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x48ed9a
push 0
push eax
call sym.postgres.exe_get_role_oid
add esp, 8
jmp 0x48ed9f
call sym.postgres.exe_GetUserId
mov esi, eax
xor bl, bl
mov dword [ebp - 0x114], esi
mov byte [ebp - 0xe6], bl
call sym.postgres.exe_superuser
test al, al
je 0x48edc4
mov byte [ebp - 0xe5], 1
jmp 0x48ee4b
push 0
push 0
push 0
call sym.postgres.exe_GetUserId
push eax
push 0xb
call sym.postgres.exe_SearchSysCache
add esp, 0x14
mov dword [ebp - 0x190], eax
test eax, eax
je 0x48edfe
mov ecx, dword [eax + 0x10]
movzx edx, byte [ecx + 0x16]
mov bl, byte [edx + ecx + 0x43]
push eax
mov byte [ebp - 0xe6], bl
call sym.postgres.exe_ReleaseSysCache
add esp, 4
mov byte [ebp - 0xe5], bl
test bl, bl
jne 0x48ee4b
push 0
push 0x6c06c0
push 0x10e
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48ee4b
push str.permission_denied_to_create_database
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x1005084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
push esi
call sym.postgres.exe_GetUserId
push eax
call sym.postgres.exe_check_is_member_of_role
mov esi, dword [ebp - 0xf4]
add esp, 8
test esi, esi
jne 0x48ee6f
mov esi, str.template1
mov dword [ebp - 0xf4], esi
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x164]
push ecx
lea edx, [ebp - 0x125]
push edx
lea eax, [ebp - 0xdd]
push eax
lea ecx, [ebp - 0x168]
push ecx
lea edx, [ebp - 0x18c]
push edx
lea eax, [ebp - 0xec]
push eax
push 5
mov eax, esi
call fcn.0048c840
add esp, 0x2c
test al, al
jne 0x48ef09
push 0
push 0x6c06c0
push 0x126
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48ef09
push esi
push str.template_database___s__does_not_exist
call sym.postgres.exe_errmsg
add esp, 8
push eax
push 0x503
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
cmp byte [ebp - 0xdd], 0
jne 0x48ef6f
call sym.postgres.exe_GetUserId
mov ecx, dword [ebp - 0xec]
push eax
push ecx
call sym.postgres.exe_pg_database_ownercheck
add esp, 8
test al, al
jne 0x48ef6f
push 0
push 0x6c06c0
push 0x132
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48ef6f
push esi
push str.permission_denied_to_copy_database___s_
call sym.postgres.exe_errmsg
add esp, 8
push eax
push 0x1005084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov esi, dword [ebp - 0xdc]
mov ebx, dword [ebp - 0x168]
test esi, esi
jns 0x48ef87
mov esi, ebx
mov dword [ebp - 0xdc], esi
test edi, edi
jne 0x48ef91
mov edi, dword [ebp - 0x108]
cmp dword [ebp - 0xf0], 0
jne 0x48efa6
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0xf0], edx
test esi, esi
js 0x48efaf
cmp esi, 0x22
jle 0x48eff3
push 0
push 0x6c06c0
push 0x141
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48eff3
push esi
push str.invalid_server_encoding__d
call sym.postgres.exe_errmsg
add esp, 8
push eax
push 0x9008084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
lea eax, [ebp - 0x12c]
push eax
push edi
push 1
call sym.postgres.exe_check_locale
add esp, 0xc
test al, al
jne 0x48f04d
push 0
push 0x6c06c0
push 0x147
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48f04d
push edi
push str.invalid_locale_name:___s_
call sym.postgres.exe_errmsg
add esp, 8
push eax
push 0x9008084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov edi, dword [ebp - 0xf0]
mov esi, dword [ebp - 0x12c]
lea ecx, [ebp - 0x12c]
push ecx
push edi
push 2
mov dword [ebp - 0x110], esi
call sym.postgres.exe_check_locale
add esp, 0xc
test al, al
jne 0x48f0b9
push 0
push 0x6c06c0
push 0x14c
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48f0b9
push edi
push str.invalid_locale_name:___s_
call sym.postgres.exe_errmsg
add esp, 8
push eax
push 0x9008084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov eax, dword [ebp - 0x12c]
mov edx, dword [ebp - 0xdc]
push eax
mov edi, eax
push esi
push edx
mov dword [ebp - 0xf0], edi
call sym.postgres.exe_check_encoding_locale_matches
mov eax, dword [ebp - 0xf4]
add esp, 0xc
mov ecx, str.template0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48f103
test dl, dl
je 0x48f0ff
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48f103
add eax, 2
add ecx, 2
test dl, dl
jne 0x48f0e3
xor eax, eax
jmp 0x48f108
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48f29c
cmp dword [ebp - 0xdc], ebx
je 0x48f183
push 0
push 0x6c06c0
push 0x163
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48f183
push str.Use_the_same_encoding_as_in_the_template_database__or_use_template0_as_template.
call sym.postgres.exe_errhint
add esp, 4
push eax
push ebx
call sym.postgres.exe_pg_encoding_to_char
add esp, 4
push eax
mov eax, dword [ebp - 0xdc]
push eax
call sym.postgres.exe_pg_encoding_to_char
add esp, 4
push eax
push str.new_encoding___s__is_incompatible_with_the_encoding_of_the_template_database___s_
call sym.postgres.exe_errmsg
add esp, 0xc
push eax
push 0x3080082
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
mov ecx, dword [ebp - 0x108]
mov eax, esi
jmp 0x48f190
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48f1b0
test dl, dl
je 0x48f1ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48f1b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x48f190
xor eax, eax
jmp 0x48f1b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48f212
push 0
push 0x6c06c0
push 0x16a
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48f212
push str.Use_the_same_collation_as_in_the_template_database__or_use_template0_as_template.
call sym.postgres.exe_errhint
mov ecx, dword [ebp - 0x108]
add esp, 4
push eax
push ecx
push esi
push str.new_collation___s__is_incompatible_with_the_collation_of_the_template_database___s_
call sym.postgres.exe_errmsg
add esp, 0xc
push eax
push 0x3080082
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
mov esi, dword [ebp - 0x140]
mov ecx, esi
mov eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48f240
test dl, dl
je 0x48f23c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48f240
add eax, 2
add ecx, 2
test dl, dl
jne 0x48f220
xor eax, eax
jmp 0x48f245
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48f29c
push 0
push 0x6c06c0
push 0x171
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48f29c
push str.Use_the_same_LC_CTYPE_as_in_the_template_database__or_use_template0_as_template.
call sym.postgres.exe_errhint
add esp, 4
push eax
push esi
push edi
push str.new_LC_CTYPE___s__is_incompatible_with_the_LC_CTYPE_of_the_template_database___s_
call sym.postgres.exe_errmsg
add esp, 0xc
push eax
push 0x3080082
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x48f41c
cmp dword [eax + 0xc], 0
je 0x48f41c
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 4]
push 0
push eax
mov dword [ebp - 0x13c], eax
call sym.postgres.exe_get_tablespace_oid
add esp, 8
mov dword [ebp - 0xe4], eax
push 0x200
call sym.postgres.exe_GetUserId
push eax
mov eax, dword [ebp - 0xe4]
push eax
call sym.postgres.exe_pg_tablespace_aclcheck
add esp, 0xc
test eax, eax
je 0x48f301
mov ecx, dword [ebp - 0x13c]
push ecx
push 0xe
push eax
call sym.postgres.exe_aclcheck_error
add esp, 0xc
mov edx, dword [ebp - 0xe4]
cmp edx, 0x680
jne 0x48f352
push 0
push 0x6c06c0
push 0x187
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48f352
push str.pg_global_cannot_be_used_as_default_tablespace
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x3080082
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 0x124]
je 0x48f428
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xec]
push ecx
push edx
call sym.postgres.exe_GetDatabasePath
mov esi, eax
lea eax, [ebp - 0xd8]
push eax
push esi
call sym.postgres.exe_pgwin32_safestat
add esp, 0x10
test eax, eax
jne 0x48f411
mov ecx, dword [ebp - 0xd2]
and ecx, 0xf000
cmp ecx, 0x4000
jne 0x48f411
push esi
call sym.postgres.exe_directory_is_empty
add esp, 4
test al, al
jne 0x48f411
push 0
push 0x6c06c0
push 0x1a4
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48f411
mov edx, dword [ebp - 0xf4]
push edx
push str.There_is_a_conflict_because_database___s__already_has_some_tables_in_this_tablespace.
call sym.postgres.exe_errdetail
add esp, 8
push eax
mov eax, dword [ebp - 0x13c]
push eax
push str.cannot_assign_new_default_tablespace___s_
call sym.postgres.exe_errmsg
add esp, 8
push eax
push 0x440
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
push esi
call sym.postgres.exe_pfree
add esp, 4
jmp 0x48f428
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0xe4], ecx
push 1
push 0x4ee
call sym.postgres.exe_heap_open
mov edx, dword [ebp - 0x10c]
push edx
push 0x3e
push 3
mov esi, eax
lea eax, [ebp - 0x1d4]
push 1
push eax
call sym.postgres.exe_ScanKeyInit
lea ecx, [ebp - 0x1d4]
push ecx
push 1
push sym.postgres.exe_SnapshotNowData
push 1
push 0xa6f
push esi
call sym.postgres.exe_systable_beginscan
mov ebx, eax
push ebx
call sym.postgres.exe_systable_getnext
add esp, 0x38
test eax, eax
je 0x48f48e
mov edx, dword [eax + 0x10]
test byte [edx + 0x14], 8
je 0x48f48e
mov eax, edx
movzx ecx, byte [eax + 0x16]
mov edi, dword [ecx + eax - 4]
jmp 0x48f490
xor edi, edi
push ebx
call sym.postgres.exe_systable_endscan
push 1
push esi
call sym.postgres.exe_relation_close
add esp, 0xc
test edi, edi
je 0x48f4ef
push 0
push 0x6c06c0
push 0x1b7
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48f4ef
mov edx, dword [ebp - 0x10c]
push edx
push str.database___s__already_exists
call sym.postgres.exe_errmsg
add esp, 8
push eax
push 0x4020084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov edx, dword [ebp - 0xec]
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x178]
push ecx
push edx
call sym.postgres.exe_CountOtherDBBackends
add esp, 0xc
test al, al
je 0x48f5ab
push 0
push 0x6c06c0
push 0x1c7
push str.src_backendcommandsdbcommands.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x48f5ab
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x170]
test eax, eax
jle 0x48f56a
test ecx, ecx
jle 0x48f558
push ecx
push eax
push str.There_are__d_other_session_s__and__d_prepared_transaction_s__using_the_database.
call sym.postgres.exe_errdetail
add esp, 0xc
jmp 0x48f57e
test eax, eax
jle 0x48f56a
push eax
push eax
push str.There_are__d_other_sessions_using_the_database.
push str.There_is__d_other_session_using_the_database.
jmp 0x48f576
push ecx
push ecx
push str.There_are__d_prepared_transactions_using_the_database.
push str.There_is__d_prepared_transaction_using_the_database.
call sym.postgres.exe_errdetail_plural
add esp, 0x10
mov eax, dword [ebp - 0xf4]
push 0
push eax
push str.source_database___s__is_being_accessed_by_other_users
call sym.postgres.exe_errmsg
add esp, 8
push eax
push 0x6000145
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
push 3
push 0x4ee
call sym.postgres.exe_heap_open
mov esi, eax
add esp, 8
mov dword [ebp - 0x15c], esi
push esi
call sym.postgres.exe_GetNewOid
push eax
mov dword [ebp - 0x11c], eax
call fcn.0048cc40
add esp, 8
test al, al
jne 0x48f5c2
lea ecx, [ebp - 0x40]
test cl, 3
jne 0x48f60b
xor eax, eax
mov dword [ebp - 0x40], eax
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 dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
jmp 0x48f61b
push 0x30
lea edx, [ebp - 0x40]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x10c]
push ecx
lea eax, [ebp - 0x10]
xor eax, eax
push eax
push sym.postgres.exe_namein
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
call sym.postgres.exe_DirectFunctionCall1Coll
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
push ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xdc]
push 0
push sym.postgres.exe_namein
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
call sym.postgres.exe_DirectFunctionCall1Coll
mov edx, dword [ebp - 0xf0]
push edx
push 0
push sym.postgres.exe_namein
mov dword [ebp - 0x34], eax
call sym.postgres.exe_DirectFunctionCall1Coll
mov ecx, dword [ebp - 0x164]
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xe4]
mov ebx, dword [ebp - 0x15c]
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x18], eax
mov byte [ebp - 5], 1
mov eax, dword [ebx + 0x28]
push edx
push eax
call sym.postgres.exe_heap_form_tuple
mov edi, dword [ebp - 0x11c]
mov esi, eax
mov eax, dword [esi + 0x10]
movzx ecx, byte [eax + 0x16]
push esi
push ebx
mov dword [ecx + eax - 4], edi
call sym.postgres.exe_simple_heap_insert
push esi
push ebx
call sym.postgres.exe_CatalogUpdateIndexes
mov edx, dword [ebp - 0x114]
add esp, 0x40
push edx
push edi
push 0x4ee
call sym.postgres.exe_recordDependencyOnOwner
mov esi, dword [ebp - 0xec]
push edi
push esi
call sym.postgres.exe_copyTemplateDependencies
mov eax, dword [sym.postgres.exe_object_access_hook]
add esp, 0x14
test eax, eax
je 0x48f729
push 0
push 0
push edi
push 0x4ee
push 0
call eax
add esp, 0x14
push 0x1c
call sym.postgres.exe_RequestCheckpoint
call sym.postgres.exe_GetLatestSnapshot
push eax
call sym.postgres.exe_RegisterSnapshot
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x138]
push eax
push 0x48d100
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x134], edi
call sym.postgres.exe_on_shmem_exit
mov ecx, dword [sym.postgres.exe_PG_exception_stack]
mov edx, dword [sym.postgres.exe_error_context_stack]
lea eax, [ebp - 0x80]
push 0
push eax
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x158], edx
call sub.MSVCR100.dll__setjmp3
add esp, 0x18
test eax, eax
jne 0x48f975
lea ecx, [ebp - 0x80]
push 1
push 0x4bd
mov dword [sym.postgres.exe_PG_exception_stack], ecx
call sym.postgres.exe_heap_open
mov edx, dword [ebp - 0x150]
push 0
push 0
mov edi, eax
push edx
push edi
mov dword [ebp - 0x17c], edi
call sym.postgres.exe_heap_beginscan
mov esi, eax
push 1
push esi
mov dword [ebp - 0x160], esi
call sym.postgres.exe_heap_getnext
add esp, 0x20
test eax, eax
je 0x48f904
jmp 0x48f7e0
mov ecx, dword [eax + 0x10]
test byte [ecx + 0x14], 8
je 0x48f8db
mov eax, ecx
movzx edx, byte [eax + 0x16]
mov edi, dword [edx + eax - 4]
cmp edi, 0x680
je 0x48f8eb
mov eax, dword [ebp - 0xec]
push edi
push eax
call sym.postgres.exe_GetDatabasePath
lea ecx, [ebp - 0xb4]
mov ebx, eax
push ecx
push ebx
call sym.postgres.exe_pgwin32_safestat
add esp, 0x10
test eax, eax
js 0x48f8e2
mov edx, dword [ebp - 0xae]
and edx, 0xf000
cmp edx, 0x4000
jne 0x48f8e2
push ebx
call sym.postgres.exe_directory_is_empty
add esp, 4
test al, al
jne 0x48f8e2
mov esi, dword [ebp - 0xe4]
cmp edi, dword [ebp - 0x124]
je 0x48f863
mov esi, edi
mov eax, dword [ebp - 0x11c]
push esi
push eax
call sym.postgres.exe_GetDatabasePath
push 0
push eax
push ebx
call sym.postgres.exe_copydir
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0x90], ecx
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x1a4], eax
xor eax, eax
push ecx
push eax
push 4
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x1a0], 0x10
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x194], eax
call sym.postgres.exe_XLogInsert
mov esi, dword [ebp - 0x160]
add esp, 0x20
jmp 0x48f8eb
xor edi, edi
jmp 0x48f803
push ebx
call sym.postgres.exe_pfree
add esp, 4
push 1
push esi
call sym.postgres.exe_heap_getnext
add esp, 8
test eax, eax
jne 0x48f7e0
mov edi, dword [ebp - 0x17c]
push esi
call sym.postgres.exe_heap_endscan
push 1
push edi
call sym.postgres.exe_relation_close
push 0x1c
call sym.postgres.exe_RequestCheckpoint
mov edx, dword [ebp - 0x15c]
push 0
push edx
call sym.postgres.exe_relation_close
call sym.postgres.exe_ForceSyncCommit
lea eax, [ebp - 0x138]
push eax
push 0x48d100
call sym.postgres.exe_cancel_shmem_exit
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x158]
push eax
mov dword [sym.postgres.exe_PG_exception_stack], ecx
mov dword [sym.postgres.exe_error_context_stack], edx
call sym.postgres.exe_UnregisterSnapshot
mov ecx, dword [ebp - 4]
add esp, 0x24
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x158]
lea eax, [ebp - 0x138]
push eax
push 0x48d100
mov dword [sym.postgres.exe_PG_exception_stack], ecx
mov dword [sym.postgres.exe_error_context_stack], edx
call sym.postgres.exe_cancel_shmem_exit
mov ecx, dword [ebp - 0x138]
push 5
push 0
push ecx
push 0x4ee
call sym.postgres.exe_UnlockSharedObject
mov ebx, dword [ebp - 0x134]
add esp, 0x18
call fcn.0048cac0
call sym.postgres.exe_pg_re_throw
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3