Function at 0x404440
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 4
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR120.dll_setvbuf]
mov edi, dword [ebp + 0xc]
push dword [edi]
call fcn.00406bf0
push str.pg_ctl_9.5
push dword [edi]
mov dword [0x40f200], eax
call fcn.00405120
push 0
call dword [sym.imp.MSVCR120.dll__time32]
mov dword [0x40f204], eax
mov eax, dword [edi]
push 0
mov dword [0x40f1f4], eax
call dword [sym.imp.MSVCR120.dll__umask]
mov ebx, dword [ebp + 8]
add esp, 0x24
cmp ebx, 1
jle 0x40459f
mov edx, dword [edi + 4]
mov ecx, str.__help
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x4044d6
test bl, bl
je 0x4044d2
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x4044d6
add eax, 2
add ecx, 2
test bl, bl
jne 0x4044b6
xor eax, eax
jmp 0x4044db
sbb eax, eax
or eax, 1
test eax, eax
je 0x40458f
mov ecx, 0x40cf90
mov eax, edx
lea ebx, [ebx]
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x404510
test bl, bl
je 0x40450c
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x404510
add eax, 2
add ecx, 2
test bl, bl
jne 0x4044f0
xor eax, eax
jmp 0x404515
sbb eax, eax
or eax, 1
test eax, eax
je 0x40458f
mov ecx, str.__version
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x404540
test bl, bl
je 0x40453c
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x404540
add eax, 2
add ecx, 2
test bl, bl
jne 0x404520
xor eax, eax
jmp 0x404545
sbb eax, eax
or eax, 1
test eax, eax
je 0x404579
mov eax, 0x40cfa0
mov edi, edi
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x404570
test cl, cl
je 0x40456c
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x404570
add edx, 2
add eax, 2
test cl, cl
jne 0x404550
xor eax, eax
jmp 0x404575
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40459c
push str.pg_ctl__PostgreSQL__9.5.8
call dword [sym.imp.MSVCR120.dll_puts]
add esp, 4
push 0
call dword [sym.imp.MSVCR120.dll_exit]
call fcn.00401120
push 0
call dword [sym.imp.MSVCR120.dll_exit]
mov ebx, dword [ebp + 8]
push str.PGCTLTIMEOUT
call dword [sym.imp.MSVCR120.dll_getenv]
mov esi, dword [sym.imp.MSVCR120.dll_atoi]
add esp, 4
test eax, eax
je 0x4045c2
push eax
call esi
add esp, 4
mov dword [0x40f008], eax
mov dword [0x40f198], 1
cmp ebx, 1
jle 0x404bf5
lea eax, [ebp - 8]
push eax
push 0x40f020
push str.cD:e:l:m:N:o:p:P:sS:t:U:wW
push edi
push ebx
call fcn.00409480
add esp, 0x14
cmp eax, 0xffffffff
je 0x4047ef
jmp 0x404600
add eax, 0xffffffbc
cmp eax, 0x33
ja case.0x404613.69
movzx eax, byte [eax + 0x404e44]
jmp dword [eax*4 + 0x404e04]
push dword [0x410dec]
call fcn.00405dd0
mov esi, eax
push esi
call fcn.004065c0
push esi
push str.PGDATA_s
call fcn.004060b0
push eax
call fcn.00406300
push esi
push str._D___s_
call fcn.004060b0
mov esi, dword [sym.imp.MSVCR120.dll_atoi]
add esp, 0x1c
mov dword [0x40f1d8], eax
jmp 0x4047ce
push dword [0x410dec]
call fcn.00405dd0
add esp, 4
mov dword [0x40f1e8], eax
jmp 0x4047ce
push dword [0x410dec]
call fcn.00405dd0
add esp, 4
mov dword [0x40f1e0], eax
jmp 0x4047ce
push dword [0x410dec]
call fcn.00401480
add esp, 4
jmp 0x4047ce
push dword [0x410dec]
call fcn.00405dd0
add esp, 4
mov dword [str.PostgreSQL], eax
jmp 0x4047ce
mov esi, dword [0x40f1dc]
push dword [0x410dec]
test esi, esi
jne 0x4046df
call fcn.00405dd0
mov esi, dword [sym.imp.MSVCR120.dll_atoi]
add esp, 4
mov dword [0x40f1dc], eax
jmp 0x4047ce
push esi
push 0x40d004
call fcn.004060b0
push esi
mov dword [0x40f1dc], eax
call dword [sym.imp.MSVCR120.dll_free]
mov esi, dword [sym.imp.MSVCR120.dll_atoi]
add esp, 0x10
jmp 0x4047ce
push dword [0x410dec]
call fcn.00405dd0
add esp, 4
mov dword [0x40f1e4], eax
jmp 0x4047ce
push dword [0x410dec]
call fcn.00405dd0
add esp, 4
mov dword [0x40f1f0], eax
jmp 0x4047ce
mov byte [0x40f1cb], 1
jmp 0x4047ce
push dword [0x410dec]
call fcn.00404320
add esp, 4
jmp 0x4047ce
push dword [0x410dec]
call esi
add esp, 4
mov dword [0x40f008], eax
mov byte [0x40f1ca], 1
jmp 0x4047ce
push 0x5c
push dword [0x410dec]
call dword [sym.imp.MSVCR120.dll_strchr]
add esp, 8
push dword [0x410dec]
test eax, eax
je 0x404793
call fcn.00405dd0
add esp, 4
mov dword [0x40f1ec], eax
jmp 0x4047ce
push str.._s
call fcn.004060b0
add esp, 8
mov dword [0x40f1ec], eax
jmp 0x4047ce
mov byte [0x40f1c8], 1
mov byte [0x40f1c9], 1
jmp 0x4047ce
mov byte [0x40f1c8], 0
mov byte [0x40f1c9], 1
jmp 0x4047ce
mov byte [0x40f1f8], 1
lea eax, [ebp - 8]
push eax
push 0x40f020
push str.cD:e:l:m:N:o:p:P:sS:t:U:wW
push edi
push ebx
call fcn.00409480
add esp, 0x14
cmp eax, 0xffffffff
jne 0x404600
mov edi, dword [0x40f198]
cmp edi, ebx
jge 0x404bf5
cmp dword [0x40f1cc], 0
jne 0x404be2
mov esi, dword [ebp + 0xc]
mov ecx, str.init
mov esi, dword [esi + edi*4]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404837
test dl, dl
je 0x404833
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404837
add eax, 2
add ecx, 2
test dl, dl
jne 0x404817
xor eax, eax
jmp 0x40483c
sbb eax, eax
or eax, 1
test eax, eax
je 0x404b35
mov ecx, str.initdb
mov eax, esi
jmp 0x404850
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404870
test dl, dl
je 0x40486c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404870
add eax, 2
add ecx, 2
test dl, dl
jne 0x404850
xor eax, eax
jmp 0x404875
sbb eax, eax
or eax, 1
test eax, eax
je 0x404b35
mov ecx, str.start
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4048a4
test dl, dl
je 0x4048a0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4048a4
add eax, 2
add ecx, 2
test dl, dl
jne 0x404884
xor eax, eax
jmp 0x4048a9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4048bc
mov dword [0x40f1cc], 2
jmp 0x404b3f
mov ecx, str.stop
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4048e3
test dl, dl
je 0x4048df
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4048e3
add eax, 2
add ecx, 2
test dl, dl
jne 0x4048c3
xor eax, eax
jmp 0x4048e8
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4048fb
mov dword [0x40f1cc], 3
jmp 0x404b3f
mov ecx, str.restart
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404922
test dl, dl
je 0x40491e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404922
add eax, 2
add ecx, 2
test dl, dl
jne 0x404902
xor eax, eax
jmp 0x404927
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40493a
mov dword [0x40f1cc], 4
jmp 0x404b3f
mov ecx, str.reload
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404961
test dl, dl
je 0x40495d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404961
add eax, 2
add ecx, 2
test dl, dl
jne 0x404941
xor eax, eax
jmp 0x404966
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404979
mov dword [0x40f1cc], 5
jmp 0x404b3f
mov ecx, str.status
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4049a0
test dl, dl
je 0x40499c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4049a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x404980
xor eax, eax
jmp 0x4049a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4049b8
mov dword [0x40f1cc], 6
jmp 0x404b3f
mov ecx, str.promote
mov eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4049e0
test dl, dl
je 0x4049dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4049e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4049c0
xor eax, eax
jmp 0x4049e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4049f8
mov dword [0x40f1cc], 7
jmp 0x404b3f
mov ecx, str.kill
mov eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404a20
test dl, dl
je 0x404a1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404a20
add eax, 2
add ecx, 2
test dl, dl
jne 0x404a00
xor eax, eax
jmp 0x404a25
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404a77
mov eax, ebx
sub eax, edi
cmp eax, 3
jl 0x404b5c
mov esi, dword [ebp + 0xc]
inc edi
mov dword [0x40f198], edi
mov dword [0x40f1cc], 8
push dword [esi + edi*4]
call fcn.00401630
mov eax, dword [0x40f198]
inc eax
mov dword [0x40f198], eax
push dword [esi + eax*4]
call dword [sym.imp.MSVCR120.dll_atol]
mov edi, dword [0x40f198]
add esp, 8
mov dword [ebp - 4], eax
jmp 0x404b3f
mov ecx, str.register
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404aa0
test dl, dl
je 0x404a9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404aa0
add eax, 2
add ecx, 2
test dl, dl
jne 0x404a80
xor eax, eax
jmp 0x404aa5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404ab8
mov dword [0x40f1cc], 9
jmp 0x404b3f
mov ecx, str.unregister
mov eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404ae0
test dl, dl
je 0x404adc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404ae0
add eax, 2
add ecx, 2
test dl, dl
jne 0x404ac0
xor eax, eax
jmp 0x404ae5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404af5
mov dword [0x40f1cc], 0xa
jmp 0x404b3f
mov eax, str.runservice
lea ebx, [ebx]
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x404b20
test cl, cl
je 0x404b1c
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x404b20
add esi, 2
add eax, 2
test cl, cl
jne 0x404b00
xor eax, eax
jmp 0x404b25
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404b9c
mov dword [0x40f1cc], 0xb
jmp 0x404b3f
mov dword [0x40f1cc], 1
inc edi
mov dword [0x40f198], edi
cmp edi, ebx
jge 0x404bf5
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.MSVCR120.dll_atoi]
jmp 0x4045d5
push dword [0x40f200]
push str._s:_missing_arguments_for_kill_mode_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 8
push dword [0x40f200]
push str.Try___s___help__for_more_information._n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
mov eax, dword [ebp + 0xc]
push dword [eax + edi*4]
push dword [0x40f200]
push str._s:_unrecognized_operation_mode___s__n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0xc
push dword [0x40f200]
push str.Try___s___help__for_more_information._n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
mov eax, dword [ebp + 0xc]
push dword [eax + edi*4]
push dword [0x40f200]
push str._s:_too_many_command_line_arguments__first_is___s___n
jmp 0x404bad
cmp dword [0x40f1cc], 0
jne 0x404c0e
push dword [0x40f200]
push str._s:_no_operation_specified_n
jmp 0x404b67
push str.PGDATA
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
mov dword [0x40f1d4], eax
test eax, eax
je 0x404c49
push eax
call fcn.00405dd0
push eax
mov dword [0x40f1d4], eax
call fcn.004065c0
push dword [0x40f1d4]
call fcn.00405dd0
add esp, 0xc
mov dword [0x40f1d0], eax
call fcn.00402570
cmp dword [0x40f1d4], 0
mov ecx, dword [0x40f1cc]
jne 0x404c8d
cmp ecx, 8
je 0x404c8d
cmp ecx, 0xa
je 0x404c8d
push dword [0x40f200]
push str._s:_no_database_directory_specified_and_environment_variable_PGDATA_unset_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 8
call fcn.00401100
jmp 0x404b94
cmp byte [0x40f1c9], 0
jne 0x404cae
mov eax, ecx
sub eax, 2
je 0x404ca7
dec eax
je 0x404d6b
dec eax
jne 0x404cae
mov byte [0x40f1c8], 0
cmp ecx, 5
jne 0x404cc4
mov dword [0x40f010], 1
mov byte [0x40f1c8], 0
mov eax, dword [0x40f1d0]
test eax, eax
je 0x404d5a
push eax
push str._s_postmaster.opts
push 0x400
push 0x40f208
call fcn.00407450
push dword [0x40f1d0]
push str._s_PG_VERSION
push 0x400
push 0x40f608
call fcn.00407450
push dword [0x40f1d0]
push str._s_postmaster.pid
push 0x400
push 0x40fa08
call fcn.00407450
push dword [0x40f1d0]
push str._s_backup_label
push 0x400
push 0x40fe08
call fcn.00407450
add esp, 0x40
push dword [0x40f1d0]
push str._s_recovery.conf
push 0x400
push 0x410208
call fcn.00407450
mov ecx, dword [0x40f1cc]
add esp, 0x10
dec ecx
cmp ecx, 0xa
ja case.default.0x404d64
jmp dword [ecx*4 + 0x404e78]
mov byte [0x40f1c8], 1
jmp 0x404cc4
call fcn.00401830
push 0
jmp 0x404b96
call fcn.004021d0
push 0
jmp 0x404b96
call fcn.00401920
push 0
jmp 0x404b96
call fcn.00401b20
push 0
jmp 0x404b96
call fcn.00401dd0
push 0
jmp 0x404b96
call fcn.00402100
push 0
jmp 0x404b96
call fcn.004022d0
push 0
jmp 0x404b96
push dword [ebp - 4]
call fcn.004024d0
add esp, 4
push 0
jmp 0x404b96
call fcn.00402980
push 0
jmp 0x404b96
call fcn.00402aa0
push 0
jmp 0x404b96
call fcn.00402e90
push 0
jmp 0x404b96