Function at 0x401dd0
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 0x401e46
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
push str.starting_server_anyway_n
call sub.libintl_8.dll_libintl_gettext
push eax
call fcn.00401020
add esp, 0x1c
call fcn.00401920
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.MSVCR120.dll__getpid]
test esi, esi
jns 0x401e9e
neg esi
call edi
cmp esi, eax
je 0x401e9e
push 0
push esi
call fcn.00408ad0
add esp, 8
test eax, eax
jne 0x401e9e
push esi
push dword [0x40f200]
push str._s:_cannot_restart_server__single_user_server_is_running__PID:__ld__n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
push str.Please_terminate_the_single_user_server_and_try_again._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]
call edi
cmp esi, eax
je 0x4020b2
push 0
push esi
call fcn.00408ad0
add esp, 8
test eax, eax
jne 0x4020b2
push dword [0x40f010]
push esi
call fcn.00408ad0
add esp, 8
test eax, eax
je 0x401f05
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 dword [0x40f00c], 0
jne 0x401f4b
lea eax, [ebp - 0x28]
push eax
push 0x40fe08
call fcn.004092a0
add esp, 8
test eax, eax
jne 0x401f4b
lea eax, [ebp - 0x28]
push eax
push 0x410208
call fcn.004092a0
add esp, 8
test eax, eax
je 0x401f4b
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 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___iob_func]
xor edi, edi
add esp, 8
cmp dword [0x40f008], edi
jle 0x401fc3
mov edi, edi
push 0
call fcn.00403850
mov esi, eax
add esp, 4
test esi, esi
je 0x40203b
cmp byte [0x40f1cb], 0
jne 0x401fad
call ebx
add eax, 0x20
push eax
push 0x40b57c
call dword [sym.imp.MSVCR120.dll_fputs]
call ebx
add eax, 0x20
push eax
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 0xc
push 0xf4240
call fcn.00407150
inc edi
add esp, 4
cmp edi, dword [0x40f008]
jl 0x401f70
test esi, esi
je 0x40203b
push str._failed_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
mov esi, eax
cmp byte [0x40f1cb], 0
jne 0x401ffb
call ebx
add eax, 0x20
push eax
push esi
call dword [sym.imp.MSVCR120.dll_fputs]
call ebx
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 0x402033
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 0x402075
call ebx
add eax, 0x20
push eax
push esi
mov esi, dword [sym.imp.MSVCR120.dll_fputs]
call esi
call ebx
mov edi, dword [sym.imp.MSVCR120.dll_fflush]
add eax, 0x20
push eax
call edi
add esp, 0xc
jmp 0x402081
mov esi, dword [sym.imp.MSVCR120.dll_fputs]
mov edi, 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 0x4020df
call ebx
add eax, 0x20
push eax
push dword [ebp - 0x2c]
call esi
call ebx
add eax, 0x20
push eax
call edi
add esp, 0xc
jmp 0x4020df
push esi
push dword [0x40f200]
push str._s:_old_server_process__PID:__ld__seems_to_be_gone_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
push str.starting_server_anyway_n
call sub.libintl_8.dll_libintl_gettext
push eax
call fcn.00401020
add esp, 0x14
call fcn.00401920
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00409cf2
mov esp, ebp
pop ebp
ret