Function at 0x401b20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x40f1a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
call fcn.00403850
mov esi, eax
add esp, 4
test esi, esi
jne 0x401b7a
push 0x40fa08
push dword [0x40f200]
push str._s:_PID_file___s__does_not_exist_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
push str.Is_server_running__n
call sub.libintl_8.dll_libintl_gettext
push eax
call fcn.00401020
add esp, 0x14
push 1
call dword [sym.imp.MSVCR120.dll_exit]
jns 0x401ba3
neg esi
push esi
push dword [0x40f200]
push str._s:_cannot_stop_server__single_user_server_is_running__PID:__ld__n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0xc
push 1
call dword [sym.imp.MSVCR120.dll_exit]
push dword [0x40f010]
push esi
call fcn.00408ad0
add esp, 8
test eax, eax
je 0x401bed
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
add esp, 4
push eax
push esi
push dword [0x40f200]
push str._s:_could_not_send_stop_signal__PID:__ld_:__s_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0x10
push 1
call dword [sym.imp.MSVCR120.dll_exit]
cmp byte [0x40f1c8], 0
jne 0x401c18
push str.server_shutting_down_n
call sub.libintl_8.dll_libintl_gettext
push eax
call fcn.00402530
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
cmp dword [0x40f00c], 0
jne 0x401c5e
lea eax, [ebp - 0x28]
push eax
push 0x40fe08
call fcn.004092a0
add esp, 8
test eax, eax
jne 0x401c5e
lea eax, [ebp - 0x28]
push eax
push 0x410208
call fcn.004092a0
add esp, 8
test eax, eax
je 0x401c5e
push str.WARNING:_online_backup_mode_is_active_nShutdown_will_not_complete_until_pg_stop_backup___is_called._n_n
call sub.libintl_8.dll_libintl_gettext
push eax
call fcn.00402530
add esp, 8
push ebx
push edi
push str.waiting_for_server_to_shut_down...
call sub.libintl_8.dll_libintl_gettext
push eax
call fcn.00402530
mov ebx, dword [sym.imp.MSVCR120.dll_fputs]
xor esi, esi
mov edi, dword [sym.imp.MSVCR120.dll___iob_func]
add esp, 8
cmp dword [0x40f008], esi
jle 0x401cdd
lea esp, [esp]
push 0
call fcn.00403850
add esp, 4
test eax, eax
je 0x401d4d
cmp byte [0x40f1cb], 0
jne 0x401cc7
call edi
add eax, 0x20
push eax
push 0x40b57c
call ebx
call edi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 0xc
push 0xf4240
call fcn.00407150
inc esi
add esp, 4
cmp esi, dword [0x40f008]
jl 0x401c90
push str._failed_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
mov esi, eax
cmp byte [0x40f1cb], 0
jne 0x401d0d
call edi
add eax, 0x20
push eax
push esi
call ebx
call edi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 0xc
push dword [0x40f200]
push str._s:_server_does_not_shut_down_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 8
cmp dword [0x40f00c], 0
jne 0x401d45
push str.HINT:_The___m_fast__option_immediately_disconnects_sessions_rather_than_nwaiting_for_session_initiated_disconnection._n
call sub.libintl_8.dll_libintl_gettext
push eax
call fcn.00401020
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
push str._done_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
mov esi, eax
cmp byte [0x40f1cb], 0
jne 0x401d81
call edi
add eax, 0x20
push eax
push esi
call ebx
call edi
mov esi, dword [sym.imp.MSVCR120.dll_fflush]
add eax, 0x20
push eax
call esi
add esp, 0xc
jmp 0x401d87
mov esi, dword [sym.imp.MSVCR120.dll_fflush]
push str.server_stopped_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
mov dword [ebp - 0x2c], eax
cmp byte [0x40f1cb], 0
jne 0x401db6
call edi
add eax, 0x20
push eax
push dword [ebp - 0x2c]
call ebx
call edi
add eax, 0x20
push eax
call esi
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00409cf2
mov esp, ebp
pop ebp
ret