Function at 0x414430
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x45638c]
mov dword [ebp - 0x48], eax
mov al, byte [0x456390]
mov dword [ebp - 0xc], 0
push ebx
mov byte [ebp - 4], al
mov eax, dword [0x4563a0]
mov dword [ebp - 0x18], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x54], eax
mov eax, dword [0x4563a4]
push edi
mov edi, dword [sym.imp.MSVCR120.dll___iob_func]
mov dword [ebp - 0x28], 0
mov byte [ebp - 3], 0
mov dword [ebp - 0x50], eax
mov dword [0x45638c], esi
call edi
cmp esi, eax
jne 0x41449e
cmp byte [0x456384], 0
mov byte [0x456390], 1
je 0x4144a5
mov byte [0x456390], 0
xorps xmm0, xmm0
mov dword [0x4563a8], 1
push 0x30
movlpd qword [0x4563a0], xmm0
mov dword [0x4563ac], 0
call fcn.00424df0
mov ebx, dword [sym.imp.MSVCR120.dll_free]
mov esi, eax
add esp, 4
mov dword [ebp - 0x4c], esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4144fb
push eax
call ebx
add esp, 4
mov dword [esi + 0x2c], 0
mov dword [ebp - 0x14], esi
call sub.LIBPQ.dll_Ordinal_77
mov dword [ebp - 8], eax
call sub.LIBPQ.dll_Ordinal_77
mov dword [ebp - 0x1c], eax
call sub.LIBPQ.dll_Ordinal_77
cmp dword [ebp - 8], 0
mov dword [ebp - 0x20], eax
je 0x414d09
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
je 0x414d09
cmp dword [ebp - 0x1c], 0
je 0x414d09
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 8], 0
je 0x414d09
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x414d09
cmp dword [eax + 8], 0
je 0x414d09
cmp dword [ebp - 0xc], 0
jne 0x414c39
lea ebx, [ebx]
cmp byte [0x455cb8], 0
je 0x41458d
cmp byte [0x456390], 0
je 0x414c9e
mov byte [0x455cb8], 0
push 0
push 0x456480
call sub.MSVCR120.dll__setjmp3
add esp, 8
test eax, eax
je 0x414611
mov esi, dword [ebp - 0x14]
push esi
call fcn.00414e70
push esi
call fcn.00415110
mov eax, dword [ebp - 8]
push eax
call sub.LIBPQ.dll_Ordinal_70
push dword [ebp - 0x20]
call sub.LIBPQ.dll_Ordinal_70
mov dword [ebp - 0x28], 0
add esp, 0x10
cmp byte [0x456390], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [0x4563a8], 1
mov dword [0x4563ac], 0
mov byte [0x455cb8], 0
je 0x414c9e
call edi
add eax, 0x20
push eax
push 0xa
call dword [sym.imp.MSVCR120.dll_putc]
add esp, 8
call edi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 4
cmp byte [0x456390], 0
je 0x414652
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x414639
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
push eax
call fcn.0041c1c0
push eax
call fcn.00413c40
mov esi, eax
add esp, 8
mov dword [ebp - 0x10], esi
jmp 0x41468a
mov edi, dword [ebp + 8]
push edi
call fcn.00413c80
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x414684
push edi
call dword [sym.imp.MSVCR120.dll_ferror]
mov edi, dword [sym.imp.MSVCR120.dll___iob_func]
add esp, 4
test eax, eax
je 0x41468a
mov dword [ebp - 0xc], 1
jmp 0x41468a
mov edi, dword [sym.imp.MSVCR120.dll___iob_func]
test esi, esi
jne 0x4146ec
cmp byte [0x456390], 0
je 0x414c39
inc dword [ebp - 0x28]
push esi
push 0xa
push esi
push str.IGNOREEOF
push dword [0x4563b8]
call fcn.00424a20
add esp, 0x14
cmp dword [ebp - 0x28], eax
jge 0x414ca7
cmp byte [0x4563be], 0
jne 0x414c2f
push dword [0x456398]
push str.Use__q__to_leave__s._n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.004264b0
add esp, 8
jmp 0x414c2f
mov ecx, dword [0x4563a0]
mov eax, dword [0x4563a4]
add ecx, 1
mov dword [ebp - 0x28], 0
adc eax, 0
mov dword [0x4563a0], ecx
mov dword [0x4563a4], eax
cmp ecx, 1
jne 0x414763
test eax, eax
jne 0x414763
cmp dword [0x456304], 6
mov edi, dword [sym.imp.MSVCR120.dll_strncmp]
jne 0x414769
push 3
push 0x43e90c
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x4147ae
lea edx, [esi + 3]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414740
sub ecx, edi
lea eax, [ecx + 1]
push eax
push edx
push esi
call dword [sym.imp.MSVCR120.dll_memmove]
mov eax, dword [0x4563a4]
add esp, 0xc
mov ecx, dword [0x4563a0]
mov edi, dword [sym.imp.MSVCR120.dll_strncmp]
cmp ecx, 1
jne 0x41478f
test eax, eax
jne 0x41478f
cmp byte [0x456390], al
jne 0x41478f
push 5
push str.PGDMP
push esi
call edi
add esp, 0xc
test eax, eax
je 0x414cca
cmp byte [esi], 0
jne 0x4147bb
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x20], 0
jne 0x4147bb
push esi
call ebx
mov edi, dword [sym.imp.MSVCR120.dll___iob_func]
add esp, 4
jmp 0x414c2f
mov eax, dword [0x4563a4]
mov ecx, dword [0x4563a0]
jmp 0x414769
cmp byte [0x456390], 0
je 0x41483e
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
cmp dword [eax + 4], 0
jne 0x41483e
push 4
push str.help
push esi
call fcn.004260e0
add esp, 0xc
test eax, eax
jne 0x41483e
mov al, byte [esi + 4]
test al, al
je 0x414800
cmp al, 0x3b
je 0x414800
movzx eax, al
push eax
call dword [sym.imp.MSVCR120.dll_isspace]
add esp, 4
test eax, eax
je 0x41483e
push esi
call ebx
push str.You_are_using_psql__the_command_line_interface_to_PostgreSQL.
call sub.libintl_8.dll_libintl_gettext
push eax
call dword [sym.imp.MSVCR120.dll_puts]
push str.Type:__copyright_for_distribution_terms_n_______h_for_help_with_SQL_commands_n_________for_help_with_psql_commands_n_______g_or_terminate_with_semicolon_to_execute_query_n_______q_to_quit_n
call sub.libintl_8.dll_libintl_gettext
push eax
call fcn.004264b0
mov edi, dword [sym.imp.MSVCR120.dll___iob_func]
call edi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 0x18
jmp 0x414c2f
cmp dword [0x4563c8], 3
jne 0x41486e
cmp byte [0x456390], 0
jne 0x41486e
push esi
call dword [sym.imp.MSVCR120.dll_puts]
mov edi, dword [sym.imp.MSVCR120.dll___iob_func]
call edi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 8
jmp 0x414874
mov edi, dword [sym.imp.MSVCR120.dll___iob_func]
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jbe 0x414896
mov eax, dword [ebp - 8]
push 0xa
push eax
call sub.LIBPQ.dll_Ordinal_68
mov eax, dword [ebp - 8]
add esp, 8
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
jmp 0x41489d
mov dword [ebp - 0x30], 0xffffffff
mov edx, dword [ebp - 0x10]
mov ecx, edx
mov al, byte [0x4563bd]
mov byte [ebp - 3], al
lea esi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4148b0
sub ecx, esi
push ecx
push edx
push dword [ebp - 0x14]
call fcn.00414e20
mov al, 1
mov byte [ebp - 1], 0
add esp, 0xc
mov byte [ebp - 2], al
nop
test al, al
jne 0x4148dd
cmp byte [ebp - 3], al
jne 0x414b0e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 8]
push eax
push dword [ebp - 0x14]
call fcn.00414f60
mov dword [ebp - 0x2c], eax
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 8], 0
je 0x414d09
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
je 0x414d09
mov eax, dword [ebp - 8]
mov edx, dword [0x4563ac]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x38]
mov eax, dword [0x4563a8]
mov dword [ebp - 0x3c], ecx
mov bl, byte [ecx]
test bl, bl
je 0x414960
jmp 0x414940
inc ecx
cmp bl, 0xa
jne 0x414957
add eax, 1
mov dword [0x4563a8], eax
adc edx, 0
mov dword [0x4563ac], edx
mov bl, byte [ecx]
test bl, bl
jne 0x414940
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x2c]
cmp ecx, 3
jne 0x414979
add eax, 1
mov dword [0x4563a8], eax
adc edx, 0
mov dword [0x4563ac], edx
test ecx, ecx
je 0x414b7d
cmp ecx, 3
jne 0x414993
cmp byte [0x4563bf], 0
jne 0x414b7d
cmp ecx, 1
jne 0x414b72
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
cmp eax, dword [ebp - 0x30]
jne 0x4149c7
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x20]
push esi
dec dword [edx + 4]
mov ecx, dword [eax]
mov eax, dword [edx + 4]
mov byte [ecx + eax], 0
call fcn.00413e10
add esp, 4
jmp 0x4149ca
mov esi, dword [ebp - 0x20]
cmp byte [0x456390], 0
mov dword [ebp - 0x30], 0xffffffff
je 0x4149f6
cmp byte [ebp - 1], 0
jne 0x4149f6
push esi
push dword [ebp - 0x10]
call fcn.00413e00
push esi
call fcn.00413e10
add esp, 0xc
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jbe 0x414a04
mov eax, dword [ebp - 8]
jmp 0x414a07
mov eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
call fcn.004030e0
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 5
mov dword [0x4563a8], 1
setne byte [ebp - 2]
mov dword [0x4563ac], 0
cmp dword [ebp - 0x18], 1
je 0x414a3e
cmp dword [ebp - 0x18], 4
jne 0x414a58
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x414a58
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov eax, dword [ebp - 8]
push eax
call sub.LIBPQ.dll_Ordinal_75
add esp, 8
cmp dword [ebp - 0x18], 1
jne 0x414a96
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.00409440
mov byte [ebp - 2], al
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call sub.LIBPQ.dll_Ordinal_70
push dword [ebp - 0x14]
call fcn.00415110
add esp, 0xc
jmp 0x414bfc
cmp dword [ebp - 0x18], 4
jne 0x414afe
push dword [ebp - 0x14]
call fcn.00414e70
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.MSVCR120.dll_free]
call ebx
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.00424d80
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call sub.LIBPQ.dll_Ordinal_70
push dword [ebp - 0x14]
call fcn.00415110
mov ecx, dword [ebp - 0x10]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414ad6
sub ecx, edx
push ecx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00414e20
mov byte [ebp - 1], 0
add esp, 0xc
mov dword [ebp - 0x24], 0
jmp 0x414c02
cmp dword [ebp - 0x18], 3
mov ebx, dword [sym.imp.MSVCR120.dll_free]
jne 0x414c02
cmp byte [0x456390], 0
je 0x414b2b
cmp byte [ebp - 1], 0
jne 0x414b2b
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call fcn.00413e00
add esp, 8
push dword [ebp - 0x14]
call fcn.00414e70
push dword [ebp - 0x10]
call ebx
add esp, 8
cmp dword [ebp - 0x18], 3
je 0x414cfd
cmp byte [0x456390], 0
jne 0x414c2f
cmp byte [ebp - 2], 0
jne 0x414c1f
cmp byte [ebp - 3], 0
je 0x414c1f
mov dword [ebp - 0xc], 3
jmp 0x414c2f
mov ebx, dword [sym.imp.MSVCR120.dll_free]
jmp 0x414c05
cmp byte [0x456390], 0
je 0x414ba5
cmp byte [ebp - 1], 0
jne 0x414ba5
mov esi, dword [ebp - 0x20]
push esi
push dword [ebp - 0x10]
call fcn.00413e00
push esi
call fcn.00413e10
add esp, 0xc
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.00409440
xor ecx, ecx
mov byte [ebp - 2], al
test al, al
mov dword [0x4563a8], 1
mov dword [0x4563ac], 0
sete cl
lea ecx, [ecx*4 + 1]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call sub.LIBPQ.dll_Ordinal_70
add esp, 8
mov dword [ebp - 0x30], 0xffffffff
mov ebx, dword [sym.imp.MSVCR120.dll_free]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 2
je 0x414b0e
cmp ecx, 3
je 0x414b0e
mov al, byte [ebp - 2]
jmp 0x4148d0
cmp dword [0x456300], 0
jne 0x414c2f
mov dword [ebp - 0xc], 2
cmp dword [ebp - 0xc], 0
je 0x414570
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jbe 0x414d2e
cmp byte [0x456390], 0
jne 0x414d2e
cmp dword [ebp - 0xc], 0
jne 0x414d2e
cmp byte [0x456390], 0
je 0x414c71
push dword [ebp - 0x20]
call fcn.00413e10
add esp, 4
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.00409440
add esp, 4
mov byte [ebp - 2], al
test al, al
jne 0x414d1e
cmp byte [ebp - 3], al
je 0x414d1e
mov dword [ebp - 0xc], 3
jmp 0x414d2e
mov dword [ebp - 0xc], 3
jmp 0x414c39
cmp byte [0x4563be], 0
mov ecx, 0x43e908
mov eax, 0x42b69a
cmove eax, ecx
push eax
call dword [sym.imp.MSVCR120.dll_puts]
add esp, 4
jmp 0x414c39
push esi
call ebx
push str.The_input_is_a_PostgreSQL_custom_format_dump._nUse_the_pg_restore_command_line_client_to_restore_this_dump_to_a_database._n
call sub.libintl_8.dll_libintl_gettext
push eax
call dword [sym.imp.MSVCR120.dll_puts]
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 0x10
mov dword [ebp - 0xc], 1
jmp 0x414c39
mov dword [ebp - 0xc], 0
jmp 0x414c39
push str.out_of_memory_n
call fcn.00408fb0
add esp, 4
push 1
call dword [sym.imp.MSVCR120.dll_exit]
cmp dword [0x456300], 0
jne 0x414d2e
mov dword [ebp - 0xc], 2
mov byte [0x455c49], 0
mov eax, dword [ebp - 8]
push eax
call sub.LIBPQ.dll_Ordinal_76
mov eax, dword [ebp - 0x1c]
push eax
call sub.LIBPQ.dll_Ordinal_76
push dword [ebp - 0x20]
call sub.LIBPQ.dll_Ordinal_76
push dword [ebp - 0x14]
call fcn.00414dd0
mov eax, dword [ebp - 0x48]
add esp, 0x10
mov dword [0x45638c], eax
mov al, byte [ebp - 4]
mov byte [0x456390], al
mov eax, dword [ebp - 0x54]
pop edi
mov dword [0x4563a0], eax
mov eax, dword [ebp - 0x50]
pop esi
mov dword [0x4563a4], eax
mov eax, dword [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret